i just want to know can you use arrays to store sentences and acces them la8tr or am i going in completly the wrong direction ?
i just want to know can you use arrays to store sentences and acces them la8tr or am i going in completly the wrong direction ?
If I understand correctly, no. You need to make files (look up a tutorial on fstream)
I'm off to school
Yes, you can use arrays to store sentences and access them later. They're called character arrays; some call them strings. They last as long as the program is running. I guess the operative question would be, "How much later do you want to use them? Within the same process, or another time the program is started?" Or is it "How much la8tr?" (....?)
well thank you, i'm not planning on using arrays just yet, i just wanted to know if i was grasping what i was reading on paper.
i can definatly see an advantage to using arrays for holding strings, but can you store them perminatly using arrays?
If you want to store data (an array or otherwise), you need to store it in a file. As MadCow suggested, look up a tutorial on fstream.
There is a difference between tedious and difficult.