Re: Fairly Dumb C++ Question.
Thanks I knew it was something simple. Can't actually use the loop cause its gonna but stuff like torch.txt and wall.txt but it made a simple example. Thank you again.
Ok, I have a follow up question. How do I reference it? Assume that I want the array called locationArray. I want to use a new line for each entry of the array for readiability and ability to change it later on. Would this work?
locationArray = "example0.txt" ;
locationArray = "example1.txt" ;
locationArray = "example2.txt" ;
locationArray = "example3.txt" ;
would that be correct? assuming so would I then do.
string storeVariable = locationArray ;
cout << storeVariable ;
Thanks again for any help. I am very new to arrays.