![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
yanyaohua1981
这个作者很懒,什么都没留下…
展开
-
一个c++读取.ini文件问题
Server.ini[NETWORK] ServerIP=100.100.100.53 port=3306#include #include using namespace std;int main(int argc, _TCHAR* argv[]){ char ip[16]; DWORD num=0,port=0; num = GetPrivateProfileString("NET原创 2008-12-05 13:41:00 · 1059 阅读 · 0 评论 -
time函数
#include "stdafx.h"#include #include #include #include using namespace std;int main(int argc, _TCHAR* argv[]){ char s[30]; time_t t=time(0); struct tm *local = localtime(&t); strcpy(s,ctime(&t)); p原创 2008-12-05 13:46:00 · 404 阅读 · 0 评论 -
memcpy和memmove函数的比较
区别:从DESCRIPTION看来,两者的功能基本相同,唯一不同的是,当 dest 和 src 有重叠的时候选用不同的函数可能会造成不同的结果。不妨写个小程序来测一下:0 #i nclude 1 #i nclude 23 int main()4 {5 int i = 0;6 int a[10];7 8 for(i; i原创 2008-12-05 15:21:00 · 1276 阅读 · 0 评论 -
ZeroMemory函数
void ZeroMemory( PVOID Destination, SIZE_T Length ); 参数: Destination :指向一块准备用0来填充的内存区域的开始地址。 Length :准备用0来填充的内存区域的大小,按字节来计算。 返回值:无 ZeroMemory 函数可以把一原创 2008-12-10 14:11:00 · 1054 阅读 · 0 评论