TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: KURT KUZBA
from: FERNANDO ARIEL GONT
date: 1997-07-22 03:04:00
subject: I want to learn C++

Hello, Kurt!
Well, I got some code from a book written by Bruce Eckelt......
I think that this is not the one published in the book I'm reading, but it
is very similar.......
Here it is:
----------------------- cut -------------------------------------------
/*: DECLARE.C -- Declaration/definition examples */
extern int i; /* Declaration without definition */
/* OK, I UNDERSTAND IT! */
extern float f(float); /* Function declaration */
/* OK! */
float b;  /* Declaration & definition */
/*WHY IS IT A DEFINITION? */
float f(float a) {  /* Definition */
  return a + 1.0;
}
/* WHY ISN'T IT A DECLARATION & DEFINITION? */
int i; /* Definition */
/* WHY ISN'T IT A DECLARATION? */
int h(int x) { /* Declaration & definition */
  return x + 1;
}
/* OK! I UNDERSTAND IT PERFECTLY, BUT THERE IS A PIECE OF CODE AVOVE */
/* THAT IS VERY SIMILAR TO THIS, AND THE WRITER SAID THAT IT WAS A   */
/* DEFINITION ONLY...... WHAT ABOUT THIS??                           */
main() {
  b = 1.0;
  i = 2;
  f(b);
  h(i);
}
/* OK! I UNDERSTAND THE MAIN PART OF THE CODE PERFECTLY!!    */
---------------------- cut -------------------------------------------
Well, I think that Bruce Eckelt's code has some errors, but I wish you
read it, and told me if I am right about the errors I think this code has.
Anyway, I want to thank you for the message you sent me......
                           Bye-Bye!! :-)
                        Fernando Ariel Gont
 * MikeMayl v1.0 * Proofread carefully to see if you any words out.          
...This copy of ProBoard has been unregistered for 984 days!
--- ProBoard v2.15 [EVALUATION]
---------------
* Origin: áugl„nd BBS-8G4-39S1-TLD19a8hrs-33.6Kbps (4:900/214)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.