I'm wondering how to include data in my c++ exe?
In blitz i would use the Data statement, for example:
Data 1,2,3
Data 2,4,6
Data 4,5,1
and the use
'Read ' to get the information back.
could anyone show me a quick example of how i would do this pealse :)
hi paul.... i dont know much about c/cpp, but afaik you can or simple must do it, by using an array and directly store the datas to it...
DIM aYourArray ; i dont really know atm how to write it in C/CPP
{
1,2,3
2,4,6
4,5,1
}
Edit, possible it must look like this:
Int aYourArray[10] = { 1, 2, 3, 2, 4, 6, 4, 5, 1 };
thx for the quick reply. Did it this way now :)
Also if you want to keep your listing tidy, you can always include your arrays in with #include
Do you mean having them in a separate file?
Yep :)