首页 > 编程语言 > 详细

【C语言程序】今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~

时间:2017-10-01 19:20:50      阅读:294      评论:0      收藏:0      [点我收藏+]

#include <stdio.h>
#define N 80

int main(int argc, char *argv[]) {
char a[N];
printf("Hello,where are you from?\n");
gets(a);
if(strcmp(a,"China")==0||strcmp(a," the People‘s Republic of China")==0)
printf("Wow,i am a Chinese,too.\nToday is a birthday of our country.\nLet‘s wish our motherland to have a happy birthday!");
else printf("Nice to meet you!");
 return 0;
}

技术分享

【C语言程序】今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~

原文:http://www.cnblogs.com/levelstrcpy/p/7617603.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!