UNEXPECTATION OUTPUT PLSS HELP ME..:(
Sep 18, 2013 at 8:34am UTC
guyss please help me..:(
this is my source code no error no warnings..but the output is not my expectation
because all i want is a simple choices appears in the scrn and when you enter "1" HERNANDEZ ARIEL
ICT PROGRAMMING INSTRUCTOR
MONDAY are will be appear.
plss help me i know it is easier to you guys..plss help me.:(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
{
cout<<" CLB ICT INSTRUCTOR\n\n" ;
cout<<"Please Select The Number of Your Instructor :" <<endl<<"\n" ;
cout<<"1=HERNANDEZ,ARIEL\n 2=MACALALAD JAMES\n\n" ;
if ("1" ){
cout<<"HERNANDEZ ARIEL\n\n" ;
cout<<" ICT PROGRAMMING INSTRUCTOR \n" <<endl;
cout<<"MONDAY \n" <<endl;
}
system ("cls" );
if ("2" ){
cout<<"MACALALAD JAMES\n\n" ;
cout<<" ICT COMPFUN INSTRUCTOR \n" <<endl;
cout<<"TUESDAY \n" <<endl;
}
cin.get();
return 0;
}
}
Sep 18, 2013 at 8:55am UTC
guyss please help me...:(
Sep 18, 2013 at 9:10am UTC
you need a cin to get the actual value from the user. Like so:
1 2 3 4 5 6 7 8
...
cout<<"1=HERNANDEZ,ARIEL\n 2=MACALALAD JAMES\n\n" ;
int input;
cin >> input;
if (input == 1)
...
Topic archived. No new replies allowed.