Notices
The Basement Non-Honda/Acura discussion. Content should be tasteful and "primetime" safe.

intermediate c++ help

Thread Tools
 
Old May 11, 2003 | 04:55 PM
  #1  
Grifter's Avatar
Grifter
Thread Starter
Senior Member
 
Joined: Dec 2000
Posts: 44,835
Likes: 0
From: the southwest
Default intermediate c++ help

// Screen.h

// etc

class screen
{
public:
Reply
Old May 11, 2003 | 04:58 PM
  #2  
axemansean's Avatar
axemansean
Senior Member
 
Joined: Jun 2002
Posts: 13,634
Likes: 0
Default Re: intermediate c++ help

Originally posted by black_si
// Screen.h

// etc

class screen
{
public:
Need more info!
Reply
Old May 11, 2003 | 05:00 PM
  #3  
94civicEX's Avatar
94civicEX
I got worms.
 
Joined: Jul 2000
Posts: 32,238
Likes: 0
From: Utah
Default

You can also use the [ code] [ /code] tags to make it easier to read :goodjob:.
__________________
99 Integra GSR
06 TSX

duck squad member #00003
Reply
Old May 11, 2003 | 05:01 PM
  #4  
TidusBlue's Avatar
TidusBlue
Long Lost Lurker
 
Joined: Oct 2002
Posts: 1,213
Likes: 0
From: Basement of the Alamo
Default

Code:
class screen
       {
           public:
           int x;
           char blah;

           private: 
           int abc = 123;
         }

??? what are you trying to do?
Reply
Old May 11, 2003 | 06:15 PM
  #5  
TidusBlue's Avatar
TidusBlue
Long Lost Lurker
 
Joined: Oct 2002
Posts: 1,213
Likes: 0
From: Basement of the Alamo
Default

hmm. must not need much help then.
Reply
Old May 11, 2003 | 08:02 PM
  #6  
SaviouR's Avatar
SaviouR
Banned
 
Joined: Mar 2002
Posts: 1,360
Likes: 0
From: Grand Prairie, TX
Default

cout << "I own you" << endl;
Reply
Old May 11, 2003 | 11:53 PM
  #7  
Grifter's Avatar
Grifter
Thread Starter
Senior Member
 
Joined: Dec 2000
Posts: 44,835
Likes: 0
From: the southwest
Default

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
}
Reply




All times are GMT -8. The time now is 08:27 AM.