| | |
How to Place text from a textbox into an array?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 9
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2008
Posts: 1,493
Reputation:
Solved Threads: 123
Perhaps read the text from the text box into a string, and use std::stringstream to break it up.
•
•
Join Date: Oct 2008
Posts: 9
Reputation:
Solved Threads: 0
•
•
•
•
Perhaps read the text from the text box into a string, and use std::stringstream to break it up.
![]() |
Similar Threads
- How can i use the Bit manipulation in vb.net (VB.NET)
- VB.NET Project Help, will pay (Software Development Job Offers)
- Making arrays from text files (VB.NET)
- retrieving ids from dynamically created controls in asp.net (ASP)
Other Threads in the C++ Forum
- Previous Thread: Whoami
- Next Thread: pointer structure with member as a pointer
Views: 975 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int integer java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






