I have a couple of questions. Call me an idiot if you wish.
How do I declare a real number variable in C++?
What is a function prototype and how is it used?
What statement do you use to get data out of a value returning function?
I have a couple of questions. Call me an idiot if you wish.
How do I declare a real number variable in C++?
What is a function prototype and how is it used?
What statement do you use to get data out of a value returning function?
do you mean real as in positive integer?
unsigned insures that it will not have a sign (positive)...Code:unsigned int name; //or int name;
>>What is a function prototype and how is it used?
looks like this:
Code:int function(int,char,float); //prototype ... //other stuff int function(int i,char a,float x) {...} //definition
Last edited by major_small; 12-04-2003 at 01:19 PM.
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
real as in the set of real numbers. The datatype is float (REAL*4) or double (REAL*8).
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
>What statement do you use to get data out of a value returning function?
Simple assignment:
Code:data = function();
My best code is written with the delete key.