Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Mornacale
Dec 19, 2007

n=y where
y=hope and n=folly,
prospects=lies, win=lose,

self=Pirates
I suspect that I'm entirely retarded for this problem, but:

I am finding myself unable to create a bitset. I've been using this page as reference; if there is a better one that I should be using, that'd be very helpful.

code:
#include <bitset>

#define ITEM_SIZE 1000

bitset<8> itemBit;
The include line works fine, so I'm not somehow missing the bitset definition. However, I get "expected constructor, destructor, or type conversion before ‘<’ token" when I try to actually create the object. I want it to eventually be a bitset of larger length, but I did 8 just so I could copy/paste from the example in my link above.

Any ideas would be extraordinarily appreciated.

e: Problem solved. Thanks. Pay no more attention to the C++ n00b behind the curtain.

Mornacale fucked around with this message at 04:32 on Mar 9, 2008

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply