Catherine_zhilin

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

C C++比较:

1.

Scanf printf 函数

Cin cout可不指定输入输出格式,消耗时间多

 

2.

Stdio :standard input output   .h——head

Stdio.h  ——include sth about input and output   (cstdio)

#include<xxx> use stdio.h

Math.h    (cmath)

String.h    (cstring)

 

3.

Only one entrance

Int main(){

Return 0;

}

 

4.

Int a,b;

Scanf(“%d%d”,&a,&b);

Printf(“%d”,a+b);

 

5.

C++ downward compatible C

posted on 2019-07-04 08:41  kkkshiki  阅读(83)  评论(0编辑  收藏  举报