Generate all Binary Combinations C++
I want to write a program that you give an input (number of digits n) and you get as an output a vector of all possible binary grey code generated. 

For example,

if n=2, results should be:
V= {00, 01, 10,11}
Generate all Binary Combinations C++
===

I want to write a program that you give an input (number of digits n) and you get as an output a vector of all possible binary grey code generated. 

For example,

if n=2, results should be:
V= {00, 01, 10,11}