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

levelstrcpy 2017-10-01 18:58 原文

#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;
}

推荐阅读