i am a very new to c++
but what's wrong about this
?
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
char cin[20]
char user[200];
char password[200];
printf ("hello world\n");
printf ("enter user name:");
cin.get(user));
printf ("enterpassword")
cin.get(password))
}
if (name, stefan))
{
if (password, 112112))
{
printf ("your correct");
}
printf ("correct");
return 0;
}
[message]
c:\windows\desktop\stefan-c++\v\untitled1.cpp: In function `int main(int, char **)':
c:\windows\desktop\stefan-c++\v\untitled1.cpp:8: parse error before string constant
c:\windows\desktop\stefan-c++\v\untitled1.cpp:12: `cin' undeclared (first use this function)
c:\windows\desktop\stefan-c++\v\untitled1.cpp:12: (Each undeclared identifier is reported only once
c:\windows\desktop\stefan-c++\v\untitled1.cpp:12: for each function it appears in.)
c:\windows\desktop\stefan-c++\v\untitled1.cpp:12: parse error before `)'
c:\windows\desktop\stefan-c++\v\untitled1.cpp: At top level:
c:\windows\desktop\stefan-c++\v\untitled1.cpp:24: syntax error before string constant
c:\windows\desktop\stefan-c++\v\untitled1.cpp:27: syntax error before `.'
[/message]
i try to read the message but i don't get it please help!!
thanks