Snake5 Ierakstīts Februāris 3, 2007 Share Ierakstīts Februāris 3, 2007 (labots) man kods ir šāds: #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout << "way to go! \n"; cout << "you're here at last! \n"; cout << "the password is 'password'! \n"; char write = 0; //te mēs parādām char'us char passwrd = 0; // un arī te cin >> write; // un te mēs rakstām paši! cout << write; if (write == passwrd) return 0; write = passwrd; cout << write; cout << "\n you found it? \n"; system ("PAUSE"); write = 0; bool end = false; cin >> end; if (end == true) return 0; cout << "the cops are here! we must get out! \n"; system ("PAUSE"); } lūdzu palīdzību tā 'p' (vai tā burta, kurš pirmais rakstīts) noņemšanā un visādas uzlabojumu idejas manai pirmajai uz Dev-C++ taisītajai kaut cik nopietnajai progai! P.S. kodu pats izdomāju ar funkciju apskatīšanos un pielietošanu no C++ (e-)book by Bjarne Stroustrup! Labots Februāris 3, 2007 - Snake5 Link to comment Share on other sites More sharing options...
Recommended Posts
Izveido kontu, vai pieraksties esošajā, lai komentētu
Jums ir jābūt šī foruma biedram, lai varētu komentēt tēmas
Izveidot jaunu kontu
Piereģistrējies un izveido jaunu kontu, tas būs viegli!
Reģistrēt jaunu kontuPierakstīties
Jums jau ir konts? Pierakstieties tajā šeit!
Pierakstīties tagad!