29. maj 2003 - 16:21Der er
3 kommentarer og 1 løsning
Fejl ved c programmering under linux med gcc
Hejsa !
Jeg har en standard Debian woody med gcc. Efter installationen, ville jeg kompilere flg. kode: #include <stdio.h> #include <stdlib.h> #include <string.h>
char *lfspartition;
printf ("Enter the full path of the lfs partiotions mount point:" ); scanf ("%s" , lfspartition ); printf ("Your partition is located at: %s", lfspartition);
hvilket resulterede i flg. fejl: alfs.c:8: parse error before string constant alfs.c:8: warning: data definition has no type or storage class alfs.c:9: parse error before string constant alfs.c:9: warning: data definition has no type or storage class alfs.c:10: parse error before string constant alfs.c:10: warning: data definition has no type or storage class
hvorfor det ? ser ud til at den ikke kan lide strenge....
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
int main() { char lfspartition[100]; printf ("Enter the full path of the lfs partiotions mount point:" ); scanf ("%s" , lfspartition ); printf ("Your partition is located at: %s", lfspartition); return 0; }
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.