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.
===> Jusque l� ok
>
> un petit gcc -o hello hello.c
> ca compile ...patience ca va pas etre long lol
===> Tu as ouvert quoi ? Tu as tap� dans quoi ?
>
> on tape ./hello
> ont obtiens :
>
> [geant@linux Desktop]$ ./hello
> Hello World
>
> Et Vive gnu/Linux !
>
> A++
> GeantJOnes
>
> Le mer 29/01/2003 � 00:17, informatick a �crit :
> > Le mar 28/01/2003 � 23:17, Denis Bitouz� a �crit :
> > > Le 28 Jan 2003 22:04:44 +0100
> > > informatick <[EMAIL PROTECTED]> a �crit :
> > >
> > > > >
> > > > > Une fa�on simple mais non �l�gante consiste � quitter emacs et de
> > > > > recharger ton fichier toto.c. Emacs va directement d�tecter qu'il s'agit
> > > > > de C et cela devrait aller.
> > > > >
> > > >
> > > > Recharger ?
> > >
> > > par exemple, taper dans une xterm :
> > >
> > > emacs toto.c
> > >
> > > ou, emacs ayant �t� lanc� dans le r�pertoire ad hoc :
> > >
> > > C-x C-f toto.c
> > >
> > > Denis.
> > >
> >
> > Dans un ancien n� de Linux Magazine (n�6) il est �crit :
> >
> > "Pour compiler notre programme hello.c nous tapons sur la ligne de
> > commande:
> > $ gcc -o hello hehho.c "
> >
> >
> > En sachant que hello.c contient des instructions en C.
> >
> > Ils �crivent plus loin :
> >
> > "Maintenant tapons:
> > $ hello.c"
> >
> >
> > Et l� �a devarit s'ex�cuter...
> >
> > Ben y'a rien....
> >
> >
> >
> >
> >
> >
> > ----
> >
>
> > 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"