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
anyone please help me everytime i run the code the error show overflow.........................
Jump to Post
You 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
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.