Raised This Month: $ Target: $400
 0% 

Matrix ASCII


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mirk
Senior Member
Join Date: Nov 2012
Old 12-12-2016 , 02:45   Matrix ASCII
Reply With Quote #1

Hello guys,
I'm working on one plugin a I need to help with my code. I have a syntax to list the 4x4 matrix in row, but need to a 4x4 matrix by columns.

For example (in row):
FF 08 69 64
0B 53 34 14
84 BF AB 8F
4A 7C 43 B9

I want this (in columns):
FF 0B 84 4A
08 53 BF 7C
69 34 AB 43
64 14 8F B9

PHP Code:
void function(unsigned charinpoleint inModint inIndex
{    
    
int i;
    switch(
inMod)
    {
        case 
0:
        {
            for(
i=inIndex*4i<inIndex*4+4i++)
                
printf("%02x "inpole[i]);
            
printf("\n");
            break;
        }
        case 
1:
        {
            
HERE

            printf
("\n");
            break;
        }
        default: break;
    }


Last edited by Mirk; 12-12-2016 at 02:49.
Mirk is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode