[c++]-sms like an mobile phone

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: May 2007
Posts: 3
Reputation: stindeee is an unknown quantity at this point 
Solved Threads: 0
stindeee stindeee is offline Offline
Newbie Poster

[c++]-sms like an mobile phone

 
0
  #1
May 31st, 2007
For home work i have to do SMS in c++ ,which has to be exactly like on mobile.I dont know how to do this.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: [c++]-sms like an mobile phone

 
0
  #2
May 31st, 2007
What hardware are you supposed to use?
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 3
Reputation: stindeee is an unknown quantity at this point 
Solved Threads: 0
stindeee stindeee is offline Offline
Newbie Poster

Re: [c++]-sms like an mobile phone

 
0
  #3
May 31st, 2007
I must wrote just a program like on mobile keybord. When you press 1 will be on the screen a, when you press another time 1 you will get on screen b, etc.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: [c++]-sms like an mobile phone

 
0
  #4
Jun 1st, 2007
You will have to do some console handling for that. At first glance the procedure will be something like below.
  1. Press a key
  2. Look what the key is
  3. If another key is pressed within the given time limit
  4. If it was the same as the previous one
  5. Erase first character and update buffer with the next one
  6. else
  7. Update buffer with the pressed key
  8. Else
  9. Update the buffer with the pressed key
There is no portable way of getting it done, unless you do some serious console scrolling. So you may have to use either a 3rd party library or the API of the operating system you are using.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1460 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC