Article View: pl.comp.lang.c
Article #309409Jak napisać coś lepszego niż getline( cin, table )?
From: Borneq
Date: Tue, 22 Aug 2017 22:12
Date: Tue, 22 Aug 2017 22:12
7 lines
1324 bytes
1324 bytes
Chcę pytać użytkownika w pętli o komendę, aż napisze "exit". Mogę użyć getline( cin, table ) które nie ma ograniczenia co do wielkości bufora. Jednak chciałbym aby była historia. Gdy naciskam w Linuxie w terminalu strzałkę do góry pojawia mi się ^[[A a tu chciałbym wpisywać historię. Poza tym jak nacisnę po pierwszym parametrze Tab, aby podpowiadał mi domyślne parametry. To ma działać w terminalu w trybie tekstowym.
Technical Details
Message-ID:
<onia92$kat$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.lang.c Subject: Jak napisać coś lepszego niż getline( cin, table )? Date: Wed, 23 Aug 2017 00:12:51 +0200 Organization: ATMAN - ATM S.A. Lines: 7 Message-ID: <onia92$kat$1@node2.news.atman.pl> NNTP-Posting-Host: 91.239.205.105 Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1503439971 20829 91.239.205.105 (22 Aug 2017 22:12:51 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Tue, 22 Aug 2017 22:12:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 X-Mozilla-News-Host: news://news.atman.pl:119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit