.


:




:

































 

 

 

 





1

VisualStudio, . .

 

#include "stdafx.h"

#include "math.h"

int _tmain(int argc, _TCHAR* argv[])

{

{ }

return 0;

}

 

#include "stdafx.h", stdafx.h, () , ,

(primary function),

int _tmain(int argc, _TCHAR* argv[])

 

, return 0; 0.

 

int ,

float ,

double ,

char .

 

printf , , ( , ), . .

, %. :

 

%d ,

%u ,

%f float ,

%lf double ,

%e ,

%g : .

 

,

int k=-25;

unsigned int j=7;

float x=-4.55;

 

double y=3.125E-2;

printf ("%d%u%f%lf",k,j,x,y);

 

-25 7 -4.5500000.031250

, escape-

 

'\a' '\07' '\x07'

'\b' '\08' '\x08

'\f' '\14' '\x0c

'\n' '\12' '\x0a'

'\r' '\15' '\x0d'

'\t' '\11' '\x09'

'\v' '\13' '\x0b'

'\\' '\134' '\x5c'

'\'' '\47' '\x27'

'\"' '\42' '\x22'

'\?' '\77' '\x77'

.

scanf , - , &. %:

%d ,

%u ,

%f float,

%lf double.

,

int k;

unsigned int j;

float x;

double y;

,

 

scanf ("%d %u %f %lf",&k,&j,&x,&y);

3 :

k ;

j ;

x float;

y double.






:


: 2015-09-20; !; : 486 |


:

:

- , - .
==> ...

1312 - | 1249 -


© 2015-2024 lektsii.org - -

: 0.01 .