c++ 变量声明
#include <iostream>
using namespace std;
//變量聲明
extern int a,b;
extern int c;
extern float f;int main()
{//變量定義int a,b;int c ;float f;a=10;b=20;c=a+b;cout << c << endl;f=70.0/3.0;cout << f<< endl;return 0;}
總結(jié)
- 上一篇: c++ hello word
- 下一篇: c++ #define