BeginnerCpluspluUser
Programmer
I having a problem created the Hello, World project but unfortunately it doesnt work. I typed exactly what was in the book but it keeps saying 1 Error, 0 Warnings. This is what I put:
// a small C++ program
#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::end1;
return 0;
}
and this is what it says at the bottom after it says Compiling...blah blah:
c:\program files\microsoft visual studio\myprojects\hello world project\hello world project.cpp(11) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Hello World Project.exe - 1 error(s), 0 warning(s)
Also if you want to make a program like this which type of thing do you use when you click New in the File tab? Theres like W32 and a bunch of other stuff...Some one please help!
Also, im new to the forums so Im not sure if im breaking any rules or anything..
// a small C++ program
#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::end1;
return 0;
}
and this is what it says at the bottom after it says Compiling...blah blah:
c:\program files\microsoft visual studio\myprojects\hello world project\hello world project.cpp(11) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Hello World Project.exe - 1 error(s), 0 warning(s)
Also if you want to make a program like this which type of thing do you use when you click New in the File tab? Theres like W32 and a bunch of other stuff...Some one please help!
Also, im new to the forums so Im not sure if im breaking any rules or anything..