0 succeeded, 1 failed - goodbye world

Microsoft Visual studio pro 2010 w/ msdn...
August 14, 2011 at 14:02:09
Specs: Windows 7
I've tried a number of different versions of hello world, and always end up with the same result. 0 succeeded, 1 failed. My first attempts at visual c++ 2010 aren't working out.

// first simple program.cpp : main project file.

#include "stdafx.h"

using namespace System;

#include <iostream>
using namespace std;

int main()
{
cout << "C++ is power programming: ";
return 0;
}


See More: 0 succeeded, 1 failed - goodbye world

Report •


#1
August 14, 2011 at 23:25:08
The error messages should tell you why the compile failed. What do they say?

Report •

#2
August 16, 2011 at 05:14:09
I found the problem: it was a question of either turning off precompiled headers or #include "stdafx.h", a treat special to 2010. Thanks for responding.

Report •

Related Solutions


Ask Question