Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

foetus

Stormtrooper
  • Inscription

  • Dernière visite

Tout ce qui a été posté par foetus

  1. Je pense à cela: Calling C Functions in Inline Assembly // InlineAssembler_Calling_C_Functions_in_Inline_Assembly.cpp // processor: x86 #include <stdio.h> char format[] = "%s %s\n"; char hello[] = "Hello"; char world[] = "world"; int main( void ) { __asm { mov eax, offset world push eax mov eax, offset hello push eax mov eax, offset format push eax call printf //clean up the stack so that main can exit cleanly //use the unused register ebx to do the cleanup pop ebx pop ebx pop ebx } } PS: j'ai essayé mais cela plante méchamment. Autant sortir son nasm, masm (s'il existe encore) ou autre. C'est tout le problème du truc. En pure C, c'est vrai. Mais en C++ c'est faux. La bibliothèque standard en C++ Qui fait encore du C avec gcc Le visual par défaut c'est C++. Je comprends mieux. En effet, Windows est le seul à avoir fait le Secrity Enhancement in CRT Moi, je trouve cela bien. C'est lourd (mais normal) à programmer mais au moins il n'y aura pas de débordement.
  2. Bonsoir, je passais par là et j'ai vu des choses pas jolies (pour être tatillon): En C++: Taki #1 include <iostream.h> main() {cout << "HELLO WORLD";} simonkey Post #133 #include <iostream.h> int main(int argc, char *argv[]) {cout << "HELLO WORLD";} Ne plus utiliser <iostream.h>, mais <iostream> (sans le .h) Et donc faire soit "using namespace std;" soit un "std::cout" La raison du pourquoi Toujours déclaré un type de retour à sa fonction (par défaut int, je crois). Et lorsqu'on le fait, toujours avoir UN return. Vive l'Unicode et à mort le MBCS (Multi-Byte Caracter Set) Mode parano: mettre void dans un passage de paramètre vide Mon "Hello World" en C++ donc: include <iostream> using namespace std; int main (void) { wcout << "Hello World" << endl; return 0; } En C: Taki #1 #include #stdio.h main() { printf("Hello world, Sarvok is Now the Best"); return 0; } simonkey #133 #include stdio.h int main(int argc, char *argv[]) { printf("Hello world, Sarvok is Now the Best"); return 0; } Ne plus utiliser <stdio.h>, mais <cstdio> (sans le .h, et commençant par un C) Vive l'Unicode et à mort le MBCS (Multi-Byte Caracter Set) Mode Parano Mon "Hello World" en C donc: // Peut être pas portable sous Linux: à vérifier #include <cstdio> int main (void) { int retour = wprintf_s(L"Hello World\n"); if (retour != 12) { return -1; } return 0; } En PHP: Taki #1 <?php echo "hello world"; //ou bien: print "hello world"; ?> Il faut mettre que des simple quotes, sinon il y a un parsage gratuit. Gratuit quoique cela dépend. Ou alors en NowDoc. Mon "Hello World" en PHP donc: <?php echo('Hello World'); //print('Hello World'); //die('Hello World'); // LOL echo <<<'HELLO' Hello World HELLO; ?> EN HTML: MAKB #12 <html> <body> <p>Hello world</p> </body> </html> Le mal absolu: pas de head, pas de XHTML, pas de meta, pas de titre et vive l'unicode. Alors soyons fou utilisons la balise blink Mon "Hello World" en HTML donc: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Hello World</title> </head> <body> <blink>Hello World</blink> </body> </html> Sinon: savory #53 unsigned char hello[]= "\x55\x89\xe5\x83\xec\x24\x53\xe8\x00\x00\x00\x00\x5b\x83\xc3\xf4\x8b\x83\x67" "\x00\x00\x00\x89\x45\xf0\x8b\x83\x6b\x00\x00\x00\x89\x45\xf4\x8b\x83\x6f\x00" "\x00\x00\x89\x45\xf8\x0f\xb7\x83\x73\x00\x00\x00\x66\x89\x45\xfc\x8d\x4d\xf0" "\xba\x0e\x00\x00\x00\xb8\x04\x00\x00\x00\xc7\x45\xec\x01\x00\x00\x00\x53\x8b" "\x59\xfc\xcd\x80\x5b\xb8\x01\x00\x00\x00\xc7\x45\xec\x00\x00\x00\x00\x53\x8b" "\x59\xfc\xcd\x80\x5b\x5b\xc9\xc3\x48\x65\x6c\x6c\x6f\x20\x77\x6f\x72\x6c\x64" "\x21\x0a\x00"; int main(){((void(*)())hello)();} ShellForge FiP_ #98 int n[]={0x48, 0x65,0x6C,0x6C, 0x6F,0x2C,0x20, 0x77,0x6F,0x72, 0x6C,0x64,0x21, 0x0A,0x00},*m=n; main(n){putchar (*m)!='\0'?main (m++):exit(n++);} error C2448: 'main' : function-style initializer appears to be a function definition
  3. Non, mais sérieusement, il manque quand même: C++ -> Thinking in C++ by Bruce Eckel Java -> Thinking in Java Livre gratuit et payant. Et celui en C++ est ultra-complet avec les smarts pointers, les iterators, la STL, les exceptions, les design pattern, etc... C++ -> Guru of the Week Le C++ dans toute sa grandeur, toute sa splendeur .... mais aussi dans toute sa laideur: la fqa Ou en version une grosse page

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.