Dear FIB + Others,
I have typed the while loop as mentioned in the book "OOP in Turbo C++" by "Robert Lafore".
I am supposed to get a prompt to input and and an output of what I typed. However, there is no cout << variable mentioned in the book.
Code:
// demonstration of while loop
// as typed in the Bloodshed IDE
#include <cstdlib> // winxp terminal handling lib
#include <iostream>
using namespace std; // may be something to do with winxp > terminal
int main(int argc, char *argv[]) // win Xp terminal arguments
{
unsigned int i = 1 ;
while(i != 0)
cin >> i;
// Win XP terminal calls
system("PAUSE");
return EXIT_SUCCESS;
}
Did I miss anything? Thanks in anticipation.
Best Regards