How to Place text from a textbox into an array?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 9
Reputation: Djanvk is an unknown quantity at this point 
Solved Threads: 0
Djanvk Djanvk is offline Offline
Newbie Poster

How to Place text from a textbox into an array?

 
0
  #1
Oct 30th, 2008
I understand how to get text out of a textbox in visual C++ but what I'm after is how to break the text up at each space and put those parts into an array.

For example I have a group of numbers: 2 5 9 10 44 ect and I want to put each number into an array. I know how to do it in just c++ but how about when I get it from a text box?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,493
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 123
Sponsor
William Hemsworth William Hemsworth is offline Offline
Nearly a Posting Virtuoso

Re: How to Place text from a textbox into an array?

 
0
  #2
Oct 30th, 2008
Perhaps read the text from the text box into a string, and use std::stringstream to break it up.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 9
Reputation: Djanvk is an unknown quantity at this point 
Solved Threads: 0
Djanvk Djanvk is offline Offline
Newbie Poster

Re: How to Place text from a textbox into an array?

 
0
  #3
Oct 30th, 2008
Originally Posted by williamhemsworth View Post
Perhaps read the text from the text box into a string, and use std::stringstream to break it up.
I will give that a shot, thanks. I was not sure if I could do that since I am using a text box now, I have not done anything but console programming yet.
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: 975 | Replies: 2
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC