Can you post your source code?
Feedback Score 0 im using build solution with the new Microsoft Visual C++ 2010 beta and now get this error message when i hit build solution.
1>------ Build started: Project: sample1, Configuration: Debug Win32 ------
1> sample1.cpp
1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(7): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(20): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can you post your source code?
Feedback Score 0 /* This is a simple C++ program.
Call this file Sample.cpp.
*/
#include <iostream>
using namespace std;
// A C++ program begins at main().
int main()
{
cout << "C++ is power programming.";
return 0;
}
yes im a noob at C++ but im doing a tut and am stuck.
When I input the code into my C++ compiler, I get no error message. And by reading the code, there seems to be nothing wrong.
I guess it wouldn't do much if you add endl, so that the coding line becomes
cout << "C++ is power programming." << endl;
Feedback Score 0 hmm well...ill go try it and if it works ill let you know and thank you =)
I am still getting a lot of errors...idk im trying pretty hard to learn C++ but its just not going my way.


Feedback Score 1 (100%) You don't have "StdAfx.h"/
Try repairing your Visual Studio installation.
Please press thanks if I helped (:
Portal ; s u b t l e _ i n c r e d i b i l i t y . | FREE middle man service


Feedback Score 1 (100%) Start > Control Panel > Add/Remove Programs (may also be called 'Uninstall Programs') > Visual Studio > RepairOriginally Posted by frickfrack
[Dear Visitor, you're restricted from viewing links until you are registered & logged on.
Click Here To Register Todayagain not trying to sound like a noob...but how do i repair it? lol
Please press thanks if I helped (:
Portal ; s u b t l e _ i n c r e d i b i l i t y . | FREE middle man service
FrickFrack (01-06-2010)
Well, like you, I'm just getting started out, and Code::Blocks seems to be working pretty well for me. You should give that a try
FrickFrack (01-06-2010)
Feedback Score 0 do you have a link or a website for it i can go to?
i found code::blocks...but it says on there site that i need a new compiler that this one wont work for windows 7
i have figured out all i needed thank you xbOw00.
No problem ^^"
Feedback Score 0 Either include "StdAfx.h" at the top, or make a new project with the "Empty Project" template.
Originally Posted by freedompeace
[Dear Visitor, you're restricted from viewing links until you are registered & logged on.
Click Here To Register TodayYou don't have "StdAfx.h"/
Try repairing your Visual Studio installation.
[Dear Visitor, you're restricted from viewing links until you are registered & logged on.
Click Here To Register Today
Repairing the installation won't help. He probably chose the "Win32 Console Application" template at the template selection window and accidentally removed the include because he copy and pasted the code from the tutorial he had recently written.


Bookmarks