- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
class Foo {
// ...
private:
std::vector<int> v1_;
std::vector<int> v2_;
void bar( const std::vector<int>& v );
public:
void doAction( int choice ) {
if ( choice == 1 )
bar( v1_ );
else
bar( v2_ );
}
};
OlegUP 01.09.2018 18:03 # −1
Elvenfighter 03.09.2018 23:41 # −1
bzzz 06.09.2018 15:36 # −1
vercetti 16.09.2018 20:58 # −1
tuberkulez 17.09.2018 01:33 # −103