Вы находитесь на странице: 1из 6

1.

Open programming C++

2. Select new sorce file.

3. Write this program

4. Run the project

5. Save the file under project 1

6. Compilation process.

7. Execute the program.

8. Insert the data.

9. Result

Question
1.How to
a. Compilation process
Compiling a source code file in C++ is a four-step process. For example, if you have a C++ source
code file named prog1.cpp and you execute the compile command
g++ -Wall -ansi -o prog1 prog1.cpp
the compilation process looks like this:
1.
2.
3.
4.

The C++ preprocessor copies the contents of the included header files into the source code
file, generates macro code, and replaces symbolic constants defined using #define with
their values.
The expanded source code file produced by the C++ preprocessor is compiled into the
assembly language for the platform.
The assembler code generated by the compiler is assembled into the object code for the
platform.
The object code file generated by the assembler is linked together with the object code files
for any library functions used to produce an executable file.

b. Execute the program


EditRocket provides tools for executing programs for the following languages:
Java
Objective-C (Mac Only)
PHP
Perl
Python
Ruby
EditRocket executes programs by interfacing with the program language libraries. On Mac systems, all of the
above languages libraries are pre-installed with the operating system. On Windows, many of the above may
need to be installed manually. See the following for information on installing PHP, Perl, Python, and Ruby on
windows: Articles.
To execute a program, select the tab that contains the program source code in EditRocket, and then use the
Tools menu to navigate to the language type of the program, for example, PHP. Inside the language menu
there is an "Execute Program" option. An example for PHP would be the following:
Tools -> PHP -> Execute Program
Selecting the Execute Program option will display a dialog that allows the user to specify the working
directory to run the program and any arguments that should be passed to the program. Clicking the
"Execute" button will display a window with any output returned by the program.

1. What is C++ programming.


C++ is an object oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension
of C language. It is therefore possible to code C++ in a "C style" or "object-oriented style." In certain
scenarios, it can be coded in either way and is thus an effective example of a hybrid language.
C++ is a general purpose object oriented programming language. It is considered to be an intermediate level
language, as it encapsulates both high and low level language features. Initially, the language was called 'C
with classes as it had all properties of C language with an additional concept of 'classes. However, it was
renamed to C++ in 1983.
It is pronounced "C-Plus-Plus."

CONCLUSION

I learn how to configure command in the c++ programming tool.