| | |
Need help on a program (function bug)
![]() |
•
•
Join Date: Jul 2004
Posts: 1
Reputation:
Solved Threads: 0
hi all.
I submit this program done under Borland beacuse i have a problem running my second function (indicated)
Plz help me.
#include <process.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <conio.h>
void affichage();
void affichage2();
void main(int argc, char *argv[])
{
void affichage();
}
void affichage(int argc, char *argv[])
{
int status,choix;
status=0;
do
{
printf(" *** MERCI D'UTILISER ''LUTINSOFT ANTINOOBVIRUS SUITE PRO'' ***\n\n");
printf(" Veuillez choisir votre status:\n\n");
printf(" 1- Utilisateur NOOB au PC plein de Virus\n");
printf(" 2- Utilisateur pret a faire une LAN - virus inclus dans le PC\n");
printf(" 3- Utilisateur sans aucun virus LE GARS PARFAIT\n");
printf(" 4- Le Neophite qui s'est trompe de CD\n");
scanf("%d",&status);
}
while(status<=0 || status>=4);
if(status!=1)
{
printf(" Si vous utlisez ce CD c'est que vous mentez\n");
printf(" *STATUS: Utilisateur NOOB au PC plein de Virus* Choisit par l'admin\n");
}
printf(" MERCI D'AVOIR ACCEPTE VOTRE STATUS\n\n");
clrscr();
}
void affichage2(int argc, char *argv[])
{
int i,choix,choix2;
do
{
printf(" Que voulez vous faire: \n");
printf(" 1- Installer un Antivirus\n");
printf(" 2- Installer un Firewall\n");
printf(" 3- Autre Chose\n");
printf(" 4- Retour");
scanf("%d",&choix);
}
while(choix<1 || choix>2);
switch(choix)
{
case 3:{
printf(" \n5- Se prendre une raclee a CS\n");
printf(" 6- Se faire remonter les bretelles a Starcraft Golem\n");
printf(" 7- Apprendre Ã* jouer a Warcraft III\n\n");
scanf("%d",&choix2);
switch(choix2);
{
case 5: printf("Contacter: awmp-jansen@wanadoo.fr");
case 6: printf("Demander directement Ã* Josua - Gosusaurus");
case 7: printf("Demander Ã* Bigmoustache - Predator_39");
}
}
case 4:{
clrscr();
void affichage2(); <===== BUG : Declaration is not allowed here
}
}
getch();
}
I submit this program done under Borland beacuse i have a problem running my second function (indicated)
Plz help me.
#include <process.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <conio.h>
void affichage();
void affichage2();
void main(int argc, char *argv[])
{
void affichage();
}
void affichage(int argc, char *argv[])
{
int status,choix;
status=0;
do
{
printf(" *** MERCI D'UTILISER ''LUTINSOFT ANTINOOBVIRUS SUITE PRO'' ***\n\n");
printf(" Veuillez choisir votre status:\n\n");
printf(" 1- Utilisateur NOOB au PC plein de Virus\n");
printf(" 2- Utilisateur pret a faire une LAN - virus inclus dans le PC\n");
printf(" 3- Utilisateur sans aucun virus LE GARS PARFAIT\n");
printf(" 4- Le Neophite qui s'est trompe de CD\n");
scanf("%d",&status);
}
while(status<=0 || status>=4);
if(status!=1)
{
printf(" Si vous utlisez ce CD c'est que vous mentez\n");
printf(" *STATUS: Utilisateur NOOB au PC plein de Virus* Choisit par l'admin\n");
}
printf(" MERCI D'AVOIR ACCEPTE VOTRE STATUS\n\n");
clrscr();
}
void affichage2(int argc, char *argv[])
{
int i,choix,choix2;
do
{
printf(" Que voulez vous faire: \n");
printf(" 1- Installer un Antivirus\n");
printf(" 2- Installer un Firewall\n");
printf(" 3- Autre Chose\n");
printf(" 4- Retour");
scanf("%d",&choix);
}
while(choix<1 || choix>2);
switch(choix)
{
case 3:{
printf(" \n5- Se prendre une raclee a CS\n");
printf(" 6- Se faire remonter les bretelles a Starcraft Golem\n");
printf(" 7- Apprendre Ã* jouer a Warcraft III\n\n");
scanf("%d",&choix2);
switch(choix2);
{
case 5: printf("Contacter: awmp-jansen@wanadoo.fr");
case 6: printf("Demander directement Ã* Josua - Gosusaurus");
case 7: printf("Demander Ã* Bigmoustache - Predator_39");
}
}
case 4:{
clrscr();
void affichage2(); <===== BUG : Declaration is not allowed here
}
}
getch();
}
Did you mean to call the function?
C Syntax (Toggle Plain Text)
case 4:{ clrscr(); affichage2(); /* <===== BUG : Declaration is not allowed here */ }
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
![]() |
Similar Threads
- Problem with Conversion Program (C++)
- how to end program/function (C++)
- Restart program function (C++)
- function changing order while executing program (C)
- Program works... now I need to create a function, HELP! (C)
- Can't see the program execute (C++)
- how to call this function...using menu..! (C++)
- missing function header (C++)
Other Threads in the C Forum
- Previous Thread: Assign content to a function pointer
- Next Thread: how to simulate mouse movement and click
| Thread Tools | Search this Thread |
#include * ansi array arrays asterisks binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createprocess() database dynamic execv fflush fgets file floatingpointvalidation fork forloop function getlogicaldrivestrin givemetehcodez grade gtkwinlinux histogram homework i/o ide inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping lowest matrix meter microsoft mysql number oddnumber open opendocumentformat openwebfoundation pdf pointer posix power probleminc process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing scheduling segmentationfault send sequential single socket socketprogramming stack standard strchr string suggestions systemcall test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi






