码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-10-01 19:28:45      阅读:222      评论:0      收藏:0      [点我收藏+]

标签:people   define   gets   blog   src   c语言   chinese   today   生日   

#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语言程序】今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~

标签:people   define   gets   blog   src   c语言   chinese   today   生日   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!