int, double, char, long, short, float - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

int, double, char, long, short, float

Description:

int, double, char, long, short, float. ??? ????? ?? ?????, ???? ????? ????? ????? ???, ???? ... int power(double base, int exponent); ??????? ???????. 3. 10/19 ... – PowerPoint PPT presentation

Number of Views:24
Avg rating:3.0/5.0
Slides: 7
Provided by: mathHa
Category:
Tags: char | double | float | int | long | short

less

Transcript and Presenter's Notes

Title: int, double, char, long, short, float


1
??????? ???????

2
?????? ??????? ???????
  • ????? ???? ??????? ???????
  • int, double, char, long, short, float
  • ??? ????? ?? ?????, ???? ????? ????? ????? ???,
    ????
  • int x -5
  • ??? ????? ?? ????? ???????, ???? ???? ?????
    ????? ???????? ????? ??????
  • int power(double base, int exponent)

3
??????
  • ???? ??? ???? ?????? ????? ?????. ????
  • int a3
  • ????? ?? ???? ?? ????? ?????? ?????? int, ?????
    a0, a1, a2.
  • ???? ?????? ????? ??????? ??? ???
  • scanf(d, a2)
  • a1 a2a0
  • printf(d, d, d\n,a0,a1,a2)

4
?????? - ????
  • ???? ????? ?? ?????? ?? ????? ??? ???? ????? ??
    ?????? ??????
  • int i, sum0, a3 3,4,5
  • for(i0, ilt2, i)
  • ai1 ai
  • for(i0, ilt3, i)
  • sum ai

5
???????
  • ???? ?? ?????? ?????? char ???? ??????
    (string). ?? ??? ?????? ????? ?????? ??????
  • char h6 Hello
  • ????? ??????
  • char h6 H,e,l,l,o,\0

6
????? ????? (struct)
  • ???? ?????? ?? ??????? ???????? ????? ???? ???
    ?? ??????? ?????? ????
  • struct simple_expression
  • double operand1
  • char operator
  • double operand2
Write a Comment
User Comments (0)
About PowerShow.com