有哪位博主来看看这段代码(C++入门选手,求带)

有哪位博主来看看这段代码(C++入门选手,求带),第1张

#include 
#include 
using namespace std;

void main(int time,int iCount=0,double a=0.0,double b=0.0,char y[]="yes",char n[]="no")
{
	cout<<"Number Guessing Game"<>ready;

		double g,w,b;
		char G[]="go";
		char W[]="wait";
		char B[]="bye";
		g=strcmp(ready,G);
		w=strcmp(ready,W);
		b=strcmp(ready,B);

		if(g==0)
		{
			int Start,End,T;

			cout<<"Let's go!"<>Start;
				cout<<"Ending number:";
				cin>>End;

				if(Start>guess;

						if(guess==random)
						{
							cout<<"You're right!"<>wants;

							A=strcmp(wants,y);
							B=strcmp(wants,n);

							if(A==0)
							{
								cout<<"OK!"<>returns;

								A=strcmp(returns,y);
								B=strcmp(returns,n);

								if(B==0)
								{
									cout<<"Well,bye."<100)
					return;
			}
		}

		if(w==0)
		{
			cout<<"OK!"<>returns;
			a=strcmp(returns,y);
			b=strcmp(returns,n);

			if(a==0)
			{
				cout<<"Well,bye."<

错误提示:fatal error C1004: unexpected end of file found

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/3002616.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-27
下一篇 2022-09-27

发表评论

登录后才能评论

评论列表(0条)