943,824 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Marked Solved
  • Views: 529
  • C RSS
May 16th, 2009
0

Help

Expand Post »
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
|\|asrin is offline Offline
11 posts
since Jan 2009
May 16th, 2009
0

Re: Help

Click to Expand / Collapse  Quote originally posted by |\|asrin ...
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
Start from this forum announcement: http://www.daniweb.com/forums/thread78060.html
(especially Describe your problem clearly and fully! paragraph).
Last edited by ArkM; May 16th, 2009 at 1:09 pm.
Reputation Points: 1234
Solved Threads: 347
Postaholic
ArkM is offline Offline
2,001 posts
since Jul 2008
May 16th, 2009
0

Re: Help

Quote ...
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
You may start by making a two dimensional
array, say
  1. matrix[n][n];
, and store values in that array.

I'm sorry for this nonsense post. Just trying something good out after reading the rules.
Reputation Points: 12
Solved Threads: 5
Light Poster
neigyl_noval is offline Offline
32 posts
since May 2009
May 18th, 2009
0

Re: Help

your post isnt really nonsense.

at least, it fits the question.
Reputation Points: 2143
Solved Threads: 178
Posting Maven
jephthah is offline Offline
2,567 posts
since Feb 2008
May 19th, 2009
0

Re: Help

Start with declaring a 2 dimensional array.

int arr[x][y];

X and y may be input by user or may be fixed to a very high value.Your choice.
Now just Input the values to store in this array as you do normally using a loop...

for(int i=0;i<x;i++)
for(int j=0;j<y;j++)

//input your values...

ALso let us know how much work have you done...
Last edited by tksrules; May 19th, 2009 at 1:25 am. Reason: Something got cut off
Reputation Points: 7
Solved Threads: 1
Newbie Poster
tksrules is offline Offline
21 posts
since Feb 2009
Jul 24th, 2009
0

Re: Help

tnx for your answers ,actually my question was about the n*n matrixs that we do not know their parameter (n) .we will get the parameter from user .any way my question has solved .
thanks again & Bye
Reputation Points: 10
Solved Threads: 0
Newbie Poster
|\|asrin is offline Offline
11 posts
since Jan 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Ptr copying pls help
Next Thread in C Forum Timeline: Pointer Manipulation and Associativity





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC