C++ Programming Tutorials -1- INSTALL DEV C++ IN PC Urdu/Hindi
Автор: Spider Programmer
Загружено: 2018-03-01
Просмотров: 157
Описание:
C++ Programming Tutorials 1 INSTALL DEV C++ IN PC Urdu/Hindi
Subscribe: / @spiderprogrammer6188
Like us on Facebook:
/ spider.programmer
The satisfactory manner to analyze a programming language is by means of writing packages. Generally, the primary software novices write is a program known as "hiya world", which virtually prints "good day global" on your pc display. Although it is very simple, it carries all of the fundamental components c++ packages have:
The left panel above suggests the c++ code for this software. The right panel suggests the result when this system is achieved via a laptop. The grey numbers to the left of the panels are line numbers to make discussing applications and learning errors less complicated. They may be now not a part of this system.
Let's examine this software line by line:
Line 1: // my first program in c++
Two reduce signs and symptoms suggest that the relaxation of the road is a comment inserted by the programmer but which has no impact at the conduct of the program. Programmers use them to consist of quick motives or observations regarding the code or program. In this case, it's far a brief introductory description of the program.
Line 2: #include iostream
Lines beginning with a hash signal (#) are directives read and interpreted by using what's called the preprocessor. They are special lines interpreted before the compilation of the program itself starts offevolved. In this case, the directive #include iostream, instructs the preprocessor to consist of a segment of preferred c++ code, known as header iostream, that allows to perform general enter and output operations, including writing the output of this software (hey international) to the display screen.
Line three: a clean line.
Blank lines have no impact on a program. They really improve clarity of the code.
Line four: int fundamental ()
This line initiates the announcement of a function. Essentially, a feature is a group of code statements that are given a name: in this situation, this gives the name "foremost" to the group of code statements that observe. Capabilities could be discussed in element in a later chapter, however essentially, their definition is delivered with a succession of a type (int), a name (predominant) and 2 parentheses (()), optionally which include parameters.
The function named primary is a special feature in all c++ packages; it is the function called whilst the program is run. The execution of all c++ packages starts with the primary characteristic, irrespective of wherein the characteristic is simply positioned in the code.
Strains five and 7: and
The open brace () at line 5 shows the beginning of essential's function definition, and the ultimate brace () at line 7, shows its give up. The whole thing between those braces is the function's frame that defines what occurs when foremost is known as. All features use braces to suggest the start and stop in their definitions
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: