GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Jul-2009, 21:24
nanchuangyeyu nanchuangyeyu is offline
New Member
 
Join Date: Apr 2009
Posts: 15
nanchuangyeyu has a little shameless behaviour in the past

How to start a C++ matrix class like this?


Hi,
I want to design a two dimensional matrix C++ class of myself. In prospect this class should implement such functions:
1. It should be able to be initialized by a binary data file(a .raw file without any header or format infomation.) with the file name as an argument of its constructor, if necessary, some side information such as the desired size of the matrix will be provided.
2. The following feature of ordinary matrix should be obtained:the summation of all the elements in the matrix.
3. The last requirement is this ordiary operation should be available in this matrix: the corresponding element product of two individual objects of this class(of the same size of course), i.e., the element of some position in the result matrix should be the product of the two elements of the same position in the two object matrices.

It's really a shame for me to list such detailed requirement but do not know how to start. For example, should the matrix be constucted in a traditional way or STL one such as vector. I am a newbie of C++ and just in a mess on this problem. Can some one give me some guide or is there some useful reference? Thank u in advance.
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a mathematical formula for this recursion? transgalactic C Programming Language 8 12-Oct-2008 08:43
Hard drive/CPU Diagnoses Issues binarybug Computer Hardware Forum 1 22-Jan-2007 20:23
i need help in C++ PLZ its_me C++ Forum 3 04-Dec-2006 22:51
a tester class and then some. postage Java Forum 1 06-May-2006 16:48
debugging multi-dimensional vector/ matrix class counterflow C++ Forum 1 15-Mar-2006 13:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:37.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.