|
From: Jonathan B. <jb...@cc...> - 2001-01-02 20:41:36
|
please remove me or unsubscribe me. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Emry Sent: Tuesday, January 02, 2001 3:32 PM To: dev...@li... Subject: Re:[Dev-C++] sending and retrieving values from functions The simplest way to do this, would be to first of all, declare the function as int my_number(void); This is assuming you want it to return an integer. Otherwise replace int with whichever type you want it to return. If you are using c++ then the void in parenthasis is not needed. then for the terminating line of the function return somevalue; where somevalue is a value or variable of the correct type. _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |