#include <stdio.h>#include <stdlib.h>#include <math.h>int main(int argc, char *argv[]){ long choix1 = 0 , choix2 = 0 , choix3 = 0 , choix4 = 0 , choix5 = 0; FILE *realmlist.wtf = NULL; printf("\t\t BIENVENUE \n\n");printf("\t\tSUR LE CHANGEUR \n\n");printf("\t\t DE REALMLIST \n\n\n");printf("\t - - - - - - - - - - - - - - - \n\n");printf("Que voullez vous faire ? \n\n\n");printf("\t1. Choisir le server sur lequel jouer.\n\n");printf("\t2. Quitter. \n\n");scanf("%ld", &choix1);if (choix1 == 1 ) { printf ("Choisissez le server sur lequel vous voullez jouer.\n\n\n\t1. Ultimate Revolution.\n\n\t2. Darluok.\n\n \t3. Server Officiel.\n\n" ); } scanf("%ld", choix2); if (choix2 == 1 ) { printf ("Votre jeu a était configurer pour jouer sur le server désire."); fprintf (fopen, ("blabla"), r); fclose (C:\Program Files\World of Warcraft\realmlist.wtf);} system("PAUSE"); return 0;}
FILE *realmlist.wtf = NULL;[...] fprintf (fopen, ("blabla"), r); fclose (C:\Program Files\World of Warcraft\realmlist.wtf);
system("PAUSE");
FILE *realmlist = NULL;realmlist = fopen("realmlist.wtf", "r");
FILE *realmlist = NULL;realmlist = fopen("C:\Program Files\World of Warcraft\realmlist.wtf", "r");
#include <stdio.h>#include <stdlib.h>#include <math.h>int main(int argc, char *argv[]){ long choix1 = 0 , choix2 = 0 ; FILE *realmlist = NULL; realmlist = fopen("C:\\Program Files\\World of Warcraft\\realmlist.wtf", "r"); printf("\t\t BIENVENUE \n\n");printf("\t\tSUR LE CHANGEUR \n\n");printf("\t\t DE REALMLIST \n\n\n");printf("\t - - - - - - - - - - - - - - - \n\n");printf("Que voullez vous faire ? \n\n\n");printf("\t1. Choisir le server sur lequel jouer.\n\n");printf("\t2. Quitter. \n\n");scanf("%ld", &choix1);if (choix1 == 1 ) { printf ("Choisissez le server sur lequel vous voullez jouer.\n\n\n\t1. Ultimate Revolution.\n\n\t2. Darluok.\n\n \t3. Server Officiel.\n\n" ); } scanf("%ld", choix2); if (choix2 == 1 ) { printf ("Votre jeu a était configurer pour jouer sur le server désire."); fprintf(realmlist, "set realmlist urevolution.no-ip.org", "w+"); fclose(realmlist); } else if ( choix2 == 2 ) { printf ("Votre jeu a était configurer pour jouer sur le server désire."); fprintf(realmlist, "set realmlist luciolis.servegame.com", "w+"); fclose(realmlist); } else if ( choix2 == 3 ) { printf ("Votre jeu a était configurer pour jouer sur le server désire."); fprintf(realmlist, "set realmlist eu.logon.worldofwarcraft.com\n set patchlist eu.version.worldofwarcraft.com", "w+"); fclose(realmlist); }elseprintf("Au revoir."); system("PAUSE"); return 0;}