• Post Reply Bookmark Topic Watch Topic
  • New Topic

input stuff

 
ryan headley
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have always had a hard time with Input for a console program. What is the easy way to prompt someone for input and take that input from the keyboard??
 
Apu Nahasapeemapetilon
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apu, prefers using the readline method, than read, as read requires you to supply an array for input, and this can cause other behavior that is really not necessary.
Gotta love the naming convention...
 
ryan headley
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems like alot of folks are messing with input from the console.
Thanx for your help....
=)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!