Mail Archives: djgpp/1997/10/31/15:22:14
First off apologies for half written email sent to list earlier today :)
I am still attempting to get djgpp and Rhide up and running together in
unison
I have tried entering a simple beginner's program into Rhide..(below)
and then attempted to compile and run them
When I compile the program I get the following three lines come up:
Compiling: samp.c
Bad command or file name
no errors
then if I attempt to run it I get:
Program exit code: 0 (0x0000)
then after clicking OK bottom box changes black with header 'contents of
stderr from samp.exe...with just bad command or file name below
any ideas please?????
thanks in advance
Graham
/* Program to find factorial of 6 */
#include <stdio.h>
#define VALUE 6
int i,j;
void main()
{
j=1;
for (i=1; i<=VALUE; i++)
j=j*i;
printf("The factorial of %d is %d\n",VALUE,j);
}
- Raw text -