Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: playing raw file in c program Pin
Prakash Nadar16-Mar-04 0:18
Prakash Nadar16-Mar-04 0:18 
GeneralRe: playing raw file in c program Pin
Anonymous17-Mar-04 17:49
Anonymous17-Mar-04 17:49 
GeneralRe: playing raw file in c program Pin
David Crow16-Mar-04 2:35
David Crow16-Mar-04 2:35 
GeneralRe: playing raw file in c program Pin
Steve S16-Mar-04 3:20
Steve S16-Mar-04 3:20 
GeneralInstallation Root Pin
Mehdi_Hosseinpour15-Mar-04 22:24
Mehdi_Hosseinpour15-Mar-04 22:24 
GeneralRe: Installation Root Pin
Steve S15-Mar-04 22:34
Steve S15-Mar-04 22:34 
GeneralSolving Linear systems Pin
engineer_ali15-Mar-04 22:19
engineer_ali15-Mar-04 22:19 
GeneralRe: Solving Linear systems Pin
Antti Keskinen16-Mar-04 0:56
Antti Keskinen16-Mar-04 0:56 
You can find the implementation of solving a linear equation pair with the Gauss-Jordan method from this page: http://www.sks99.com/ch9/gauss/defg.htm

As for the actual implementation, take a piece of paper, and write down all the intermediate calculations, then take a moment to consider how you could represent it in the C/C++ -environment. For example, if you create a program that asks as an input on the equations, or more easily, their coefficients, you can instantly write a matrix. Then follow the implementation guide, and perform similar operations on the computer matrix, as you would into a real matrix.

Remember, that computer matrixes and real matrixes tend to handle direct operations differently. Consider writing a set of functions that allows you to do matrix addition, difference, multiplication and division operations. Do not do a direct addition, as it might lead into wrong results.

As this is an assignment, I cannot give you direct code, but I can help you on by saying that a number matrix in C++ can be represented by a declaration such as int matrix_1[col][row]. Use this as a base in creating the coefficient matrixes, then just do the same calculations as the page I posted earlier. Dynamic arrays cannot be used, so you either need to create a big matrix then designate by a number of how many rows/cols are valid, or leap over to the STL routines, from which I have no experience.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Solving Linear systems Pin
Robert A. T. Káldy16-Mar-04 1:03
Robert A. T. Káldy16-Mar-04 1:03 
GeneralMFC App Visual-Performance degrades after resizing several times Pin
ohadp15-Mar-04 21:51
ohadp15-Mar-04 21:51 
QuestionCListCtrl report view word wrap? Pin
soggie15-Mar-04 21:50
soggie15-Mar-04 21:50 
QuestionWrites makes any effects to read in Serial Communication? Pin
sudoer15-Mar-04 19:19
sudoer15-Mar-04 19:19 
AnswerRe: Writes makes any effects to read in Serial Communication? Pin
Prakash Nadar15-Mar-04 20:23
Prakash Nadar15-Mar-04 20:23 
GeneralRe: Writes makes any effects to read in Serial Communication? (code include) Pin
sudoer15-Mar-04 21:14
sudoer15-Mar-04 21:14 
QuestionWhere can I get the Jpeg specification??? Pin
KevenYang15-Mar-04 18:38
KevenYang15-Mar-04 18:38 
AnswerRe: Where can I get the Jpeg specification??? Pin
ian mariano15-Mar-04 18:49
ian mariano15-Mar-04 18:49 
GeneralRe: Where can I get the Jpeg specification??? Pin
KevenYang15-Mar-04 18:57
KevenYang15-Mar-04 18:57 
AnswerRe: Where can I get the Jpeg specification??? Pin
David Crow16-Mar-04 2:38
David Crow16-Mar-04 2:38 
GeneralRe: Where can I get the Jpeg specification??? Pin
KevenYang16-Mar-04 13:11
KevenYang16-Mar-04 13:11 
GeneralAVI Compression Pin
kukarthi15-Mar-04 18:27
kukarthi15-Mar-04 18:27 
GeneralRe: AVI Compression Pin
ian mariano15-Mar-04 19:01
ian mariano15-Mar-04 19:01 
GeneralRTF to HTML Pin
shahnk15-Mar-04 17:49
shahnk15-Mar-04 17:49 
GeneralRe: RTF to HTML Pin
Prakash Nadar15-Mar-04 21:08
Prakash Nadar15-Mar-04 21:08 
GeneralOnOpenDocument Pin
mohdshiraz15-Mar-04 17:29
mohdshiraz15-Mar-04 17:29 
GeneralRe: OnOpenDocument Pin
ian mariano15-Mar-04 18:31
ian mariano15-Mar-04 18:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.