0
How to assign a range for a variable in C++?
Question explains itself. Sprry I am new to C++. Please tell me how to assign a range for variables.
4 Antworten
0
You can't assign a range to variable. You might be interested in arrays and iterators. Additonally, there is a Ranges TS that should soon be added to C++( within a few years)
0
Every data type has it's own minimal range . int , long , short , double , float ,char etc . You cannot assign a range but you can set a range for an input
0
Aveek Bhattacharyya , I meant:
a variable int a which can hold a value from [1, 100] ?
0
No you can't assign