- Impact
- 3
Alright, this is humiliating, but it is driving me up the wall!
I decided that i would like to learn c++, so i go to a local book store and get a book called "Sam's teach yourself c++ in 21 days". So i come home, and download Microsoft Visual C++ 2005 Express Edition.
Right from the start i already have a few problems
when i open visual c++ and i create a new project, I'm not sure which to choose, it gives me three options:
CLR, Win32, General
I didn't have a clue what to do, so i used the good ol' trial and error method, i found that creating a Win32 project might just be what i need to write a program but i am not positive.
But thats not all, on the VERY first page i write out exactly what I was told to write out:
So then the book tells me i need to compile it and all that junk, well not knowing how to do that once again i am stuck, so I look around the program and find the "Build" tab, i click that and then find "Build Week 1" (Week 1 being the name of my project), So i thought, hey lets try that, and so i did.
So i seen a bunch of crap come up on the screen, so im thinking to myself, alright it must of worked :hehe: But wait! In the output box on Visual C++ i see, errors? That cant be right! Heres the output message thingy:
So i thought, alright.. I must have to add '#include "stdafx.h' on line 1, and so I did.
Thinking that would fix everything, i build again..
this cant be right! More Errors?! Am I really this big of an Idiot? I cant even get past the first page of my dam book without running into multiple errors!?
Error:
Please Help a huge moron out! What is going on?!

I decided that i would like to learn c++, so i go to a local book store and get a book called "Sam's teach yourself c++ in 21 days". So i come home, and download Microsoft Visual C++ 2005 Express Edition.
Right from the start i already have a few problems
when i open visual c++ and i create a new project, I'm not sure which to choose, it gives me three options:
CLR, Win32, General
I didn't have a clue what to do, so i used the good ol' trial and error method, i found that creating a Win32 project might just be what i need to write a program but i am not positive.
But thats not all, on the VERY first page i write out exactly what I was told to write out:
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
return 0;
}
So then the book tells me i need to compile it and all that junk, well not knowing how to do that once again i am stuck, so I look around the program and find the "Build" tab, i click that and then find "Build Week 1" (Week 1 being the name of my project), So i thought, hey lets try that, and so i did.
So i seen a bunch of crap come up on the screen, so im thinking to myself, alright it must of worked :hehe: But wait! In the output box on Visual C++ i see, errors? That cant be right! Heres the output message thingy:
1>------ Build started: Project: Week 1, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>Week 1.cpp
1>c:\documents and settings\owner\desktop\c++ projects\week 1\week 1.cpp(8) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\C++ Projects\Week 1\Debug\BuildLog.htm"
1>Week 1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So i thought, alright.. I must have to add '#include "stdafx.h' on line 1, and so I did.
Thinking that would fix everything, i build again..
this cant be right! More Errors?! Am I really this big of an Idiot? I cant even get past the first page of my dam book without running into multiple errors!?
Error:
1>------ Build started: Project: Week 1, Configuration: Debug Win32 ------
1>Compiling...
1>Week 1.cpp
1>c:\documents and settings\owner\desktop\c++ projects\week 1\week 1.cpp(1) : error C2001: newline in constant
1>Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\C++ Projects\Week 1\Debug\BuildLog.htm"
1>Week 1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please Help a huge moron out! What is going on?!
Last edited:




