• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
PPP2 Chapter 11 Exercise 2
Exercise specifications: Write a program that given a file name and a word outputs each line tha...
[no replies]
Soleil Glo men and women as of late Soleil Glo South Africa is An impressive enamel whitening thin...
[no replies]
by AceK
Is there an HTML parser library for C++?
Hi there guys, I am creating this web crawler using C++ and the Qt library. Everything is working fi...
[2 replies] Last: Thank you for your reply. I did some research on libxml2 and I read so... (by AceK)
by vgdd
What is wrong with this code
vector<int>::iterator iter; // increment each score for (iter = scores.begin(); iter != scores.end...
[4 replies] Last: Given the comment above the loop, I guess you want to increment the va... (by elbanono)
by mal24
Object Array
I have an object array with 4 objects. Each of these objects is assigned x and y coordinates. When...
[3 replies] Last: Each truck should have a variable called income. When you found the ne... (by Thomas1965)
Need some help with this class, please someone help me
Objective: To design and develop a class in the C++ programming language. Assignment: Define a...
[4 replies] Last: ive done it (by fdejesus4)
by MojoJo
My function returns an address instead of an integer
Can somebody tell me why I keep getting an address when I run the length function? I don't have any ...
[2 replies] Last: Ah okay thank you so much! (by MojoJo)
Complex Number Calculator
The code below should follow the inputs entered by the user, however when I "*" I get a different va...
[2 replies] Last: In your multiply you are using the new value of a to compute b . Yo... (by lastchance)
GPA program
Write a program in which you will ask the user to enter his/her GPA and print the grade according to...
[2 replies] Last: #include<iostream> using namespace std; int main() { float gpa=0; co... (by rimshayy12)
by rudi
Template function pointer argument
I have a container of variables that are created from template class and types are detected in runti...
[1 reply] : Are you aware of variadic templates? Overload resolution rules? Yo... (by mbozzi)
What is the precise data type of any array of 20 vectors of strings?
What is the precise data type of any array of 20 vectors of strings? Is this correct? anyArr...
[2 replies] Last: Thanks! (by dtfskull)
HELP reading txt file
Below is a snippet of my code: int counter = 0; in.ignore(1000,':'); in >> dataFile; cout <<...
[1 reply] : ifstream is a type, so you need to create a variable of that type and ... (by edge6768)
How to update current iterator while iterating
So in this code: std::map<std::string, int> map; map["a"] = 1; int times = 0; for (a...
[7 replies] Last: One thing that you need to be very very clear on: it's often invalid t... (by dhayden)
by deady
Merge and Sort Two Files Into Another File
Kind of in a pickle here. I have to write a program in which I have two files that have numbers in t...
[4 replies] Last: Gotcha, thanks! (by deady)
C++ - low level access to HDD/USB stick.
Hello, Windows 7 & 10. Compiler - gcc version 5.3.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 p...
[6 replies] Last: Line 25: sizeof(str) doesn't do what you think it does. It returns ... (by dhayden)
What naming convention to follow for constructor parameters with same name as class member variables.
Hi people :), I was just looking if there is any convention for naming the class constructor para...
[5 replies] Last: Thanks @Cubbi for the well formed response :) (by kapil2905)
by Echo89
My Cout repets itself twice, how do i stop it?
Below is the code for my electricity bill calculator. and once i enter the values it prints "your e...
[4 replies] Last: You need to understand the difference between if/else and while loop. ... (by arbwok)
TCP Server w/o listening/accept???
I havew a need to grant a TCP socket connection from a remote process. But I only want to allow one ...
[2 replies] Last: JL Borges... What a sweet and elegant solution!!!! All of these years ... (by Non Sequitur)
Troubles with binary
To Chervil. Errors between lines 6 and 24. I suppose you will correct them easily. Thank you very mu...
[2 replies] Last: To Chervil. How fast you are ! Maybe you are stronger than Alex Allen.... (by sylvain)
Pages: 123... 30
  Archived months: [dec2016]