指针与数组名
来源:互联网 发布:数据保密承诺书 编辑:程序博客网 时间:2024/04/20 01:00
struct student
{
long num;
char name[10];
float score;
};
stu.name = "alex";
报错:
error: incompatible types when assigning to type ‘char[10]’ from type ‘char *’
修改:strcpy(stu.name, "alex");
- 数组名与指针
- 数组名与指针
- 数组名与指针
- 数组名与指针
- 数组名与指针
- 指针与数组名
- 数组名与指针
- 数组名与指针
- 数组名与指针
- 指针与数组名
- 指针与数组名
- 数组名与指针
- 数组名与指针
- 指针与数组名
- 数组名与指针
- 数组名与数组指针
- 引用、指针与数组名
- 数组名与指针区别
- 关于db2数据库并发性
- iOS 5 :一个UIPageViewController程序示例
- nginx 下防止注射
- COM Interop Part 1: C# Client Tutorial
- android 获取资源
- 指针与数组名
- Java FTP(Apache)文件上传、下载
- Route1
- Shareplex, activate config, " Supplemental logging is not enabled"处理
- Dom4j
- 用js判断文本框中的是不是空,是否有空格
- Ubuntu安装tftp客户端
- 《编程之美》1.7 光影切割问题
- Route2(算法)