📄 overflow.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 + -