usingMaths.com
From Theory to Practice - Math You Can Use.







<< PreviousNext >>

Getting Started With C++ Coding for Beginners and Senior Secondary Students



Senior-Level C++ Coding Prerequisites - Development IDE

Before you begin coding in C++ as a beginner or senior secondary student, it's important to understand how Visual Studio works. This beginner C++ tutorial will guide you through setting up your development environment.
On Windows, Visual Studio now has a free version.
Go ahead and get it, and install the C/C++ platform tools.



How to Set Up Visual Studio for C++ for Senior Secondary Students

If you are a beginner or senior secondary student, creating a new project on Visual Studio is simple:
On the Start Page of Visual Studio, click New Project.
Select Visual C++ under the Template header and Win32 Console Application (for our purpose) under the .Net Framework header.
Give the project a name. >> OK >> Next >> Finish.

If you are a beginner or senior secondary student, creating a class file is straight-forward:
Click Project, Add Class.
Select C++ Class, Add;
Give the class a name and click Finish.



Running C++ Codes for Senior Secondary Students

For the beginners or senior secondary students, you have to first make sure your C++ code contains no errors. You may also want to see your C++ code's output before you get to building it. To see your C++ code's output, set a breakpoint at the return statement in the main class:

Click on the left area of the "return 0" line to highlight it;
click Debug at the top of the window, Toggle breakpoint; a red dot appears on the return 0 line.

Press F5, (click Yes) to see the project run to completion - assuming there are no errors.
A new shell is created that shows the result of your C++ code.

Alternatively, click Debug >> Start Without Debugging (Ctrl F5) to see your C++ code output.


Note: In Windows, C/C++ codes can also be run in the NetBeans IDE using Cygwin or MinGW libraries.



Notice: Our C++ colour coding follows that of Microsoft's Visual Studio.


Introductory C++ Tutorial for Senior Secondary Students

For a beginner-friendly C++ tutorials for kids and senior secondary students, summarised to only the key facts to help young learners comprehend the C++ language and get started with utilising C++ for coding, check our A beginner's Tutorial and Guide to the C++ Programming Language from the Primary Category.







Visual Studio Start Page
Visual Studio Start Page

New Project
Visual Studio New Project

Next Step
Visual Studio Next Step

Finish New Project
Visual Studio Finish New Project

New Class
Visual Studio New Class

Finish New Class
Visual Studio Finish New Class


<< PreviousNext >>