Raised This Month: $12 Target: $400
 3% 

Matrix ASCII


Post New Thread Reply   
 
Thread Tools Display Modes
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
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-12-2016 , 07:04   Re: Matrix ASCII
Reply With Quote #2

Code:
for (i = inIndex; i < 4*4; i += 4)
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Mirk
Senior Member
Join Date: Nov 2012
Old 12-12-2016 , 07:48   Re: Matrix ASCII
Reply With Quote #3

Thank you !
Mirk is offline
Reply



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 07:15.


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