Hi,
I have a matrix of size of n x m, how can the file be read without any given size, thus making it possible to be read with any given size matrix?. Here is the scenario, I have a matrix of size 3 x 2 then someone wants to use use my program and he has a file with say matrix of size of 8 x 10...the program should handle any matrix size.
haven_u
0
Light Poster
Recommended Answers
Jump to PostPop a headder struct at the top of the file which is of sixed size. It would contain file size data.
i would suggest a struct something like.
struct MatrixFileHeadderInfoVer1_st { int m_nVersion; //file headder version int m_nMatrixColumns; int m_nMatricRows; };
With something like you can …
All 3 Replies
Kanoisa
52
Posting Whiz in Training
DavidB
44
Junior Poster
adityatandon
23
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.