User Profile
Collapse
-
Thanks, I have done it. But just wondering, why is it that data cannot be access from an array although it is pointing to the correct address? it give weird symbol like those on a deck of cards. Just curious to learn.... -
Thanks for the feedback, i did somehow get an idea how to reset 'anothers' whiles waiting for the feedback but it goes only for 2 loops. When it got to the third, it did not give the data inside the array instead gives weird pictures like hearts and diamonds although i have checked that it is pointing at the correct address. please advice.
for (p=k+1; p<row; p++)
{
cout << "Anothers" << anothers...Leave a comment:
-
Could not reset pointer
Hi..
I have tried to reset my pointer, but when I check it does not go back to the original address. I have tried at so many places but it always points to the next address whereby there is no data inside. Could someone explain. Thanks! the code I've been working on is as below..
[CODE=cpp]for (p=k+1; p<row; p++)
{
char (*bptr)[5] = anothers;
anothers... -
-
The code is given below:
int main()
{
// ifstream constructor opens the file
ifstream inClientFile( "example.tx t", ios::in);
// exit program if ifstream could not open file
if ( !inClientFile)
{
cerr << "File could not be opened" << endl;
exit(1);
} // end if
double itemsets[6][5];
...Leave a comment:
-
Read Multidimesional Array from Data Files
Hi!
I'm new here also just learned the program. I'm trying to read 2-dimensional data from data files. It seems to display weird numbers. I think I don't know how to read the data files. Hopefully i can learn from someone.
No activity results to display
Show More
Leave a comment: