#include <stdio.h>
int main(void)
{
float mt;
int dt=25000;
int surowce;
float tn;
float obliczenia;
printf("Podaj poziom technoologii nadprzestrzennej.\n");
scanf("%f",&tn);
obliczenia = tn * 0.05;
mt = obliczenia * 5000 + 5000; //<- po dodaniu tej linijki jest GURU
printf("\nPodaj ilosc surowcow.\n"); //surowce
scanf("%d",&surowce);
printf("\n Podano %d surowcow\n", surowce);
printf("\n Poziom tehchnologii nadprzestrzennej to %f \n", tn);
printf("\n Pojemnosc ladowni malego transportera to %f \n", mt);
printf("technologia %.2f \n", obliczenia);
return (0);
}@Don_Adan, post #2
@Phibrizzo, post #4
m68k-amigaos-gcc -noixemul -O2 -s --save-temps test.c -o test -lm -v gcc version 6.5.0b 210216082456 (GCC) COLLECT_GCC_OPTIONS='-noixemul' '-O2' '-s' '-save-temps' '-o' 'test' '-lm' '-v' '-mcpu=68000' '-B'
< jsr ___mulsf3 < addq.l #4,sp < move.l #0x459c4000,(sp) < move.l d0,-(sp) < jsr ___addsf3
@Phibrizzo, post #4
@orila, post #8
struct Library *MathIeeeSingBasBase;
MathIeeeSingBasBase = OpenLibrary("mathieeesingbas.library", 0); @elf, post #9
struct Library *MathIeeeSingBasBase;
MathIeeeSingBasBase = OpenLibrary("mathieeesingbas.library", 0);
@Wankowicz, post #10
gcc -s -O2 -noixemul -m68020 -o test test.cOdpalenie kończy się guru $8000000B, czyli jakiś problem jest... Spróbuję trochę popatrzeć...
@Krashan, post #13
@stefkos, post #11
@pisklak, post #16
@Krashan, post #17
@Wankowicz, post #23
@Phibrizzo, post #28