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

C / C++ / MFC

 
GeneralRe: Welcome in the CP's Memorable Quotes list. Pin
Stephen Hewitt21-Jun-09 3:34
Stephen Hewitt21-Jun-09 3:34 
AnswerRe: Wrapper function for sprintf, strcpy, strcat? Pin
David Crow22-Jun-09 4:21
David Crow22-Jun-09 4:21 
QuestionLink Errors Pin
Muhammad Hassan Haider20-Jun-09 7:25
Muhammad Hassan Haider20-Jun-09 7:25 
AnswerRe: Link Errors Pin
Stuart Dootson20-Jun-09 14:38
professionalStuart Dootson20-Jun-09 14:38 
AnswerRe: Link Errors Pin
«_Superman_»20-Jun-09 17:14
professional«_Superman_»20-Jun-09 17:14 
QuestionTrying to create a Tool bar using the class CToolBar Pin
BobInNJ20-Jun-09 7:02
BobInNJ20-Jun-09 7:02 
Questiontext on a toolbar button not vertically centered Pin
AnantheswarG20-Jun-09 4:29
AnantheswarG20-Jun-09 4:29 
QuestionRead coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 1:51
Omar Al Qady20-Jun-09 1:51 
Hi,
I'm working on a program that reads linear equations from a file such as those:
3x+2y-2.5z=9
-2x+9y+12z=23.4
4.2x-7y+9.6z=45.3


The file is supposed to contain n equations with n variables which I would read into a 2d dynamic array of doubles and then I'm supposed to solve the resulting matrix using Gauss's method. I've already implemented Gauss's method but I can't figure out when reading from file how to get only the numbers and the signs for example from the above equations I'm supposed to have the following in the array:
[+3][+2][-2.5]
[-2][+9][+12]
[+4.2][-7][+9.6]


I need the numbers after the equal sign to be stored in a separate n sized array as well.

If anyone has any ideas I'd really appreciate it Smile | :)
AnswerRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:01
chandu00420-Jun-09 2:01 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 2:23
Omar Al Qady20-Jun-09 2:23 
GeneralRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:41
chandu00420-Jun-09 2:41 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Luc Pattyn20-Jun-09 2:46
sitebuilderLuc Pattyn20-Jun-09 2:46 
GeneralRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 2:54
chandu00420-Jun-09 2:54 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 3:16
Omar Al Qady20-Jun-09 3:16 
GeneralRe: Read coefficients of linear equations into 2d array Pin
chandu00420-Jun-09 3:27
chandu00420-Jun-09 3:27 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 3:39
Omar Al Qady20-Jun-09 3:39 
GeneralRe: Read coefficients of linear equations into 2d array Pin
ProtoBytes20-Jun-09 4:06
ProtoBytes20-Jun-09 4:06 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 4:22
Omar Al Qady20-Jun-09 4:22 
AnswerRe: Read coefficients of linear equations into 2d array Pin
suthakar5620-Jun-09 2:10
suthakar5620-Jun-09 2:10 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 2:33
Omar Al Qady20-Jun-09 2:33 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Luc Pattyn20-Jun-09 2:49
sitebuilderLuc Pattyn20-Jun-09 2:49 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 2:58
Omar Al Qady20-Jun-09 2:58 
AnswerRe: Read coefficients of linear equations into 2d array Pin
«_Superman_»20-Jun-09 2:45
professional«_Superman_»20-Jun-09 2:45 
GeneralRe: Read coefficients of linear equations into 2d array Pin
Omar Al Qady20-Jun-09 3:02
Omar Al Qady20-Jun-09 3:02 
GeneralRe: Read coefficients of linear equations into 2d array Pin
ProtoBytes20-Jun-09 4:09
ProtoBytes20-Jun-09 4:09 

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.