How to read the entire value of a double using cin??

long double m; cout << "enter double: "; cin >> m; cout << "m = " << m <<endl; Input...

How do I create a pause/wait function using Qt??

I'm playing around with Qt, and I want to create a simple pause between two commands. However it won't seem to let m...

Remove parts of text file C++?

I have a text file called copynumbers.txt that I need to delete some numbers after a number while using Example woul...

Creating a simple configuration file and parser in C++?

I am trying to create a simple configuration file that looks like this url = http://mysite.com file = main.exe true...

c++ homework -Correct way to initialize node in link list code?

I have written the following code to implement a linklist, it compiles and runs on my windows computer(using mingw 3...

Hide sh: -c error messages when calling “system” in c++ Linux?

I'm using system to execute a command with it's arguments. I don't want to use exec/fork. When I have unmatched quo...

How to read until ESC button is pressed from cin in C++?

I'm coding a program that reads data directly from user input and was wondering how could I read all data until ESC ...

Error: member function may not be declared outside of its class.?

I have my heap.h file that contains: bool insert(int key, double data); and in my heapCPP.cpp file I have: boo...

c++ error: ??? does not name a type?

Okay upon running g++ main.cpp -o services If i do all this in one class lets say .cpp it works fine, but whenever ...

c++ classes and garbage data?

For my last project this year I am trying to make a Gradebook program in C++. Using classes vs structs, new and dele...

Reading Binary Files into an array of ints c++?

I have a method which writes a binary file from an int array. (it could be wrong too) void bcdEncoder::writeBinaryF...

Function returns a wrong number??

Can anybody help me with this? It gives me a wrong number. matrix[i][j].spath is filled with the correct values but ...

How to efficiently compare two maps of strings in C++ only for a subset of the keys?

I'm wondering if only by applying some standard algorithms is possible to write a short function which compare two s...

Why for(int i=0; i<10; ++i) and for(int i=0; i<10; i++) return the same??

Why for(int i=0; i&lt;10; i++) std::cout &lt;&lt; i &lt;&lt; std::endl; and for(int i=0; i&lt;10; ++i) ...