⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro35.cpp

📁 hello everybody. good lucky to you
💻 CPP
字号:
//INTRO35.CPP--Example from Chapter 3, "An Introduction to C++"

#include <iostream.h>

void swap(int *, int *);   // This is swap's prototype

int main()
{
	int x = 5, y = 7;
	swap(&x, &y);
	cout << "\n x is now "<< x << " and y is now " << y << '\n';

	return 0;
}

void swap(int *a, int *b)    // swap is actually defined here
{
	int temp;
	temp = *a;
	*a = *b;
	*b = temp;
}

⌨️ 快捷键说明

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