i am trying to save file data to int array their are three files and every file contain more than 1 million records and i don't know how to save this data to array..............
file look like
12000
135680
69857
5986
.
.
.
.
.
anyone please help me everytime i run the code the error show overflow.........................
Ammar_7
-4
Newbie Poster
Recommended Answers
Jump to PostYou need to either store the data externally, or have plenty of memory. Don't use an array per-se, or you will get a stack overflow as you are seeing. Use a C++ vector<int> to store the data. It will resize itself intelligently as you add data to it. It will …
All 2 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.