码迷,mamicode.com
首页 >  
搜索关键字:char    ( 35907个结果
c语言函数指针实例
如果使用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
hust 1074
这是错误程序#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
杭电 2004
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
《深度探索c++对象模型》chapter3 Data语意学
一个空的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
C++ 日志类
#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的区别
【整】char、varchar、nchar、nvarchar的区别对于程序中的string型字段,SQLServer中有char、varchar、nchar、nvarchar四种类型来对应(暂时不考虑text和ntext),开建立数据库中,对这四种类型往往比较模糊,这里做一下对比。定长或变长 所谓....
分类:其他好文   时间:2014-05-13 16:53:45    阅读次数:282
递归实现int转化为char字符串
递归实现int转化为char...
分类:其他好文   时间:2014-05-13 15:26:30    阅读次数:209
printf的实现(不借助stdarg.h中的宏)
实现了%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
[转]C#读写TEXT文件
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!