请问该程序是否可以优化,谢谢大家!
#include <stdio.h>#include <string.h>
struct student
{
int num;
int age;
char name;
};
void main()
{
struct student stu;
strcpy(stu.name,"Tom");
stu.num = 12;
stu.age = 52;
printf("Num=%d,Age=%d,Name=%s\n",stu.num,stu.age,stu.name);
//printf("Num=%d,Age=%d,Name=%f\n",(*pstu1).num,(*pstu1).age,(*pstu1).name);
} 矫情,一共就三两行代码,有什么价值优化? jackz007 发表于 2019-11-5 17:06
矫情,一共就三两行代码,有什么价值优化?
呵呵呵~~~
页:
[1]