.


:




:

































 

 

 

 





, .

. AppExpert. AppExpert .

, , .

, . :

klddlgcl.cpp. . (). . ( ) . : .

. , .

.

.

! , main () { .

 

:

#include <stdlib.h>

#include <stdio.h> /* */

#include <math.h> /* */

#include <conio.h>

void TKladDlgClient::ClickedOK() /* */

{ /* */

// INSERT>> Your code here. /* */

 

float c[7], /* */

p[7], /* */

pro; /* */

int n, i; /* , */

char buf[10];

ListBoxVozn->ClearList();

EditNum->GetText(buf,10);

n=atoi(buf); /* */

EditProz->GetText(buf,10);

pro=atof(buf); /* */

for(i=0; i < n; i++) /* ( ) */

{

EditStoim->GetLine(buf, sizeof(buf), i);

c[i]=atof(buf); /* */

}

for(i=0; i < n; i++) /* */

{

p[i] = (c[i] *pro)/ 100.;/* */

sprintf(buf,"%5.3f",p[i]); /* */

ListBoxVozn->AddString(buf); /* a */

}

}

25.

492. 503. 948. 738. 892. 320. 250.

, , , 6.2. , , , .

.

6.3.

.

, , () , , , .

(, , ), ( , ..).

, ( ).

:

-;

.

- , . .

. , . , , .

. .

?

-?

?

?

?

?

?

, ?

?

?

?

?

- ?

?

?

 





:


: 2015-11-23; !; : 491 |


:

:

- , , .
==> ...

1583 - | 1383 -


© 2015-2024 lektsii.org - -

: 0.014 .