i have dev 188.8.131.52...i will create a win 32 console application.. write some code omething basic like...
#include <iostream.h> //necessary for cin and cout commands
int dividend, divisor;
//get the dividend and divisor from the user
cout << "enter the dividend ";
cin >> dividend;
cout << "enter the divisor ";
cin >> divisor;
//output the qoutient and the remainder.
cout << "the qoutient is " << dividend/divisor;
cout << "with a remainder of " << dividend % divisor << '\n';
the problem is after i (the user) fills in the dividend and divsor the program doesnt post the conclusion of the code....in fact, the console just closes before i can figure out whats up. i read what the warning says at the bottom of the compiler. it says.
"[warning] no new line at the end of file."
please assist. :(