🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #231

function pointer in g++

#231
From: Xiaojial Lu
Date: Tue, 11 Aug 1992 11:15
19 lines
693 bytes
Dear Sir:

I was trying to use the g++ on Sun Sparc2. I don't know
what is correct format for the function pointer

I use declaration:

double a1( double (*a2)( double ), double x )
{
	return ( (*a2)( x ) );
}
here a2 is the function pointer, but computer can't 
recognize that.

I hope you could help me.

Thanks

Josh.
Technical Details
Message-ID: <9208111915.AA02703@unix.cis.pitt.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!unix.cis.pitt.edu!xjlu

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!unix.cis.pitt.edu!xjlu
From: xjlu@unix.cis.pitt.edu (Xiaojial Lu)
Subject: function pointer in g++
Message-ID: <9208111915.AA02703@unix.cis.pitt.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 11 Aug 1992 11:15:03 GMT
Lines: 19