大约有 30,000 项符合查询结果(耗时:0.0312秒) [XML]

https://www.tsingfun.com/it/cpp/1576.html 

截图软件截图区域以外背景变灰的实现--AlphaBlend - C/C++ - 清泛网 - 专注...

...--------画黑色背景---------------- COLORREF bgColor = RGB(0, 0, 0); char alpha = (255 * 30) / 100; int screenX = GetSystemMetrics(SM_CXSCREEN); int screenY = GetSystemMetrics(SM_CYSCREEN); CDC memdc; memdc.CreateCompatibleDC(&dc); CBitmap bmp, *pOldBitmap; bmp.CreateCompatibleBitmap(&...
https://www.tsingfun.com/it/cpp/1633.html 

Unicode and UTF-8 - C/C++ - 清泛网 - 专注C/C++及内核技术

...)、和ASCII码不兼容,而且不太好移植(Not Portable) 例如:char *s=“Good ,北京”;该C语言代码采用UTF-16编码后,字节序列中间有许多’\0’,’\0’ 会被识别为字符串的终止,strlen()函数不起用了。 2)、存储空间较大,...
https://www.tsingfun.com/it/cpp/1823.html 

Linux automake自动编译全攻略 - C/C++ - 清泛网 - 专注C/C++及内核技术

...st.c: #include <stdio.h> #include "lib/calc.h" int main(int argc, char** argv) { int sum = add(1, 2); printf("sum:%d\n", sum); return 0; } 编译及执行结果: 执行: 代码点此下载:automake.zip Linux automake 自动编...
https://www.tsingfun.com/it/cpp/1902.html 

c++文件流基本用法(ifstream, ostream,fstream) - C/C++ - 清泛网 - 专注C/C++及内核技术

...二: 读文件 #include <fstream.h> void main { ifstream file; char output[100]; int x; file.open("file.txt"); file>>output; cout<<output; file>>x; cout<<x; file.close(); } 上面所讲的ofstream和ifstream只能进行读或是写,而fstream则同时...
https://www.tsingfun.com/it/cpp/2045.html 

MiniDumpWriteDump 记录dmp文件的简单实例(附调试方法) - C/C++ - 清泛网...

...LONG WINAPI ExceptionHandler(LPEXCEPTION_POINTERS pExceptionPointers) { char szFile[MAX_PATH] = {0}; SYSTEMTIME st = {0}; GetLocalTime(&st); sprintf_s(szFile, "xxx_%d%02d%02d_%02d%02d%02d.dmp", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond); HANDLE hD...
https://www.tsingfun.com/it/cpp/2091.html 

error C2512: “Foo”: 没有合适的默认构造函数可用 - C/C++ - 清泛网 - 专...

... Foo(int i):ival(i){} private: int ival; }; int main(int argc, char *argv[]) { vector<Foo> empty; vector<Foo> bad(10); vector<Foo> ok(10,1); return 0; } 解决办法: 实际上根据c++ primer第四版解释构造空的vector时是不调用对象的构造函数...
https://www.tsingfun.com/it/cpp/2147.html 

GetNextDlgTabItem用法详解,回车替代Tab键切换控件焦点 - C/C++ - 清泛网 ...

... == VK_RETURN) { CWnd *wnd = GetFocus(); if (wnd != NULL) { char str[256]; CString ClassName = _T("Button"); GetClassName (wnd->m_hWnd, str, 256); if (ClassName == str) { UINT i = wnd->GetDlgCtrlID(); SendMessage (WM_COMMAND, i, (LPARAM)wnd->m_hWnd); CWn...
https://www.tsingfun.com/it/cpp/2205.html 

c/c++ volatile和mutable关键字 - C/C++ - 清泛网 - 专注C/C++及内核技术

...const,其某个成员也可以被修改。如: struct data { char name[30]; mutable int accesses; }; const data veep = {"hello", 0}; strcpy(veep.name, "hel"); //not allowed veep.accessess++; //allowed veep的const限定符进制程序修改veep的成员,但access成员的mut...
https://www.tsingfun.com/it/cp... 

c++11右值引用、std::move移动语义、std::forward完美转发的一些总结 - C/C...

...还能拷贝构造,保障代码安全。对于一些基本类型如int和char[10]等,使用std::move()仍然会发生拷贝,因为没有对应的移动构造函数。 对于完美转发而言,右值引用并非“天生神力”,只是c++11新引入了右值,因此为其新定下了引...
https://bbs.tsingfun.com/thread-491-1-1.html 

Linux automake自动编译全攻略 - 脚本技术 - 清泛IT社区,为创新赋能!

...nclude &lt;stdio.h&gt; #include &quot;lib/calc.h&quot; int main(int argc, char** argv) { &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;int sum = add(1, 2); &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;printf(&quot;sum:%d\n&quot;, sum); &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;r...