Napíšte program, ktorý bude čítať zklávesnice znaky. Použite getchar() ! Znaky číta, kým nie je stlačená hviezdička. Uvedomte si, že reálne sa celé spracovanie vstupu zklávesnice začína až stlačením enteru. Ak teda napíšete riadok bez hviezdičky, začne sa spracovanie, ale cyklus neskonči. Ak naopak stlačíte hviezdičku, program hneď neskončí, pretože stále sa zadávanie znakov musí ukončiť enterom. Použitie getchar() nám ale umožní zapisovať do súboru aj entery.Prečítané znaky program upravuje a zapisuje DO SÚBORU. Úpravy znakov sú nasledovné:
a.malé písmená zmení na veľké,
b.veľké písmená nechá nezmenené,
c.číselné znaku (0-9) zmení za pomlčku
d.všetky ostatné znaky zmení za bodku
Are you looking for informatika tutoring? Find the right informatika tutor for online or in-person tutoring near you.
We access the information stored on your device for this website to function properly. This includes, for example, cookies or local browser cache. We use this to store the data necessary for the functioning of the website, data used for analytical purposes, or data stored by third parties.
If this information is essential for the operation of this website, we store it automatically. For everything else, we need your consent, which you can choose to give below. Your consent is valid for 12 months. Should you refuse, we will ask you for consent again in 6 months, but you are free to change your mind at any time. For more information, please see our GDPR and Terms of Use.