C++ is a mid-level programming language—it easy to write and it runs very quickly. As a result, it is widely used to develop games, business apps, and software, such as Google Chrome and Microsoft Office Suite.https://www.youtube.com/wat...
Method 1 of 4:
Getting Started with C++

Introduce yourself to C++ language. C++ is related to C programming language. Unlike its predecessor, C++ is an object-oriented programming language. The object is the primary unit of this language—every object has specific properties, functions, and methods.[2]
Download and install a compiler. In order to create viable programs with C++, you will need to download and install a compiler. Compilers transform your code into operational programs. There are free compilers available for Windows, Mac, and Linux users.
Find useful introductory resources and tutorials. Learning C++ is equivalent to learning a foreign language. Books, courses, and tutorials will help you establish a foundational understanding of this programming language. You will find a variety of free and purchasable resources online.Method 3 of 4:
Exploring Batch Files

Understand batch files. Batch files are exclusive to Windows—the Mac counterpart is a bash file. Batch files contain a one or more commands that are executed in sequence by a command line interpreter. These files are used to simplify basic and/or repetitive jobs such as opening multiple programs, deleting files, and backing up files.[8] You may incorporate batch files into your C++ programs.[9]

Create a batch file. Batch files are simple text files. You may create your batch files with Window's text editor, Notepad.exe. Click Start and type 'notepad' into the search bar, and select 'Notepad' from the results.[10]
Save the file. Click File > Save. Rename your file 'HelloWorld.cmd.' Change the 'Save as type' to 'All Files (*,*).'
Code a 'Hello world' batch file. In the text editor, enter in the following lines of code:[12]@echo Hello world. @pause
Understand '@echo.' In batch, commands are echoed, or displayed, on the output screen by default. When a program runs, you will see the command and its output. Preceding this command with an "@" turns off echoing for a specific line. When the program runs, you will only see "Hello world."[13]@echo Off echo Hello world. pause

Understand '@pause.' This command tells the command line processor to pause until the user presses a key on the keyboard.[14]

Run your batch file. The fastest way to run your batch file is to simply double-click on the file. When you double-click on the file, the batch file is sent to the DOS command line processor. A new window will open and your batch file will close. Once the user presses a key to continue, the program will end and the window will close.[15]
Method 4 of 4:
Applying Your New Knowledge
Incorporate functions into your code. A function is a group of statements, or instructions, that perform a specific task. Each function is assigned a type, a name, parameter(s), and statements. You will use the C++ function 'system' to run a batch file. To explore functions, try coding this program:// function example #include iostream> Using namespace std; int addition (int a, int b) { int r; r=a+b return r; } int main ( ) { int z; z = addition (5,3); cout 'The result is ' z; }
Experiment with flow control statements. Statements are individual instructions that are always executed in sequential order. C++ programs, however, are not limited to linear sequences. You may incorporate flow control statements to alter the path of your program. The 'while loop' statement is a common flow control statement—it tells the program to execute a statement a specific number of times or while the condition is fulfilled.// custom countdown using while #include iostream> using namespace std; int main () { int n = 10; while (n>0) { cout n ", "; --n; } cout "liftoff!n"; }
Run a batch file with C++. When you run a batch file with your C++ program, you will use the 'system ( )' function. The 'system' function tells the command line processor to execute a command. Enter the batch file's name within the parentheses of the 'system ( )' function.[18]source(HelloWorld.cmd)
Update 05 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZqiipLSzrcxmoKdlk2Kur7CMm5itm5g%3D