i am learning c++ and using dev-c++
so this is c++
here is the code i use look below the code for the problem
code=
#include <windows.h>
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
cout << "Hello World!" << endl;
cout << "Press ENTER to continue...";
cout << "enter your name:";
cin.getline (name, sizeof (name));
cout <<"\ngreetings, "<< name << "\n";
cout << "npress enter to continue...">
}
message from compiler =
c:\windows\desktop\to u.cpp: In function `int main()':
c:\windows\desktop\to u.cpp:13: `name' undeclared (first use this function)
c:\windows\desktop\to u.cpp:13: (Each undeclared identifier is reported only once
c:\windows\desktop\to u.cpp:13: for each function it appears in.)
c:\windows\desktop\to u.cpp:17: parse error before `}'
if you can help me help me please and if you do so thanks