Diff
checker
Testo
Testo
Immagini
Documenti
Excel
Cartelle
Legal
Enterprise
Applicazione per desktop
Prezzi
Accedi
Scarica Diffchecker Desktop
Confronta il testo
Trova la differenza tra due file di testo
Strumenti
Cronologia
Editor live
Nascondi spazi bianchi
Comprimi invariate
Senza a capo
Layout
Diviso
Unificato
Livello di dettaglio
Intelligente
Parola
Carattere
Stili testo
Modifica aspetto
Evidenziazione sintassi
Scegli sintassi
Ignora
Trasforma testo
Vai alla prima modifica
Modifica input
Diffchecker Desktop
Il modo più sicuro per usare Diffchecker. Ottieni l'app Diffchecker Desktop: i tuoi diff non lasciano mai il tuo computer!
Ottieni Desktop
Untitled diff
Creato
8 anni fa
Il diff non scade mai
Eliminare
Esporta
Condividere
Spiegare
1 rimozione
Linee
Totale
Rimosso
Caratteri
Totale
Rimosso
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
35 linee
Copia tutti
1 aggiunta
Linee
Totale
Aggiunto
Caratteri
Totale
Aggiunto
Per continuare a utilizzare questa funzione, aggiorna a
Diff
checker
Pro
Visualizza prezzi
35 linee
Copia tutti
#include <string.h>
#include <string.h>
#include <stdio.h>
#include <stdio.h>
#include <switch.h>
#include <switch.h>
int main(int argc, char **argv)
int main(int argc, char **argv)
{
{
gfxInitDefault();
gfxInitDefault();
//Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one.
//Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one.
consoleInit(NULL);
consoleInit(NULL);
//Move the cursor to row 16 and column 20 and then prints "Hello World!"
//Move the cursor to row 16 and column 20 and then prints "Hello World!"
//To move the cursor you have to print "\x1b[r;cH", where r and c are respectively
//To move the cursor you have to print "\x1b[r;cH", where r and c are respectively
//the row and column where you want your cursor to move
//the row and column where you want your cursor to move
Copia
Copiato
Copia
Copiato
printf("\x1b[16;
20HHello World!
");
printf("\x1b[16;
20HFuck you.
");
while(appletMainLoop())
while(appletMainLoop())
{
{
//Scan all the inputs. This should be done once for each frame
//Scan all the inputs. This should be done once for each frame
hidScanInput();
hidScanInput();
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
//hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame)
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
if (kDown & KEY_PLUS) break; // break in order to return to hbmenu
gfxFlushBuffers();
gfxFlushBuffers();
gfxSwapBuffers();
gfxSwapBuffers();
gfxWaitForVsync();
gfxWaitForVsync();
}
}
gfxExit();
gfxExit();
return 0;
return 0;
}
}
Diff salvati
Testo originale
Apri file
#include <string.h> #include <stdio.h> #include <switch.h> int main(int argc, char **argv) { gfxInitDefault(); //Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one. consoleInit(NULL); //Move the cursor to row 16 and column 20 and then prints "Hello World!" //To move the cursor you have to print "\x1b[r;cH", where r and c are respectively //the row and column where you want your cursor to move printf("\x1b[16;20HHello World!"); while(appletMainLoop()) { //Scan all the inputs. This should be done once for each frame hidScanInput(); //hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame) u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO); if (kDown & KEY_PLUS) break; // break in order to return to hbmenu gfxFlushBuffers(); gfxSwapBuffers(); gfxWaitForVsync(); } gfxExit(); return 0; }
Testo modificato
Apri file
#include <string.h> #include <stdio.h> #include <switch.h> int main(int argc, char **argv) { gfxInitDefault(); //Initialize console. Using NULL as the second argument tells the console library to use the internal console structure as current one. consoleInit(NULL); //Move the cursor to row 16 and column 20 and then prints "Hello World!" //To move the cursor you have to print "\x1b[r;cH", where r and c are respectively //the row and column where you want your cursor to move printf("\x1b[16;20HFuck you."); while(appletMainLoop()) { //Scan all the inputs. This should be done once for each frame hidScanInput(); //hidKeysDown returns information about which buttons have been just pressed (and they weren't in the previous frame) u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO); if (kDown & KEY_PLUS) break; // break in order to return to hbmenu gfxFlushBuffers(); gfxSwapBuffers(); gfxWaitForVsync(); } gfxExit(); return 0; }
Trovare la differenza