hello, I have quite a large program I'm working on for class, In my program I have to put the contents of a text file into an array quite a few time, so to cut down on the code I'd like a function of my class to do the array creating, read contents of the file, fill the array with the contents then pass that to another function that searchs through it, i have a few different type of searchs to do on the array so this way will cut down in code alot. I think I'll have to use pointers, I understand there function but not the syntax for passing arrays around a program.
Ok thanks hamsterman I have looked at vectors but with me being a beginner and only started c++ a few months ago I dont fancy writing out my code again, but the next program i do for class I will spend the time to learn there function and use them in my program, i take it passing an array around in my current program isnt possible then, i was sure that it was.