I just installed and started using Microsoft C++ 2010 Express and started the whole "Hello World!" Program. I start a whole new project and I'm looking at this website tutorial and the tutorial. The Coding setup looks different for this site and the one offered by Microsoft.
// MyFirstApplication.cpp : Defines the entry point for the console application.//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Module Module1
Sub Main()
Console.WriteLine("Hello, world!")
End Sub
End Module
return 0;
}
// my first program in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
Since the tutorial in Microsoft says
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
Module Module1
Sub Main()
Console.WriteLine("Hello, world!")
End Sub
End Module
Instead of-
int main ()
{
cout << "Hello World! ";
return 0;
}
Will this affect MicroSoft Visual's ability to run this site "Hello World!" coding? If so is there a suggested website that I can download C++ that incorporates this sites method of coding instead of Microsoft's? Or does it not matter? I ask this because I like this site method better and find it easier and faster to type out.
I typed out both codes in and got "The system could not find the path specified."
I just realized I didn't actually answer anything, I apologize. If you are using Visual Studio, when you create a new project, just click "Empty Project", and make sure pre-compiled headers are not turned on.
I suggest just creating a new, empty project (pick "Empty Project") and writing the C++ hello world code from this site into an empty cpp file you create.
It occurs when I go to "Debug". I choose "Start Without Debugging". I click "NO" when it ask if I would like to "Build".
Then the error message pops up.