CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

Using variable length variable (bitset) topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2010, 01:37 PM
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
myk45 is on a distinguished road
| More
Using variable length variable (bitset)

Hello.

i needed a variable size bit string. And since bitset provides several operations, i wanted to use it. But is it possible to make it a variable size one?

class TryBits {
private:
string s;
bitset b; //now i need n = s.size().
};
How can i achieve this?
Thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Global variable iliyan_84 C++ Programming 0 09-01-2010 08:26 PM
Environment Variable function in C sourisengupta C Programming 0 08-30-2010 04:14 AM
Variable substitution in ksh array abrmhk Shell Scripting 0 08-28-2010 03:11 AM
Marshal variable length arguments? stitts C++ Programming 0 08-28-2010 02:24 AM
C++ Global Variable watson C++ Programming 0 07-23-2010 11:53 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:39 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board