How to make Matrix Using C [modified]
-
i need the code for Programming C of this question. urgent... anyone please help me... must using "array" or "for loop" 1 1 1 1 1 0 1 1 1 1 0 2 1 1 1 0 2 2 1 1 0 2 2 2 1 0 2 2 2 2 0 2 2 2 2 2
modified on Wednesday, April 1, 2009 10:18 AM
int Matrix[6][6] =
{
{ 1, 1, 1, 1, 1, 0, },
{ 1, 1, 1, 1, 0, 2, },
{ 1, 1, 1, 0, 2, 2, },
{ 1, 1, 0, 2, 2, 2, },
{ 1, 0, 2, 2, 2, 2, },
{ 0, 2, 2, 2, 2, 2, }
};Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
int Matrix[6][6] =
{
{ 1, 1, 1, 1, 1, 0, },
{ 1, 1, 1, 1, 0, 2, },
{ 1, 1, 1, 0, 2, 2, },
{ 1, 1, 0, 2, 2, 2, },
{ 1, 0, 2, 2, 2, 2, },
{ 0, 2, 2, 2, 2, 2, }
};Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Good. Now, please show me how to make a matrix of 256x256. :laugh:
It is a crappy thing, but it's life -^ Carlo Pallini
-
int Matrix[6][6] =
{
{ 1, 1, 1, 1, 1, 0, },
{ 1, 1, 1, 1, 0, 2, },
{ 1, 1, 1, 0, 2, 2, },
{ 1, 1, 0, 2, 2, 2, },
{ 1, 0, 2, 2, 2, 2, },
{ 0, 2, 2, 2, 2, 2, }
};Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Good. Now, please show me how to make a matrix of 256x256. :laugh:
It is a crappy thing, but it's life -^ Carlo Pallini
Don't push me - I might just do it :-)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
mmlyh08 wrote:
array list
What do you mean by that? C has no such concept as an 'array list'. If (as I suspect) this is a homework assignment - do it yourself. Homework's there for you to learn, not (just) because your teacher's a sadistic monster. And if you're not up to doing it...well, software development's not the career for you.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Good. Now, please show me how to make a matrix of 256x256. :laugh:
It is a crappy thing, but it's life -^ Carlo Pallini
-
mmlyh08 wrote:
array list
What do you mean by that? C has no such concept as an 'array list'. If (as I suspect) this is a homework assignment - do it yourself. Homework's there for you to learn, not (just) because your teacher's a sadistic monster. And if you're not up to doing it...well, software development's not the career for you.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I'm really wondering who downvoted you :rolleyes: . Anyway, I balanced the vote...
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
int table[256][256]; int row; int column; for(row=0;row<256;row++) { for(column=0;column<256;column++) printf("%d",table[row][column]); printf("\n"); }
Sorry your code didn't pass the test, Can you spot why? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
i need the code for Programming C of this question. urgent... anyone please help me... must using "array" or "for loop" 1 1 1 1 1 0 1 1 1 1 0 2 1 1 1 0 2 2 1 1 0 2 2 2 1 0 2 2 2 2 0 2 2 2 2 2
modified on Wednesday, April 1, 2009 10:18 AM
How to make Matrix Using C If C doesn't fit your budget, you could contact Keanu reeves.
-
Sorry your code didn't pass the test, Can you spot why? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Why? what's really wrong? I don't find any. May be he's not assigning any value?
-
Why? what's really wrong? I don't find any. May be he's not assigning any value?
He made just one biiiiiiiiiig column (no blanks in the
printf
)! :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
He made just one biiiiiiiiiig column (no blanks in the
printf
)! :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]ok :)
-
Good. Now, please show me how to make a matrix of 256x256. :laugh:
It is a crappy thing, but it's life -^ Carlo Pallini
use loop :-)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
How to make Matrix Using C If C doesn't fit your budget, you could contact Keanu reeves.
oh, i am thinking about calling neo!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You