| | |
Help
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
•
•
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
(especially Describe your problem clearly and fully! paragraph).
Last edited by ArkM; May 16th, 2009 at 1:09 pm.
•
•
Join Date: May 2009
Posts: 22
Reputation:
Solved Threads: 5
•
•
•
•
Hi
I want to have a n*n matrix
is there sombody to help me??
how i can write it??
array, say
C Syntax (Toggle Plain Text)
matrix[n][n];
I'm sorry for this nonsense post. Just trying something good out after reading the rules.
•
•
Join Date: Feb 2009
Posts: 21
Reputation:
Solved Threads: 1
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...
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
![]() |
Other Threads in the C Forum
- Previous Thread: Ptr copying pls help
- Next Thread: Pointer Manipulation and Associativity
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives loopinsideloop. lowest match matrix microsoft motherboard mqqueue multi mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






