HOP

Houblon Oriented Programming

liste
Luc Damas

You either die a hero or live long enough to see yourself become the villain

You either die a hero or live long enough to see yourself become the villain

Au début de l'année, on fait des cours de numération !

#include <stdio.h>
#include <time.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {

  srand( time( NULL ) );

  char character = 0;
  int liveLongEnough = rand() % 256;
  character += liveLongEnough;
  printf("%s\n", character<0?"Villain":"Hero");
 
  printf("%d\n",character);
 
  return 0;
 
}


  • numĂ©ration
  • char
  • batman