我的程序给了我一个空白屏幕和这个错误
“错误 1 错误 C1075:在左大括号 '{' 之前找到文件结尾”请帮助!
这是代码:
#include "stdafx.h"
#include<iostream>
#include<ctime>
#include <cstdlib>
#include <time.h>
using namespace std;
int randomnumber();
int main(void)
{
int iGuesses;
int iUser1;
int iUserguess;
char cDoagain;
while(true)
system("CLS");
system("COLOR 2");
iGuesses = rand() % 100 +1;
cout << "NumberGuesser"
<< endl;
do
{
cout << "The Number is " << iGuesses << endl;
std::cout << "Press ENTER to continue...";
std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
system("PAUSE");
return 0;
}
感谢你们!