.


:




:

































 

 

 

 


countX




void countX (float c, float& x)

{

x = (aGl * cos(bGl + c) - bGl * sin(aGl + c)) / (pow(aGl,3) + bGl * bGl);

}

 

 

1

, . , .

 

, , , .

, NameStudent, summa, MyType.

/C++. , mytype, MYTYPE MyType . /C++ . . (.c/.cpp) . , , MyType myType , mytype MYTYPE, .

 

Microsoft , , . , .

Windows , ( const), ( # define), , , ,

, .

Microsoft , Windows, .

 

 

g_ - g_gravConst
c const cfltPi
ch char 8 chGrade
ch TCHAR 16- , _UNICODE chName
b BOOL bEnabled
n, i int ( ) nLength, iLength
n UINT nHight
w unsigned int 16- wMaska
w WORD 16- wPos
l LONG 32- lOffset
l long 32- lLenght
dw DWORD 32- dwRange
flt float 32- fltValue
dbl double 64- dblValue
p * pDoc
lp FAR* lpDoc
sz string szNameStudent
psz char* lpszName
lpsz LPSTR 32- lpszName
lpsz LPSTR 32- lpszName
pv void* void pvMember
h handle Windows hWnd
lpfn callback CALLBACK - lpfnProc
       

 

:

Value1 = 1;

Value2 = 2;

Result = Value1 / Value2;

// - 0, 0.5

 

, .

 

, :

nValue1 = 1;

nValue2 = 2;

fltResult = nValue1 / nValue2;

// - 0, 0.5

 

. , , , - ++ / ,

0.

 

, , flt Result, Result.

, , , , , . .

 

 

, function - .

( ) .

++ - -. , (). .

 

:

__ __ ( __ )

{

/* . , ,

.

, ,

*/

}

 

, :

 

__ __ ( __ )

 

, :

 

{

/* . , ,

.

, ,

*/

}

 

, , . . ? , .

? , ( !):

__ __ ( __ );

 

(prototype).

 

, ++ , :

/*

*/

, , :

//

.

 

, , . , main:

// __ __ ( __ )

void main ( void )

{

// main

}

void . void , , .

 

 

, . , main.

. , , (, ) .

 

 

/* MyFirst.cpp , 1

main 2

- 3

, 4

蠠 5

"BYE!" 6

7 */

//================================================= 8

#include <iostream> // 9

#include <conio.h> // 10

using namespace std; // 11

// 12

void main (void) // 13

{ // 14

int nA; // 15

float fltB; // 16

cout <<"Input numbers:\t" // 17

<<"\nfirst int\t"; // 18

cin>>nA; // 19

cout<<"second float\t"; // 20

cin>>fltB; // 21

float fltSumma; // 22

fltSumma = nA + fltB; // 23

cout<<"summa = " << fltSumma; // 24

cout<<"\n\tBYE!"; // 25

getch(); // 26

} // 27

 

. main. ( 13) ( 14 27).

. . 11, 3 nA, fltB, fltS umma. . , , , . , .. - int float ( 15, 16, 22).

-, , .

: "Input numbers: \t ",

" \n first int \t ",

"second float \t ",

"summa = ",

" \ n \ t BYE!".

, escape- (, , ).

a, b, summa cout cin. , ?

cout cin , , . 9. . #include iostream. , ++, , , . , ++, . iostream cout cin, . cout cin . < > , , . .

 

19:

using namespace std;

, . , , . using namespace , std.

 

, getch. . , , - ? , ().

, conio.h, #include 10. ( , ) .

 

 

main 7 -.

-?

, , !!!

, . .

 

 

-

cout << "Input numbers:\t" << "\nfirst int\t";

cout << "second float\t";

cout << "summa = " << fltSumma;

cout << "\n\tBYE!";

<< cout summa.

 

-

cin>>nA;

cin>>fltB;

>> cin () b , .

 

 

-

fSumma = nA + fB;

+ a b = () summa.

 

-

getch();

() ( ) getch, .

: ?

, . , . getch - ( - , ).

 

 





:


: 2018-10-15; !; : 182 |


:

:

- , .
==> ...

1948 - | 1744 -


© 2015-2024 lektsii.org - -

: 0.044 .