I want to create a function with accepts strings as arguments, but I cant seem to make it happen. This is closest I've got.
1 2 3 4 5 6 7 8 9 10 11 12
Deck::Deck( int num, ... ){
va_list arguments;
double sum = 0;
va_start ( arguments, num );
for ( int x = 0; x < num; x++ ){
stringstream ss;
ss << va_arg ( arguments, int );
cout << ss.str();
}
va_end ( arguments );
}