Posts

Showing posts from February, 2021

Cat's Guide to C++ | Output and Input in C++ (with Visual Studio Code) | Level 0

Image
This tutorial will focus on a C++ project with Visual Studio Code, printing to the standard output using std::cout, and taking input from the standard input device using std::cin.  My Development Environment For This Tutorial Windows 10 Visual Studio Code with C/C++ Extension from Microsoft (ms-vscode.cpptools) and Code Runner (formulahendry.code-runner ) Mingw-w64 Note Read this article from Microsoft to learn how to prepare your Visual Studio Code for development in C++. Starting a New C++ File with Visual Studio Code To start creating in C++, you first need a file to write C++ in. In Visual Studio Code, click ‘ File > New File ’ to create a new file. The new file you just created will open in Visual Studio Code.  Once you have a new file created and opened with Visual Studio Code, click ‘ File > Save As… ’ to name the file and save it as a C++ file.  Clicking ‘ File > Save As… ’ will bring up a pop-up window. In this window, you can choose a location on you...