What is the vector representation of an integer or variable?
How would I represent ++N in its vector form?
1 2
|
// a vector containing the individual digits of a positive integer.
std::vector<int> i = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 9, 9, 9, 9, 9 } ; // integer: 123456789099999
| |
maybe something like: vec.push_back() ?
Topic archived. No new replies allowed.