| | |
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 |
Tag cloud for C
adobe ansi api array arrays asterisks bash binarysearch calculate centimeter char convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile csyntax directory dynamic fflush file fork frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop initialization interest km lazy linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling scripting segmentationfault send shape socketprograming spoonfeeding stack standard string strings structures suggestions systemcall test testautomation unix user variable voidmain() wab win32api windows.h






