// liuyi.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "stdio.h
#include"stdlib.h"
#include "string.h"
#ifndef TASK_H_
#define TASK_H_
typedef struct person
{
char * name;
int age;
int priority;
} ;
#endif
int main(int argc, char* argv[])
{
person someone;
someone.name=(char *)malloc(50);
scanf("%d %d %s",&someone.age, &someone.priority, someone.name);
if (someone.priority==1)
printf("Happy birthday to %s!\n",someone.name);
free(someone.name);
return 0;
}
////////////////////////////////////////////////////////////////////////////////////
12.5日是荷兰的sinterklaas节日,西方的圣诞老人的创意就是可口可乐公司抄袭他的,今晚去拜见了下他老人家,得到一份“made in china”的香水。
没有评论:
发表评论