Fenix2 wrote:I don't have a book,
Living in Canada and can't get a book?
Fenix2 wrote:And furthermore, all the darn examples on C++ web browsers won't work.
You may be referring to incorrect links.
Fenix2 wrote:But in a whole game programming I never used arrays.
And I'M not gonna start here
Interesting. So are you looking for a syntax of writing managed arrays? Here is how you write a simple integer array.
array<int>^ arr = gcnew array<int>(2);
arr = 26;
arr = 18;
Fenix2 wrote:How do I write a variable in a damn file??!
Here is how you write array of strings to a file.
using namespace System;
using namespace System::IO;
typedef array<String^> StringArray;
void WriteArrayToFile(StringArray^ arr)
StreamWriter writer("c:\\test.txt", false);
for each(String^ str in arr)
}Use it like:
StringArray^ arr = gcnew StringArray(2);
arr = "You need";
arr = "a good book";
WriteArrayToFile(arr);All I can say is, grow up, read the posting guidelines and post your question nicely with relevant code and change your attitude if you expect help from this forums.
If you ever plan to read a book, try this[^]