با سلام
من کد زیر رو توی qt creator می نویسم زیر خطوط include خط می کشه و می گه :
No such file or directory
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <conio.h>
using std::cout;
using std::cin;
int main()
{
int num, guess, tries = 0;
srand(time(0));
num = rand() % 1000 + 1;
cout << "Guess My Number Game\n\n";
do
{
tries++;
if (tries <= 10)
{
cout << "Enter a guess between 1 and 1000 : ";
cin >> guess;
if (guess > num)
cout << "Too high!\n\n";
else if (guess < num)
cout << "Too low!\n\n";
else
cout << "\n Correct!!! \n You got it in " << tries << " guesses!\n";
} else
{
cout << "\n Game Over!!! \n You Lose it over " << 10 << " guesses!\n";
cout << " Correct Num is : " << num;
break ;
}
} while (guess != num );
getch();
return 0;
}
حالا سوال اینجاست که باید کتابخانه ای چیزی اضافه کنم