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

Posted levelstrcpy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C语言程序今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~相关的知识,希望对你有一定的参考价值。

#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语言程序今天是祖国母亲的生日,特意编写一个小程序,为祖国母亲庆生~的主要内容,如果未能解决你的问题,请参考以下文章