if (dsecondnumber == 0) ( std::cout << "invaled operation " << endl);
Blocks are identified with {}s not ()s. You also have a semicolon problem here. That correctly written would be:
if (dsecondnumber == 0) {
std::cout << "invaled operation " << endl;
|The specific error you are running into right now is exactly what you have right now. You have
do {
somecode
}
system("pause");
You need to put a condition on the do to tell it when to exit. If you want an infinite loop in C(++(0x)) that is typically done with a for loop like this:
for(;;) { //infinite loop
}
Billy3

Help



Back to top









