.


:




:

































 

 

 

 


( , ) .




#include <fstream>

#include <iomanip>

 

#include <qt/qbutton.h>

#include <qt/qtextfield.h>

 

#include "com/company/ui/PropertiesDialog.h"

#include "com/company/ui/MainWindow.h"


. .

.

. , - .

 

5.1


43. , , .

.

44. public, protected private . .

public, protected/private.

. .

floatValue = static_cast<float>(intValue); // : floatValue = intValue;


, , .

5.2


46. .

, . :

int x, y, z;

getCenter(&x, &y, &z);


, - .

.

, , . - .

.

C++ ( . ). () , .

49. public.

. private . , ( C). .

, C++ C; . .

( 50 . .)

51. C++ , .

float* x; // : float *x;

int& y; // : int &y;


, , , . C , C++ .

53. () .

if (nLines!= 0) // : if (nLines)

if (value!= 0.0) // : if (value)


C++ , int float, , 0. .

, , , if (line == 0) if (line). C/C++, .

.

.

5.3


55. for() , .

sum = 0; // : for (i = 0, sum = 0; i < 100; i++)

for (i = 0; i < 100; i++) sum += value[i];

sum += value[i];


. , .





:


: 2015-10-20; !; : 411 |


:

:

, , .
==> ...

2083 - | 1730 -


© 2015-2024 lektsii.org - -

: 0.011 .