北京大学计算概论课件第七讲 赋值与数据输出.pptVIP

  • 15
  • 0
  • 约6.79千字
  • 约 46页
  • 2019-05-06 发布于广东
  • 举报

北京大学计算概论课件第七讲 赋值与数据输出.ppt

Lesson 7 Assignment and Interactive Input/Output Hu Junfeng 2007/10/13 Assignment —— use the r-value to rewrite the l-value l-value and r-value r-value: a number; a variable; an expression; (a function) l-value: a variable only! Data type conversion Assignment (cont.) Implicit explicit type conversion Increment operator (++): variable = variable + 1 can be replaced by variable++ or ++variable #include stdio.h main() { int x=23; printf(%d\n,--x); } Interactive Input/Output printf(“control string” ,x1 ,x2 ,…) control string string e

文档评论(0)

1亿VIP精品文档

相关文档