Souci de ligne dans mon c++

Fermé
djo - 19 janv. 2009 à 00:11
 djo - 19 janv. 2009 à 00:47
Bonjour,

a tous

bon voila ! dans mon cript j'air creer un menue

example voici mon script pour les case 1 , et 2 je voudrai qui execute une action c'est a dir qui execute un bien exe qui se trouve dans mon bureau


#include <stdio.h>

int main(void)
{
long choixMenu;
long Nom,Pid,AntiBanig,ProtectionServeur;

do{
printf("**************************************************************\n");
printf("Description: PROGRAME HACKING SECURITEE SERVEUR BF2\n");
printf("Author: HACKER-DJO\n");
printf("Copyright: Hacking_In_Red\n");
printf("Name: HACKER-DJO\n");
printf("Date: 17/01/2009 20:47\n");
printf("\n");
printf("\n");
printf("**************************************************************\n");
printf(" Bienvenue sur mon programme HACKER-DJO\n");
printf("\n");
printf("************** 100/100 HACKER-DJO PROFIL BF2 *****************\n");
printf("\n");
printf("\n");
printf("Remplissez un nom de votre choix\n");
printf("caractere autoriser maximum 16 caractere\n");
printf("si vous avez plus 16 caractere le programme Crash\n");

printf ("\n");
printf ("\n");

printf("================================================================\n");
printf("==================== Menu 100/100 HACKER-DJO ===================\n");
printf("================================================================\n");
printf("1. MAITRE un PID\n");
printf("2. MAITRE un Profiles\n");
printf("3. AntiBaning\n");
printf("4. Protection Serveur\n");
puts ("5. Quitter");

printf("Votre choix ?\n");
scanf("%ld", &choixMenu);
while(getchar()!='\n');

printf("\n");
switch (choixMenu)
{
case 2:
printf("entrer un pseudo BF2\n");
scanf("%ld", &Nom);
while(getchar()!='\n');
printf("votre profil a ete changer en %ld!\n\n", Nom);
break;
case 1:
printf("entrer un PID\n");
scanf("%ld", &Pid);
while(getchar()!='\n');
printf("votre Pid a ete Changer en %ld!\n\n", Pid);
break;

case 3:
printf("AntiBanig Activer\n");
scanf("%ld", &AntiBanig);
while(getchar()!='\n');
printf("Protection Antibaning activer%ld!\n\n", AntiBanig);
break;

case 4:
printf("ProtectionServeur Activer\n");
scanf("%ld", &ProtectionServeur);
while(getchar()!='\n');
printf("Protection Serveur Activer %ld!\n\n", ProtectionServeur);
break;


case 5:
break;
default:
puts("choix incorrect");
}

}while(choixMenu!=0);

getchar();

return 0;
}

4 réponses

fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 1 836
19 janv. 2009 à 00:38
Salut,
Tu peux utiliser la commande system ou la famille exec (execv, etc).
http://www.linux-kheops.com/doc/man/manfr/man-html-0.9/man3/system.3.html

Cdlt
0
tu peut modif stp

je verrais beaucoup mieux pars que autre foi heureusement que tu était la j'ai tous compris quand ta modif

merciiii

exécuter que veut qui lance i s appel delire.exe

c a dir quan chois hacker profil BF2 faudrait que .exe exécute voila
si tu peut modif
mon script stp
0
au fait yves c moi lolll

mais si tu peut modif stp sa sera cool au moin comprendrai mieux merciiii colegue
0
tu peut modif stp

je verrais beaucoup mieux pars que autre foi heureusement que tu était la j'ai tous compris quand ta modif

merciiii

exécuter que veut qui lance i s appel delire.exe

c a dir quan chois hacker profil BF2 faudrait que .exe exécute voila
si tu peut modif
mon script stp


merciiiii
0