delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/31/15:22:14

Message-ID: <345A3DE3.203A@virgin.net>
Date: Fri, 31 Oct 1997 20:21:55 +0000
From: Graham & Dina <graham DOT dina AT virgin DOT net>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: help a newbie please :)

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019