//lethead.c
#include <stdio.h>
#define NAME "GIGATHINK,INC."
#define ADDRESS "101 Megabuck Plaza"
#define PLASE "Megapolis.CA 94904"
#define WIDTH 40
void starbar(void); //声明函数
int main(int argc, const char * argv[]) {
starbar();
printf("%s\n",NAME);
printf("%s\n",ADDRESS);
printf("%s\n",PLASE);
starbar(); //使用函数
return 0;
}
void starbar(void) //定义函数
{int count;
for (count=1; count<=WIDTH; count++) {
putchar('*');
}
putchar('\n');
}
lethead.c
最新推荐文章于 2022-08-18 12:33:33 发布