[zt]dePython
http://www.depython.net/
team509的东西,赞一个
http://www.depython.net/
team509的东西,赞一个
char[]于char*的区别
见程序如下:
#include "stdafx.h"
#include "string.h"
#include "stdio.h"
int main(int argc, char* argv[])
{
char source[]="This is a source sentence";
//char *source="This is a source sentence";
strtok(source,"a");
printf("%s\n",source);
return 0;
}
如果用被注释掉的那句话,程序运行的时候就报错。
发现问题并找到参考资料如......
文章作者:zjjmj
/*
* Discovered and coded by randnut Jan 25, 2004