yerrel![]() Junior Member Posts: 1 From: Registered: 07-03-2002 |
Hello fellow Programmers, Can someone help me on how to Read DATA in C/C++, Let me explain: I would like to know how i can code the following BASIC code into C/C++; Restore dat dat: Please Help me!!!!!! :-( |
Klumsy![]() Administrator Posts: 1061 From: Port Angeles, WA, USA Registered: 10-25-2001 |
ok so not reading from a data file the best way would be just to implicity create an array and just use it.. something like (could be wrong, my C, C#, java etc is all cofused now) because your data is integers you could use an aray of integers but if it was strings you could do strings int mydata[] = { 10, 20 , 30 , 40 ,50 ,60 ,70 , 80 , 20 , 5 }; then just use it as a normal array, you don't need to READ any data because the array already has the values in it.. ------------------ |