摘要: 另外使用createfile函数将捕捉后的图片储存为文件 #include <Windows.h> #include <stdio.h> #include <assert.h> void scrshot() { Sleep(1000); BITMAP bmpScreen; HWND hwnd = G 阅读全文
posted @ 2019-11-06 16:56 strive-sun 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 问题代码: #include <iostream> int *foo() { int a = 5; return &a; } int main() { int *p = foo(); std::cout << *p; *p = 8; std::cout << *p; } 最后会打印:58 理论上,a 阅读全文
posted @ 2019-11-06 15:58 strive-sun 阅读(172) 评论(0) 推荐(0) 编辑