I got it!
Thanks to all who helped!
Type: Posts; User: deadkat
I got it!
Thanks to all who helped!
I need it right now! Pretty please, you guys!
Just tell me what am I doing wrong with switch statemnet?
Okay, I aboslutely tried everything.
I really need the code now. Someone help me pretty please!
But I'm required to use a switch statemnet.
Okay, excuse my slowness - it's 5 am where I live.
So in the case n1, and case n2 - what do I exactly type for a condition?
int x;
cout<<"Enter an integer number: "<<endl;
cin>>x;
switch ( x )
{
case 1:
Okay, I have another question concerning the switch statement:
switch ( x )
{
case 1:
if ((x%2)!=0)
cout<<"The number is odd";
break;
Yeah, I think it's just the location! :D
Ahh, so even if the there are several numbers, I still read it in the regular way? Thank you very much!
please?
I have three numbers saved in a txt file named numbers.txt
and I use this code:
inFile.open("a:numbers.txt");
inFile>>num1>>num2>>num3;
but it doesn't work, what am I doing wrong? Should I...