🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.cs.200
Article #362

Basic C++ question

#362
From: Trey Herschede
Date: Mon, 02 Feb 1998 00:00
40 lines
1040 bytes
Hi, everyone!

It's been a few years since I took CS 151, and I've forgotten a few
things.  Specifically, this:

void main()
{
	//Declare function prototypes
	void function1();

return;
} //end main

void function1()
{
	//Declare function prototypes
	void function2();
	void function3();

return;
} //end function1

void function2()
{
return;
} //end function2

void function3()
{
function2();
return;
} //end function3

Okay, now here's the question:

Is it okay for me to call function2 within function3?

Thanks in advance . . .
Trey
Technical Details
Message-ID: <34D61302.2F577ADA@lamar.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 127144,f08d1a1544bcc5dc,start
X-Google-Attributes: gid127144,public
From: Trey Herschede <treyh@lamar.colostate.edu>
Subject: Basic C++ question
Date: 1998/02/02
Message-ID: <34D61302.2F577ADA@lamar.colostate.edu>
X-Deja-AN: 321423202
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Colorado State University
Mime-Version: 1.0
Newsgroups: csu.cs.200