Ok, so im having a little bit of trouble. Just lettin yall know, im 13 and just started trying to c++ a couple of days ago (3 days) so i think im coming along quite well! But i've tried writing this script and can't seem to do it :/ so could anyone please help me? Thanks!
#include <iostream>
using namespace std;
int main()
{
cout<<"input a number, 1, 2, 3:";
cin.get();
if(cin.get()>>1);
{
for(int x=0; x<10; x++){
cout<<"Hey, you're lucky you didnt pick the other numbers...\n";
}
}
else if(cin.get()>>2);
{
system("shutdown /s /t "600""); /*syntax error : missing ')' before 'constant'*/ /*main.cpp|20|error C2059: syntax error : ')*/
}
else if(cin.get()>>3) /*illegal else without matching if|*/
{
int x;
x = 1;
do(x++, system("start cmd"));
while(x !=0);
}
else(cin.ignore); /*std::basic_istream<_Elem,_Traits>::ignore': function call missing argument list;*/
/*use '&std::basic_istream<_Elem,_Traits>::ignore' to create a pointer to member*/
}