🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #366

(none)

#366
From: ark
Date: Mon, 20 Feb 1989 18:33
29 lines
999 bytes
Daniel Edelson reports trouble with the following C++ program:

   #include <stream.h>
   void foo(float l);
   void bar (float *lp);
   main()
   {
	   float l=1.5;

	   cout << "main: l == " << l << "\n";
	   foo(l);
   }

   void foo(float l)
   {
	   cout << "foo: l == " << l << "\n";
	   bar(&l);
   }

   void bar (float *lp)
   {
	   cout << "bar: *lp == " << *lp << "\n";
   }

When I it, it works fine -- but of course I don't have the same
software he does.  Looking at what he's trying to do, though,
I wonder if it might be a problem in his underlying C compiler.

Might I suggest hand translating this program into C and trying it?
Technical Details
Message-ID: <8902210118.AA15117@prep.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!RESEARCH.ATT.COM!ark

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!RESEARCH.ATT.COM!ark
From: ark@RESEARCH.ATT.COM
Newsgroups: gnu.g++
Subject: (none)
Message-ID: <8902210118.AA15117@prep.ai.mit.edu>
Date: 20 Feb 89 18:33:58 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29