.


:




:

































 

 

 

 


N 6

" "

: " "

 

.

- .

 

.

: , , , . ( ) , . .

1.

/ A[ M,N ]
 
  , .
 
  , .
 
 
 
 
  .
 
  .
  .
 
  , .
 
 
 
  .
 
  , .
  .
  , .

.

: , , , , .

N 7

" "

: " "

 

.

- .

 

.

( ) . ( ) , (). , .

1.

/ A[ M,N ]
  ( ) .
  ( ) .
  . , .
  ( ) .
  ( ) .
  ( ) .
  ( ) .
  . , .
  ( ) .
  .
  . .
  . , .
  . , ( , 2- ( )).
  . . , .
  . . , .
  ( ) .
  . .
  . .
  .
  . ( 50).

 

.

: , , , ( 2-), .


 

N 8

" "

: " "

.

- .

 

.

. . , , - .

/
  . .
  . .
  . , 10 ().
  . , .
  . .
  . , . .
  : ; ; . .
  : ; ; .
  : ; ; . ..
  : ; ; ; . .
  : ; ; ; (, ). ( ).
  ( ). .
  . .
  . ( ) .
  . . .
  . .. .
  . ( ), .
  . ( ), 5 ().
  : ; ; . ( ) ..
  : ; ; ; ( : +7812-123-45-78). .

 

.

: , , , ( -), .

N 9

" "

: " "

 

.

dll (Dynamic Linked Library).

 

.

, dll. . Windows ("math.h") , . : .

 

:

;

exp(x), ;

, ;

, ;

sin2(x), ;

cos2(x), ;

;

sin(x), ;

cos(x) ;

cos3(x), ;

cosec2(x), , ;

;

sec2(x);

ex(1+x);

;

;

esin(x);

ecos(x);

etg(x);

earcsin(x);

 

. .

 

:

, , .

:

 

x MyFunction(x) Function(x)
     
     
     

 

(Function) dll .

( 10-1 - 10-7)

MyFunction(x) Function(x)
0.1      
     
0.0000001      

 

 


dll, :

double myf_(double /*1 */, double /*2 */, double /**/)

// . myf_

// family_func,

// "" .

// myf_ ""

// (1,2,3)

double myf_math(double /*1 */, double /*2 */)

//

char * FName();

//

:

family_func(/* */)

// family

//func .

// family_func myf.

 

dll:

extern "C" __declspec(dllexport) char* ToString()

{ return "MyFunctionName"; }

 

:

HINSTANCE p_dll = LoadLibrary ("___.dll");

typedef char* (*Func)();

Func Name = (Func)GetProcAddress(p_dll, "ToString");

cout >> Name();

 

.

: , , , , , .


 

N 10

" "

: " CString"

 

.

- CString.

 

.

( ), :

/
1.      
2.      
3.      
4.      
5.      
6.      
7.      
8.      
9.      
10.      
11.      
12.      
13.      
14.      
15.      
16.      
17.      
18.      
19.      
20.      

 

:

1. ()

2.

3.

4. ( N M )

5.

6. .

7. .

8.

9.

10.

11.

 

.

: , , , , .

:

#include "stdafx.h"

#include <conio.h>

#include <ctype.h>

int main(int argc, char* argv[])

{

int ch;

_cputs("Type 'Y' when finished typing keys: ");

do

{

ch = _getch();

printf ("%i",ch);

ch = toupper(ch);

} while(ch!= 'Y');

_putch(ch);

_putch('\r'); /* Carriage return */

_putch('\n'); /* Line feed */

return 0;

}

 

 



<== | ==>
| .
:


: 2017-02-25; !; : 952 |


:

:

! . .
==> ...

1845 - | 1640 -


© 2015-2024 lektsii.org - -

: 0.062 .