Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Reply
Posted 2007-04-23, 11:51 AM in reply to osmoses-jones's post "C++ help"
this what i got so far change it around last code.
#include <iostream.h>

class flag
{
private:
enum color1 {orange, green};
enum color2 {gray, brown};

public:

kconst();
kconst(enum color1,enum color2);
kconst1();
};

flag::kconst1(void)
{
enum color1 { red};
enum color2 {white};

}
Old
Profile PM WWW Search
osmoses-jones is neither ape nor machine; has so far settled for the in-betweenosmoses-jones is neither ape nor machine; has so far settled for the in-between
 
osmoses-jones
 



 
Reply
Posted 2007-04-23, 12:23 PM in reply to osmoses-jones's post starting "this what i got so far change it around..."
*sigh*
Code:
enum colors{
  red,
  orange,
  yellow,
  green,
  cyan,
  blue,
  magenta,
  white,
  black,
  gold,
  purple
};

class flag{
  public:
  flag();
  flag(colors color1,colors color2);
  void SetFlagColors(colors color1,colors color2);
  void SetFlagColors(colors color,int whichColor);
  void GetFlagColors(colors& color1,colors& color2);
  private:
  colors m_color1;
  colors m_color2;
};
There's the declarations. I'm not going to do your whole assignment for you, however.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 09:20 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.