Demonek_ Posted February 24, 2009 Report post Posted February 24, 2009 (edited) Potrzebuje pomocy, gdyż mam do napisania banalny programik, mianowicie po wpisaniu cyfry, np. 4 - program wyswietla ocenę tj. DOBRY w tym wypadku. Wszystko byłoby banalne, gdyby nie sam fakt, że potrzebuje zrobić to na odwrót, tzn. ja podaje słownie ocene, a program wyswietla ją cyfrą. W pierwszy wypadku jest to banał: program bleble; uses crt; var ocena:integer; clrscr; begin writeln('Podaj ocene - cyfra');readln(ocena); writeln; if ocena=1 then writeln('niedostateczny'); ITD. ETC. readkey; end. Tylko pytanie jak zrobić to na odwrót? Jaka zmienna przechowuje słowa? Szukałem w google, probowwałem ale nic mi nie wychodzi. Edited February 24, 2009 by Demonek_ Quote Share this post Link to post Share on other sites More sharing options...
SGJ Posted February 24, 2009 Report post Posted February 24, 2009 string Quote Share this post Link to post Share on other sites More sharing options...
PelzaK Posted February 25, 2009 Report post Posted February 25, 2009 wystarczyło szukać "pascal typy zmiennych" Quote Share this post Link to post Share on other sites More sharing options...
Raoden Posted December 29, 2014 Report post Posted December 29, 2014 case zmienna of Quote Share this post Link to post Share on other sites More sharing options...