GETTING STARTED C++

#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.

Select The C++ Components

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.

#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;
}
Useful links can be found here

Leave a Reply

Your email address will not be published. Required fields are marked *