მადლობა..
აქაც რაღაც პრობლემა მაქვს. ტაიმერის გაკეთება მინდა. შემყავს რიცხვი, მაგალითად 5 და 5 წამში უნდა გათიშოს პროგრამა.
» სპოილერის ნახვისთვის დააწკაპუნეთ აქ «
#include<iostream>
#include<conio.h>
using namespace std;
int main ()
{
int countDown= 0;
cout <<"Enter the number: ";
cin >>countDown;
for ( countDown; countDown >= 0; countDown--)
cout << countDown <<", ";
if(countdown=0){
cout<<"Time is up"<<endl;
system("PAUSE");
}
getch();
}
მიწერს აი ამას :
countdown was not declared in the scopes
'system' was not declared in the scope
This post has been edited by jazzsoul on 6 Apr 2014, 16:23