Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to make Matrix Using C [modified]

How to make Matrix Using C [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
15 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Stuart Dootson

    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

    M Offline
    M Offline
    mmlyh08
    wrote on last edited by
    #4

    i need do it using array list or for loop wan... thx

    S 1 Reply Last reply
    0
    • R Rajesh R Subramanian

      Good. Now, please show me how to make a matrix of 256x256. :laugh:

      It is a crappy thing, but it's life -^ Carlo Pallini

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #5

      Don't push me - I might just do it :-)

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • M mmlyh08

        i need do it using array list or for loop wan... thx

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #6

        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

        C 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          Good. Now, please show me how to make a matrix of 256x256. :laugh:

          It is a crappy thing, but it's life -^ Carlo Pallini

          M Offline
          M Offline
          mmlyh08
          wrote on last edited by
          #7

          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"); }

          C 1 Reply Last reply
          0
          • S Stuart Dootson

            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

            C Offline
            C Offline
            Cedric Moonen
            wrote on last edited by
            #8

            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++

            1 Reply Last reply
            0
            • M mmlyh08

              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"); }

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #9

              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]

              G 1 Reply Last reply
              0
              • M mmlyh08

                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

                G Offline
                G Offline
                grassrootkit
                wrote on last edited by
                #10

                How to make Matrix Using C If C doesn't fit your budget, you could contact Keanu reeves.

                T 1 Reply Last reply
                0
                • C CPallini

                  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]

                  G Offline
                  G Offline
                  grassrootkit
                  wrote on last edited by
                  #11

                  Why? what's really wrong? I don't find any. May be he's not assigning any value?

                  C 1 Reply Last reply
                  0
                  • G grassrootkit

                    Why? what's really wrong? I don't find any. May be he's not assigning any value?

                    C Offline
                    C Offline
                    CPallini
                    wrote on last edited by
                    #12

                    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]

                    G 1 Reply Last reply
                    0
                    • C CPallini

                      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]

                      G Offline
                      G Offline
                      grassrootkit
                      wrote on last edited by
                      #13

                      ok :)

                      1 Reply Last reply
                      0
                      • R Rajesh R Subramanian

                        Good. Now, please show me how to make a matrix of 256x256. :laugh:

                        It is a crappy thing, but it's life -^ Carlo Pallini

                        T Offline
                        T Offline
                        ThatsAlok
                        wrote on last edited by
                        #14

                        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" - Mixture

                        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                        1 Reply Last reply
                        0
                        • G grassrootkit

                          How to make Matrix Using C If C doesn't fit your budget, you could contact Keanu reeves.

                          T Offline
                          T Offline
                          ThatsAlok
                          wrote on last edited by
                          #15

                          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" - Mixture

                          cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups