Po zakończeniu pętli rpogram nic nie wypisuje, oto kod:
void Expedition(const char *way, const char *way_a, const char *way_b, int times, int ships)
{
for (int i=1; i=times; i++)
{
Sleep(1000);
system("cls");
cout << "Time expedition: " << i << "/" << times << endl;
}
srand(time(NULL));
int number = rand()%100+1;
if(number == 63)
{
outed.open("C://Strategy_game//Limbo");
outed << 1;
outed.close();
}
else
{
srand(time(NULL));
int number_a = rand()%3+1;
if(number_a == 1)
{
cout << "r";
}
else if(number_a == 2)
{
cout << "s";
}
else
{
cout << "h";
}
}
}
Odnośnie tyck literek to jest to kod testowy