码迷,mamicode.com
首页 >  
搜索关键字:cstring    ( 6726个结果
VC 整数转16进制的字符串
int EX0IEN; cstring strEX0IEN; char c1[4]; sprintf(c1, "0x%02x",EX0IEN); strEX0IEN.Format("%s", c1);
分类:其他好文   时间:2014-11-17 10:36:54    阅读次数:207
ado 字符串变量
这次变量主要针对 Mfc 的 Cstring 类型的变量(前面VC 链接Access 数据库 插入变量到表) 思路;  1 把cstring 类型 转为 string 2 string 转 char 数组 3 sprintf 写入数组 string 转 char 数组函数 [cpp] view plaincopyprint? char*...
分类:其他好文   时间:2014-11-15 18:52:34    阅读次数:133
HDoj- 2054 A==B?
【科普】什么是BestCoder?如何参加? A == B ? Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 64601    Accepted Submission(s): 10105 Proble...
分类:其他好文   时间:2014-11-15 15:38:03    阅读次数:201
CString,int,String,char,BSTR之间的转换
String 转 CString CString.format("%s", string.c_str());char 转 CString CString.format("%s", char*);char 转 string string s(char *);string 转 char * char *...
分类:其他好文   时间:2014-11-15 15:30:54    阅读次数:246
hdu 5058
#include?<iostream> #include?<fstream> #include?<vector> #include?<cstdio> #include?<string> #include?<cstring> #include?<cstdlib> #include?<algorithm> #include?<set> using?namespace?s...
分类:其他好文   时间:2014-11-14 01:51:52    阅读次数:194
hdu 5019
#include?<iostream> #include?<fstream> #include?<vector> #include?<cstdio> #include?<string> #include?<cstring> #include?<cstdlib> #include?<algorithm> #include?<cmath> #include?<cfloat> ...
分类:其他好文   时间:2014-11-14 00:24:53    阅读次数:269
将时间字符串转化成毫秒形式的时间
前两天遇到一个要将字符串形式的时间转化成用毫秒表示的时间,作为一个初学者的我一下子没有了头绪,所以只能各种搜索。终于实现了自己想要的结果。先上代码,如果有不对的地方,希望大家指正。 1 #include 2 #include //在非MFC下,使用CString需要包含这个头文件 3 usi...
分类:其他好文   时间:2014-11-12 22:49:14    阅读次数:212
Vc access ado where 变量
这次变量主要针对 Mfc 的 Cstring 类型的变量 思路;  1 把cstring 类型 转为 string 2 string 转 char 数组 3 sprintf 写入数组 string 转 char 数组函数 char* zhuanhuan(std::string src) { char *dst = new char[255]; int i; int j...
分类:数据库   时间:2014-11-11 19:12:15    阅读次数:227
MFC Dialog程序如何接收命令行参数
在MFC程序中,可以用以下几种方法来获取命令行参数。为方便说明,我们假设执行了命令:C:\test\app.exe -1 -2  方法一 :  使用API函数GetCommandLine(),获取程序名称及参数在OnInitDialog()中添加代码:CString sCmdline = ::GetCommandLine(); AfxMessageBox(sCmdline); 将获取...
分类:编程语言   时间:2014-11-11 19:09:07    阅读次数:202
【VC】 swscanf_s 函数使用,方便快捷的转换数据格式
int swscanf_s( const wchar_t *buffer, const wchar_t *format [, argument ] ... ); 例如:取字符串的颜色值。 UINT R,G,B; CString szColor(_T("#FE00FA")); swscanf_s(szColor,_T("#%02x%02x%02x"),&R,&G...
分类:其他好文   时间:2014-11-11 16:41:03    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!