hey i am trying a code...ad in that i am using arayrs to store a sequence of data..i have writen this in he code x[100000] and it say too large arrays as a error......now how o deal with this..and how to store such a large sequence of data..without file handling...... how avoid this type of errors
mayanktalwar 0 Newbie Poster
Recommended Answers
Jump to PostYou can't just allocate a bazillion bytes on the stack, which is what happens if you make an allocation like:
char myBazillionBytes[100000000];
You are going to need to dynamically allocate room, either with new and delete[], or, probably best, use a vector, and don't worry about memory …
All 4 Replies
Phil++ 31 Posting Whiz in Training
rdrast 5 Light Poster
mayanktalwar 0 Newbie Poster
mrnutty 761 Senior 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.