winconsole使用csting
来源:互联网 发布:js 取消input选中 编辑:程序博客网 时间:2024/05/01 11:01
VC8中是
cstringt.h MFC-only string objects
atlstr.h Non-MFC string objects
VC6是
#include <afx.h > 不过,还依赖其他文件,所以新建一个支持mfc的工程吧
使用win32控制台应用程序也能调通的啊,按Alt+F7,在C/C++的Category中选Code Generation,然后Use run-time library选Multithreaded,然后我直接写的代码:
#include <afx.h >
#include <iostream.h >
#include <time.h >
#include <afxtempl.h >
void main()
{
CString MyString;
CTime t=CTime::GetCurrentTime();
cout < <t.GetYear() < <endl < <t.GetDayOfWeek()
< <endl < <t.GetTime() < <endl < <t.GetGmtTm()- >tm_year < <endl;
MyString=t.Format("%A, %B %d, %Y");
cout < <t.GetLocalTm()- >tm_year < <endl < <MyString;
}
也能运行的。
- winconsole使用csting
- csting and sting 互转
- CSting 函数大全
- CSting分配空间
- CSting的类型转换
- Csting Left Mid Right
- CSting类的Format用法
- string和CSting用法小结
- C++ int, char,string,CSting的转换
- CSting,string,char*的综合比较
- CSting与char int sting的转换
- CFILE C++获取当前路径 CSting 拼接
- UNICODE下 CSting到string的转化
- CSting,int,string,char*之间的转换
- mfc CSting和int相互转化
- Csting 转 LPCSTR 造成的错误现象和解决方法
- strlen/strcpy...等string.h(csting)中的常用函数
- double转化成string string 转化成Csting
- 枚举串口
- 用户行为的长尾
- C 与 Fortran 的相互调用
- ORACLE等待事件
- Java加密和数字签名编程快速入门
- winconsole使用csting
- jQueryAjax开发
- Domino JSP Tags -deletedoc
- 学年计划
- Prototype教程
- Linux_src_code_treeview
- 磨合期……
- 收藏一篇文档
- SDO 简介