大约有 3,400 项符合查询结果(耗时:0.0075秒) [XML]
Visul C++中CList用法 - C/C++ - 清泛网 - 专注C/C++及内核技术
...的链表进行遍历:
CList<CString ,CString&> list;
CString str1="hello";
CString str2="world";
CString str3="my";
CString str4="life";
list.AddTail(str1);
list.AddTail(str2);
list.AddTail(str3);
list.AddTail(str4);
POSITION pos = list.GetHeadPosition();
while(pos!=NULL)
{
CS...
c++ Timer使用总结 - C/C++ - 清泛网 - 专注C/C++及内核技术
...HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
std::cout << "hello " << std::endl;
}
void main()
{
int timer1 = 1;
MSG msg;
SetTimer(NULL, timer1, 5000, TimerProc);
int itemp;
while ( (itemp = GetMessage(&msg,NULL,NULL,NULL)) && (itemp!=0) && (-1 != ite...
c++文件流基本用法(ifstream, ostream,fstream) - C/C++ - 清泛网 - 专注C/C++及内核技术
...>
void main
{
ofstream file;
file.open("file.txt");
file<<"Hello file/n"<<75;
file.close();
}
例二: 读文件
#include <fstream.h>
void main
{
ifstream file;
char output[100];
int x;
file.open("file.txt");
file>>output;
cout<<output;
file>>...
error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...
...
{
//字面值常量为const对象,调用出错
if(find_char("Hello, world.",'.') != string::npos)
{
cout<<"a sentence."<<endl;
}
return 0;
}
解决方法:如果函数不修改相应实参,应该将引用形参定义为const引用,这样字面值常量、...
Poco::Timer 用法剖析 - C/C++ - 清泛网 - 专注C/C++及内核技术
.../t.stop();
}
void TimerTest::onTimer(Timer& timer)
{
std::cout << "hello" << std::endl;
}
Poco::Timer
c/c++ volatile和mutable关键字 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
{
char name[30];
mutable int accesses;
};
const data veep = {"hello", 0};
strcpy(veep.name, "hel"); //not allowed
veep.accessess++; //allowed
veep的const限定符进制程序修改veep的成员,但access成员的mutable说明符使得access不受这种限制。
volatile mutable
强烈推荐一款非常mini的代码高亮开源软件--prism - 开源 & Github - 清泛网...
...时引入它们,它会自动将<pre><code class="language-c">...printf("hello, world");...</code></pre>之间的代码进行高亮展示,由于代码量少二次开发也是很容易的。高亮后的代码内容复制出来后与原文完全一致。
行号展示要勾选相应的插件,...
微软新推一系列“视窗10”设备 - 资讯 - 清泛网 - 专注C/C++及内核技术
...给用户带来全新的“视窗”10体验,比如支持生物特征的Hello安全登陆功能,新版个人语音助手“小娜”,让智能手机变身个人电脑的Continuum功能,等等。
“视窗”10新设备将在接下来3个月里陆续在美国和其他一些国家上市,微...
如何在Visual Studio中运行和调试汇编代码 - 更多技术 - 清泛网 - 专注C/C++及内核技术
... xor eax, eax
mov a, eax
}
printf("hello:%d\n", a);
return 0;
}
运行结果:
下断点,F5调试:
Ctrl + Alt + D切换反汇编视图:
vs 调试 汇编代码
正则表达式匹配不包含某些字符串的写法 - 更多技术 - 清泛网 - 专注C/C++及内核技术
...个但字符。那什么样的正则表达式能过滤出不包含完整“hello”字串的信息呢?
事实上,说正则表达式里不支持逆向匹配并不是百分之百的正确。就像这个问题,我们就可以使用否定式查找来模拟出逆向匹配,从而解决我们的...
