I'm new and could use some help
Hi I'm new to this board and C++ programing and, I need some help:(. I am creating a simple program that should produce Hello, world! as text in a MS DOS screen
Code:
/*Hello world program
Zeratul_999, 12/5/02*/
#include<iostream.h>
int main()
{
cout << "Hello, world!"; //first statement
return(0); //second statement
}
This is what I get in the build log
Build Log
--------------------Configuration: Hello world program - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\WINDOWS\TEMP\RSP7301.TMP" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/Hello world program.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\My Documents\C++\Chapter 2\Hello world program.cpp"
]
Creating command line "cl.exe @C:\WINDOWS\TEMP\RSP7301.TMP"
Output Window
Compiling...
Hello world program.cpp
c:\my documents\c++\chapter 2\hello world program.cpp(11) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Results
Hello world program.obj - 1 error(s), 0 warning(s)