一个非常简单的问题 怎么样给char类型的变量附一个字串值如:char temp; 把"this is a sample question"附给temp 3x 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 char 只能放一个字符的,你可以用数组,或是指针, 应该是用字符串来接受吧?char* temp = "this is a sample question"; 补充:temp为一个数组,char temp[256]注:不用指针 基本概念问题:char是字符,char*是字符的指针或数组,可以用来保存\0结束的字符串。 char temp[256];strcpy(temp,"this is a test"); char temp[256] = " this is a sample question"; 我在ListCtrl中用SHGetFileInfo插入系统图标为什么关闭后第二次打开就没有图标了 ado 访问数据库 ActiveX导致IE6出错的原因? 如何编程生成透明gif图片,不要嫌分少啊 请教:简体软件繁体化 怎么将对话框中的数据存到文件中? 问个简单的问题,急... 请教高手,100分相送。 有人知道吗?线程问题:UP有分!!!! [急切求助]SkinPlusPlus皮肤控件使用之后OnTimer()函数就不运行了!! vc如何选取出sql server中精确到毫秒级的数据?难道没有办法么? 高手幫忙; 自定義文件用IE打開?
char* temp = "this is a sample question";
char temp[256]
注:不用指针
strcpy(temp,"this is a test");