![]() |
|
#1
|
|||
|
|||
basic input questionI am still pretty new to C/C++. Could anyone link a tutorial or tell me how I could go about outputting input right away. scanf and getchar seem to both wait for a carriage return.
|
|
#2
|
||||
|
||||
Re: basic input questionNot really. At least not without venturing into non-standard functions that only work in a select few compilers. Although IMO you should stay away from scanf(). Here's why
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#3
|
|||
|
|||
Re: basic input questionAh alright, what you are saying then is it would be very tricky to display a character right after a key is pressed without enter needing to be pressed? Do you have any suggestions about the subject or is it a waste of time?
|
|
#4
|
||||
|
||||
Re: basic input questionWhat I'm saying is it is not a standard way for C/C++ to handle the keyboard. There are functions that do it, but they cannot be relied upon to exist if you change compilers (assuming your compiler does it in the first place).
There is a place for that type of input, but it's a rare need. __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#5
|
||||
|
||||
Re: basic input questionhello.. could anyone email me a few scanf basic source codes. im quite new to c programming and need a little help here from the gurus. my emails skamaldeen@gmail.com
thanx |
|
#6
|
||||
|
||||
Re: basic input questionFollow WaltP's link in his first reply. There are all kinds of examples of scanf usage along with better ways to skin that cat.
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#7
|
||||
|
||||
Re: basic input questionthanx alot cable_guy_67
|
|
#8
|
||||
|
||||
Re: basic input questionhey anybody direct me to where i can get the latest version of turbo C IDE... i've tried different locations.. even the borland website... but cant download it to my email. if you've got the .zip ver please email me @ skamaldeen@gmail.com or direct me a link.
Thanx in advance! |
|
#9
|
|||
|
|||
Re: basic input questionI found this Wikipedia entry on Turbo C. But why would you want it? It's extremely old, and there are better free compilers out there.
|
|
#10
|
||||
|
||||
Re: basic input questionBest to use either
Bloodshed DevC Borland 5.5 And please don't hijack someone else's thread. Your question is off topic for the help he's requesting. __________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Temperature Conversion Error | Cecil | C Programming Language | 8 | 28-May-2006 20:09 |
| Basic file copy question | earachefl | CPP / C++ Forum | 2 | 13-Apr-2006 14:46 |
| Question Passing Variables (Visual Basic & HTTP) | pcxgamer | Open Discussion Forum | 0 | 28-Feb-2006 00:46 |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 02:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 02:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The