语言问题。达人解答

来源:百度知道 编辑:UC知道 时间:2024/06/27 05:04:13
#include "stdio.h" /*I/O函数*/
#include "string.h"/*字符串函数*/
#define A {"Capricorn"}
#define B {"Aquarius"}
#define C {"Pisces"}
#define D {"Aries" }
#define E {"Taurus"}
#define F {"Gemini"}
#define G {"Cancer" }
#define H {"Leo"}
#define I {"Virgo"}
#define J {"Libra" }
#define K {"Scorpio"}
#define L {"Sagittarius"}

match()
main()
{
int a1,a2,b1,b2;
printf("****Welcome to the constellation matchmaker****\n");
printf("press any key to start>>>>");
getch();
clrscr();

printf(" please input your Birthday in this form XX,XX:",);
scanf("%d,%d",&a1,&a2);
printf(" please i

拜托。。
“=”是赋值号
"=="才是等号
不要用太多else
拜托。。else标准书写空4行。
是个星座配对函数吧。。
用耶佩斯函数进行6x6调用
就OK了
属于基础啊。
大哥。