Can anyone one help me?...i need your help very badly..example: a program w/c have a menu and ask user if wat is his choice....
Does anyone know to make a program which makes a very useful program that uses c++ language like turbo C?
#include %26lt;iostream.h%26gt;
int main(void){
char ch="";
while (ch!='2'){
cout%26lt;%26lt;"Press 1 to print hello world, press 2 to quit ";
cin%26gt;%26gt;ch;
if (ch=='1') cout%26lt;%26lt;"hello world".%26lt;%26lt;endl;
}
return 0;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment