0

How to make a Hello World program in Visual Studio Community

I want to know how to make a simple Hello World program in C++ by VS Community

3rd Nov 2016, 1:25 AM
Random
4 odpowiedzi
+ 6
below the int Main(); , inside the cursive{} brackets type in cout << "Hello world!"; //cout means to print out in console. return 0; //This ends the system, optional to put but highly recommended to prevent errors if you have mass amount of complicated codes, etc.
3rd Nov 2016, 3:34 AM
Wen Qin
Wen Qin - avatar
+ 5
Make sure when you startup your visual studio and create a new project, you didnt create it under C or C# . C++ , C and C# are different things.
3rd Nov 2016, 10:18 AM
Wen Qin
Wen Qin - avatar
+ 2
It is saying cout is undefined. Help
3rd Nov 2016, 6:34 AM
Random
0
I've made it and it is working flawlessly. Thanks for helping.
3rd Nov 2016, 10:23 AM
Random