#34 GETTING STARTED C++
Download visual studio 2019 from here. Once you have installed it be certain to install the C++ components. Once completed start visual studio and select the C++ console application option. Double click on the source files folder and then write your code.
Here is a first C++ application example I have written. All it does is print the text Hello World and displayed some simple arithmetic in the cmd console.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include <iostream> #include <Windows.h> int main() { std::cout << "Hello World!\n"; int x = 8; int y = 6; std::cout << std::endl; std::cout << x - y << " " << x* y << " " << x + y; std::cout << std::endl; Sleep(9000); return 0; } |