#include "stdafx.h"//////int v,i,j,k,l,s,a[99];//////int _tmain(int argc, _TCHAR* argv[])//////{////// //毒药////// for(scanf("%d",&s); ////// ...
分类:
其他好文 时间:
2015-05-28 21:21:10
阅读次数:
102
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
其他好文 时间:
2015-05-26 12:36:11
阅读次数:
109
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
编程语言 时间:
2015-05-26 10:34:26
阅读次数:
213
在网上找类似_tcslen的函数集,但是居然找不到,又想到我常常要用到,所以我就自己来整理了,主要是通过看tchar.h的源代码来整理的。在这之前,先看一下下面的代码:#ifdef _UNICODE#define _tcslen wcslen#else#define _tcslen strle...
分类:
其他好文 时间:
2015-05-25 22:18:04
阅读次数:
135
下一章会整理一下tchar.h里常见的字符串处理函数,这一章没有给出全部的代码,就给出了一些主要的宏定义/* ++++++++++++++++++++ UNICODE ++++++++++++++++++++ */#include #ifdef __cplusplusextern "C" {#end...
分类:
其他好文 时间:
2015-05-25 22:08:23
阅读次数:
255
char,wchar_t,CHAR,WCHAR,TCHAR,PSTR,PCSTR,PCTSTR,_T,_TEXT,L
首先,这是一个字符集的问题。在ANSI字符集中,字符类型是char,在UNICODE字符集中,字符类型是wchar_t,也可以称之为宽字符,宽字符占两个字节。然后,我们来看一段定义代码://winnt.htypedef char CHAR; //8位typedef wchar_t WCHAR;...
分类:
其他好文 时间:
2015-05-25 21:51:51
阅读次数:
105
1 #include "stdafx.h" 2 #include 3 using namespace std; 4 5 int _tmain(int argc, _TCHAR* argv[]) 6 { 7 char **p; 8 char * b[] = {"Fortran",...
分类:
编程语言 时间:
2015-05-23 11:18:34
阅读次数:
99
在C++11中,使用花括号来初始化变量得到全面的应用,也可以用花括号来对变量赋值。当用于内置类型变量时,这种初始化的一个重要特点是如果使用列表初始化且初始值存在丢失信息的风险,编译器将报错。
int _tmain(int argc, _TCHAR* argv[])
{
long double ld = 3.1415926536;
int a{ ld };
int b = { ld };
...
分类:
编程语言 时间:
2015-05-20 09:55:50
阅读次数:
149
UBOOL ParseParam( const TCHAR* Stream, const TCHAR* Param, UBOOL bAllowQuoted ){ const TCHAR* Start = Stream; if( *Stream ) { while( (...
分类:
其他好文 时间:
2015-05-13 18:31:16
阅读次数:
158
接下来的是录入航班、修改航班信息功能的实现: 1 //录入航班 2 BOOL EntryFlight(HWND hEntryDlg){ 3 4 TCHAR szDiscount[16]; 5 TCHAR szFare[16],szSeat_Number[16]; 6 TCH...