//选择语句
#include <stdio.h>
main ()
{
int a;
printf ("Are you study hard?\n");
printf("You can say yes or no---1 equal yes and 0 equal no\n");
scanf ("%d", &a);
if (a == 1)
printf ("You can take a good offer\n");
else
printf ("You can become a good saler\n");
}
//循环语句
#include <stdio.h>
int main ()
{
int a=0;
while(a<10)
{
printf("Writing codes:%d\n",a);
a++;
}
if(a==10)
printf("You can become a great person");
return 0;
}
//define定义宏和常量
//指针的“解引用操作”及其大小
//结构体的定义和打印