English
Source / code snippets

Transponierte of/ one n,m-Matrix create (XProfan-11.2a-Version)

 

p.specht

object: should later as Timing-Vergleichsbasis for Beschleunigungs-take action serve, about to judgement, whether this physische Umordnen in memory for Assembler-bescheunigte mutants zeitmäßig at all rewards...
Window Title "XProfan-11.2a: Transponierte of/ one n,m-Matrix erstellen"
Window Style 24:Window 0,0-%maxx,%maxy:cls:randomize
set("decimals",0):set("numwidth",4)
declare n&,m&,tm&,i&,j&
n&=20'Lines
m&=20'Split
Declare M![n&-1,m&-1]
M![]=&index

if (n&<21) and (m&<21)

    whileloop 0,n&-1:i&=&Loop

        whileloop 0,m&-1:j&=&Loop

            print M![i&,j&],
            endwhile:print

        endwhile

    endif

    tm&=&gettickcount
    Declare M°![m&-1,n&-1]

    whileloop 0,n&-1:i&=&Loop

        whileloop 0,m&-1:j&=&Loop

            M°![j&,i&]=M![i&,j&]

        endwhile

    endwhile

    tm&=&gettickcount-tm&
    font 2:print "\n ";tm&,"ms\n":font 0

    if (m&<21) and (n&<21)

        waitinput 1000

        whileloop 0,m&-1:j&=&Loop

            whileloop 0,n&-1:i&=&Loop

                print M°![j&,i&],
                endwhile:print
                endwhile:case j&<(m&-1):print

            endif

            beep
            waitinput
            End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/26/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.487 Views

Untitledvor 0 min.
Stringray05/09/22
p.specht11/21/21
R.Schneider11/20/21
Uwe Lang11/20/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie