www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/18:05:36

From: David Arnold <darnold AT northcoast DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Evaluating functions in RHIDE with ctrl+F4
Date: Sun, 20 Dec 1998 15:07:41 -0800
Organization: College of the Redwoods
Lines: 43
Message-ID: <367D833D.1AF2D93@northcoast.com>
NNTP-Posting-Host: 208.25.113.36
Mime-Version: 1.0
X-Trace: 914194908 B/00VXNXN7124D019C usenet78.supernews.com
X-Complaints-To: newsabuse AT remarQ DOT com
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I am very new to C, djgpp, and RHIDE, but I've read a lot of docs and
done a lot of experimenting. I've written a project, hello.gpr, that
contains one file, hello.c, as follows:

#include <stdio.h>
main()
{
 int count;
 int myf();

 printf("Hello world!\n");
 for (count=0;count<11;count++)
    printf("The function value is %d\n",myf(count));
 exit(0);
}
int myf(int x)
{
 return(2*x);
}

When I put in a breakpoint at line 9, run with ctrl+F9, open the
evaluate and modify box with ctrl+F4, entering myf(3) in the expression
edit box causes RHIDE to respond with "not available" when I press the
Eval button.

Can anyone point out my error and point me in the correct direction?

Thanks. Email appreciated.



--
David Arnold
College of the Redwoods
Mathematics Department
7351 Tompkins Hill Road
Eureka, CA 95501
(707) 445-6917
http://online.redwoods.cc.ca.us/instruct/darnold/index.htm


- Raw text -


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