g*********s 发帖数: 1782 | 1 想实现下面的功能:
int f(int t) {
vector x;
x.resize(t);
bitsety;
g(x, y);
}
void g(const vector& x, bitset& y); | X****r 发帖数: 3557 | 2 Non-type template parameter must be compile-time constant.
【在 g*********s 的大作中提到】 : 想实现下面的功能: : int f(int t) { : vector x; : x.resize(t); : bitsety; : g(x, y); : } : void g(const vector& x, bitset& y);
| e****d 发帖数: 895 | 3 You can use boost::dynamic_bitset<>
【在 g*********s 的大作中提到】 : 想实现下面的功能: : int f(int t) { : vector x; : x.resize(t); : bitsety; : g(x, y); : } : void g(const vector& x, bitset& y);
|
|