akankhya_singh

Akankhya_Singh

Posted on February 15, 2024

Variant

I am a beginner in C++. I wanted to ask if i want to take user input where the compiler don't know the data type before the input. How should i do it? I tried doing it using variant but not able to do it. If there are any methods please suggest.

💖 💪 🙅 🚩
akankhya_singh
Akankhya_Singh

Posted on February 15, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related