如果使用typedef 是这样的//可以把一个小写字母变成大写//char
(*pFun)(char); typedef char (*PTRFUN)(char); PTRFUN pFun; char glFun(char a){
return a & 223;} void print(int a....
分类:
编程语言 时间:
2014-05-17 01:24:44
阅读次数:
315
这是错误程序#include#include#include#include#include#includeusing
namespace std;mapcow;int main(){ //freopen("in.txt","r",stdin); char
str[1000],name[...
分类:
其他好文 时间:
2014-05-17 00:59:53
阅读次数:
266
环境:vs2013在下面的代码中1 //类似于下面的代码2 3
foo(char*,char*,char*);4 5 char* str ="A#B#C";6 7
foo(strtok(str,"#"),strtok(NULL,"#"),strtok(NULL,"#")); 预计让函数foo得到("...
分类:
其他好文 时间:
2014-05-16 23:52:09
阅读次数:
400
1 #include 2 using namespace std; 3 char
grand(int); 4 int main() 5 { 6 int n; 7 while (cin>> n) 8 { 9 if (n>100
|| n<0)10 ...
分类:
其他好文 时间:
2014-05-13 19:58:21
阅读次数:
327
一个空的class:如class X{}
;sizeof(X)==1;sizeof为什么为1,他有一个隐晦的1
byte,那是被编译器安插进去的一个char,这使得class2的两个objects得以在内存中配置独一无二的地址:X
a,b;if(&a==&b) cerrx+=pt.x;this-> ...
分类:
编程语言 时间:
2014-05-13 19:18:24
阅读次数:
405
#ifndef _LOGFILE_H#define _LOGFILE_H#include
#include #include #include class LogFile{protected: CRITICAL_SECTION
_csLock; char * _szFileName; HANDLE....
分类:
编程语言 时间:
2014-05-13 19:15:17
阅读次数:
348
【整】char、varchar、nchar、nvarchar的区别对于程序中的string型字段,SQLServer中有char、varchar、nchar、nvarchar四种类型来对应(暂时不考虑text和ntext),开建立数据库中,对这四种类型往往比较模糊,这里做一下对比。定长或变长
所谓....
分类:
其他好文 时间:
2014-05-13 16:53:45
阅读次数:
282
实现了%d %x %c %s对变长函数的参数取址有了深刻的理解
,蒋yy的实验任务其实还是很有帮助的^_^ 1 int printf ( const char * format, ... ) 2 { 3 int
Count=0; 4 int index=0; 5 char b...
分类:
其他好文 时间:
2014-05-13 11:01:59
阅读次数:
226
1、使用FileStream读写文件文件头:using System; using
System.Collections.Generic; using System.Text; using System.IO; 读文件核心代码: byte[]
byData = new byte[100]; char...
分类:
其他好文 时间:
2014-05-13 10:57:52
阅读次数:
262