Hi,
I am new to this forum and to Borland c++ Builder (I used to work in Visual Basic). I switched to c++ because of the speed of execution.
At present I am studying bitmaps and bit manipulation functions.
What puzzles me is that the code related to test() function works, for example:
But the code related to count() function gives me a Linker Error, and won't start the program:
The included files are:
I know that I miss something here, although I followed the Builder Help.
thanks
I am new to this forum and to Borland c++ Builder (I used to work in Visual Basic). I switched to c++ because of the speed of execution.
At present I am studying bitmaps and bit manipulation functions.
What puzzles me is that the code related to test() function works, for example:
Code:
bitset<8> myset (string("11100001"));
if (myset.test(0))
Memo1->Text="Yes";
But the code related to count() function gives me a Linker Error, and won't start the program:
Code:
bitset<8> myset (string("11110011"));
if (myset.count()>2)
Memo1->Text="Yes";
The included files are:
Code:
#include <vcl.h>
#pragma hdrstop
#include <iostream>
#include <string>
#include <bitset>
using namespace std;
I know that I miss something here, although I followed the Builder Help.
thanks