AmigaActive (1239/1338)

From:David Bateman
Date:30 May 2001 at 13:44:31
Subject:C Compilers

Hi,

I have just installed VBCC (v0.7) as i was using DICE (v3.16) but DICE
wouldn't accept floating points using scanf, but VBCC does.

#include <stdio.h>

int main(void)
{
int num;
float f;

printf("Enter an integer: ");
scanf("%d", &num);

printf("Enter a floating point number: ");
scanf("%f", &f);

printf("%d ", num);
printf("%f", f);
printf("\n");

return 0;
}

The above example wouldn't work under DICE even when linking the
math.library, but VBCC seems to have no probs with it!

What does everyone else use as their compiler ?

Cya l8r



Team AMIGA
ICQ:22288065
http://www.robotheaven.freeserve.co.uk
http://www.hvymetal.u-net.com

EZTower/Amiga A1200
OS3.9/MorphOS/Linux(2.2.10 kernel)/MUIPPC
64Mb/PPC 603e(200/040)
2.1Gb HD/8x CD-ROM/PortJnr/USR 56k/250MB ZIP
17" SVGA/BVisionPPC/CGX v4.2(pre 8)

Hope isn't in Arkansas, it's in 1996!

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/