Help

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jan 2009
Posts: 11
Reputation: |\|asrin is an unknown quantity at this point 
Solved Threads: 0
|\|asrin |\|asrin is offline Offline
Newbie Poster

Help

 
0
  #1
May 16th, 2009
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: Help

 
0
  #2
May 16th, 2009
Originally Posted by |\|asrin View Post
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.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 22
Reputation: neigyl_noval is an unknown quantity at this point 
Solved Threads: 5
neigyl_noval neigyl_noval is offline Offline
Newbie Poster

Re: Help

 
0
  #3
May 16th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1,621
Reputation: jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of jephthah has much to be proud of 
Solved Threads: 121
jephthah's Avatar
jephthah jephthah is offline Offline
Posting Virtuoso

Re: Help

 
0
  #4
May 18th, 2009
your post isnt really nonsense.

at least, it fits the question.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 21
Reputation: tksrules is an unknown quantity at this point 
Solved Threads: 1
tksrules tksrules is offline Offline
Newbie Poster

Re: Help

 
0
  #5
May 19th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 11
Reputation: |\|asrin is an unknown quantity at this point 
Solved Threads: 0
|\|asrin |\|asrin is offline Offline
Newbie Poster

Re: Help

 
0
  #6
Jul 24th, 2009
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
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC