Bon, j'ai chang� le code et mis � la place :
#include <stdio.h>
int main (void)
{ char * jour[7] = { "lundi", "mardi", "mercredi", "jeudi", "vendredi",
"samedi", "dimanche" } ;
int i ;
printf ("Donne un entier entre 1 et 7 : ") ;
scanf ("%d", &i) ;
printf ("Le jour num�ro %d de la semaine est %s, i, jour[i-1] ) ;
return 0;
}
Je tape gcc -o hello hello.c dans mon terminal et l� il me sort :
hello.c:7:10: warning: multi-line string literals are deprecated
hello.c:7:10: missing terminating " character
hello.c:7:10: possible start of unterminated string literal
hello.c: In function `main':
hello.c:7: parse error at end of input
Le mer 29/01/2003 � 17:22, Rooms Frederic a �crit :
> dans un terminal.
>
> informatick wrote:
> > Le mer 29/01/2003 � 02:31, GeantJones a �crit :
> >
> >>Bon voila G fait hello world
> >>
> >>j'ai ouvert un kwrite et fait un nouveau document
> >>J'y ai mit :
> >>
> >>#include <stdio.h>
> >>main()
> >>{
> >> (void) printf("Hello World\n");
> >> return (0);
> >>}
> >>
> >>Ne pas oublier de laisser un ligne de vide a la fin ou faire expres pour
> >>voir le debugeur ;)
> >>
> >>On sauvegarde le toute sous hello.c et on donne les permission
> >>d'execution du fichier.
> >>
> >>un petit gcc -o hello hello.c
> >>ca compile ...patience ca va pas etre long lol
> >>
> >
> >
> > ====> O� est-ce que l'on tape �a ?
> > Faut-il faire d'autre commandes avant ?
> >
> >
> >
> >>on tape ./hello
> >
> >
> >
> > ===> o� ???
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
> > Rendez-vous sur "http://www.mandrakestore.com"
>
>
>
> ----
>
> Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
> Rendez-vous sur "http://www.mandrakestore.com"
Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com"