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

📄 overflow.cpp

📁 这是一本学习 window编程的很好的参考教材
💻 CPP
字号:
#include <iostream>
using namespace std;

int test();

int main()
{
    
	
	test();
label1:
	cout << "hello,test\r\n";
label2:
	_asm nop;
	_asm nop;
	_asm nop;
	_asm nop;
	
	

	
	
	cout << "overflow,test\r\n";

	return 0;
}
int test()
{
	int test[2];
	int temp;
	cout << test[3] << " " << test[3]+18;
	cout <<"\n";

	for(int i=0;i<=3;i++)
	{
		cin >> temp;
		test[i]=temp;
	}
	cout << &temp;
	cout << &test[0];
	cout << &test[1];
	cout << &test[2];
	cout << &test[3];
	cout << test[3];
	cout <<"\n";
	cout << test[0];
	cout <<"\n";
	cout << test[1];
	cout <<"\n";
	cout << test[2];
	cout <<"\n";
	cout << test[3];
	cout <<"\n";
	return 0;
}

⌨️ 快捷键说明

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