SunQuest
           Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 7th, 2007, 02:57 PM
bobber205's Avatar
bobber205 bobber205 is offline
Career Newbie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2005
Location: Klamath Falls, Oregon
Posts: 628 bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 9 h 7 m 40 sec
Reputation Power: 5
Send a message via AIM to bobber205 Send a message via Yahoo to bobber205
Assembly - Inputting a String With GetCh

For an assignment I have to have the user input a string w/o GetStr. I know how to "technically" do this on all but two levels.

Is there a clever way to determine when a string is done being entered? So they're all on one line instead of

A
l
e
x

like that? Also how should I check to see that the string is over?

Reply With Quote
  #2  
Old October 7th, 2007, 06:07 PM
Lux Perpetua Lux Perpetua is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Location: San Francisco Bay
Posts: 1,418 Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 4 m 19 sec
Reputation Power: 334
How do you define "done being entered"? End of line? End of file? White space?

Reply With Quote
  #3  
Old October 8th, 2007, 08:14 AM
bobber205's Avatar
bobber205 bobber205 is offline
Career Newbie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2005
Location: Klamath Falls, Oregon
Posts: 628 bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level)bobber205 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 Days 9 h 7 m 40 sec
Reputation Power: 5
Send a message via AIM to bobber205 Send a message via Yahoo to bobber205
Quote:
Originally Posted by Lux Perpetua
How do you define "done being entered"? End of line? End of file? White space?


Like the string is over. End of line preferably. Is there a way to use GetCh to simulate GetStr?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Assembly - Inputting a String With GetCh


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway