| | |
| Stránka: 1 z 1
| [ Príspevkov: 2 ] | |
Autor | Správa |
---|
| Napísal Xarxes: 22.10.2011 16:53 | |
|
cavte, nevedeli by ste toto rozchodiť (skompilovať) v DEV C++ prostredí? je to asi písané pre visual ale ja to potrebujem použiť ako súčasť iného programu čo robíme v devku. dá sa to upraviť tak aby to behalo v devku a robilo to presne to isté?
Kód: #include <stdio.h> #include <conio.h> #include <ctype.h> #include <string.h>
FILE *outstream; char outf[30]; int items; errno_t err;
int main(int argc, char* argv[]){ printf("\nOutput binary file name: "); scanf("%20s", &outf); if( (err = fopen_s( &outstream, outf, "w+b" )) != 0 ) printf( "Output file %s was not opened\n", outf ); }
|
|
Registrovaný: 11.01.09 Prihlásený: 17.04.24 Príspevky: 1385 Témy: 9 Bydlisko: Hrinova | Napísal Fico: 22.10.2011 17:27 | |
|
Kód: #include <stdio.h> #include <conio.h> #include <ctype.h> #include <string.h>
FILE *outstream; char outf[30]; int items;
int main(int argc, char* argv[]){
printf("\nOutput binary file name: "); scanf("%20s", outf); outstream = fopen( outf, "w+b" ); if ( outstream == NULL ) printf( "Output file %s was not opened\n", outf );
return 0;
}
Nevyuzite include-y som ti tam nechal, tie si zmaz podla potrieb.
|
|
| Stránka: 1 z 1
| [ Príspevkov: 2 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|