For writing programs, development environments are often used. The process of writing a program is as follows:
The source code is entered through the keyboard.
Then the program is translated,
The development environment consists of multiple programs that facilitate the overall development of a program:
Text editor
Compiler
Debugger
Integration of libraries with functions
Linker
All these elements of the development environment are integrated into
Integrated Development Environments (IDEs). An example of an IDE used in
this course is CLion
.
CLion
(installation, license, first program)The video tutorial (available at this link) demonstrates the following:
.cpp
files to the projectBelow are several tasks that you should try to complete at home. By completing them, you will be prepared for successful work in the upcoming laboratory exercises.
Try to create a new project with a .cpp
file and enter
the following program text:
#include<iostream>
using namespace std;
int main () {
<< "Hello, how are you?" << endl;
cout return 0;
}
If you made a mistake while typing the text, correct it and execute it again. Intentionally introduce an error into the text.
Execute it again!
What happens now?
In the program text, add the marked line:
#include<iostream>
using namespace std;
int main () {
<< ""Hello, how are you?" << endl;
cout // Add this line
<< "Is something bothering you?" << endl;
cout return 0;
}
What is the result of execution now?