delorie.com/archives/browse.cgi | search |
From: | "Phoenix Magus" <phoenixm AT akrobiz DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <E1Ar7.145$Le DOT 9754 AT sea-read DOT news DOT verio DOT net> <9onejf$s1v$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <DoWr7.248$Le DOT 12962 AT sea-read DOT news DOT verio DOT net> <00db01c145a2$8294e8a0$23098589 AT bgo DOT nera DOT no> |
Subject: | Re: C++ Q: Basic I/O w/Screen & Keyboard |
Lines: | 33 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4522.1200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4522.1200 |
Message-ID: | <tofs7.340$Le.15484@sea-read.news.verio.net> |
Date: | Wed, 26 Sep 2001 07:24:09 GMT |
NNTP-Posting-Host: | 209.57.46.196 |
X-Complaints-To: | abuse AT verio DOT net |
X-Trace: | sea-read.news.verio.net 1001489049 209.57.46.196 (Wed, 26 Sep 2001 07:24:09 GMT) |
NNTP-Posting-Date: | Wed, 26 Sep 2001 07:24:09 GMT |
Organization: | Verio |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Okay, I looked at the info for cscanf() and scanf() then followed up with hits I got from two different search engines with the keyword "cscanf". I saw 15 to 20 examples which led me to this question: Using cscanf(), if I wanted to get someone to enter a phone number into "( ) - " I'd have to use 3 different variables and concatonate them together? I also desire to be able to get a decimal number that would fill in from the right until a decimal point was keyed. Then it would fill in from the left. ex: for the number 1234.56 (on screen) (was keyed) __,___.__ [blank format] __,__1.__ [1] __,_12.__ [12] __,123.__ [123] _1,234.__ [1234] _1,234.__ [1234.] _1,234.5_ [1234.5] _1,234.56 [1234.56] Can scanf() do that? I'm sorry if I'm asking too many questions but I honestly cannot find the answers anywhere else. Thank You In Advance Bryce Byrd
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |