Hi,
I am using the DevCPP and Mingw bundle and i think there is something wrong with it. My question is, did i do something wrong or is it the compilers fault. I think i screwed up on the while loop. If I did, could someone please show me the correct way of doing it.
this program still incomplete but when i tried compiling i got a ton of errors. First it is supposed to display a string, "commands", then it is supposed to change the value of "command_input".
Code:
#include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
int main ()
{ string display_commands ; // a string which contains all the commands which is displayed to the user later on
string command_input ;
int repeat ; //integer used for loop
int = 1 ;
while (repeat = 1)
{
cout << display_commands <<endl ;
cout << " Type the command of the application you wish to use " ;
cin <<command_input ;
cout << "Exit the new window and press enter in this window to repeat";
cin.get();
}
return 0;
}
Attachment 9848