intermediate c++ help
May 11, 2003 | 04:55 PM
Thread Starter
Joined: Dec 2000
Posts: 44,835
Likes: 0
From: the southwest
intermediate c++ help
// Screen.h
// etc
class screen
{
public:
May 11, 2003 | 04:58 PM
Joined: Jun 2002
Posts: 13,634
Likes: 0
Re: intermediate c++ help
Quote:
Originally posted by black_si
// Screen.h
// etc
class screen
{
public:
Need more info!
May 11, 2003 | 05:00 PM
Joined: Jul 2000
Posts: 32,238
Likes: 0
From: Utah
You can also use the [ code] [ /code] tags to make it easier to read :goodjob:.
__________________
99 Integra GSR
06 TSX
duck squad member #00003
May 11, 2003 | 05:01 PM
Joined: Oct 2002
Posts: 1,213
Likes: 0
From: Basement of the Alamo
Code:
class screen
{
public:
int x;
char blah;
private:
int abc = 123;
}
??? what are you trying to do?
May 11, 2003 | 06:15 PM
Joined: Oct 2002
Posts: 1,213
Likes: 0
From: Basement of the Alamo
hmm. must not need much help then.
May 11, 2003 | 08:02 PM
Joined: Mar 2002
Posts: 1,360
Likes: 0
From: Grand Prairie, TX
cout << "I own you" << endl;
May 11, 2003 | 11:53 PM
Thread Starter
Joined: Dec 2000
Posts: 44,835
Likes: 0
From: the southwest
wtf i thought i didnt post this thread
anyway i need to know how to use cout as a input to a constructor do display a function
Code:
// Screen.cpp
Screen::(std::ostream& inOS)
:my_output(inOS)
{}
void Screen::display() const
{
my_output << my_row0 << my_row1
}