2_1.cpp

来自「C++语言编的关于C++的数据抽象小程序」· C++ 代码 · 共 18 行

CPP
18
字号
// 2_1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
//example for C++ Declaration and Definition
extern int a;		//变量声明而没有定义
extern int i(int);	//函数的声明
int b;          	//变量声明又定义了
int i(int x)  		//函数的定义
{
	return x+1;
}
void main(void)
{
	a = 1;
	i(a);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?