cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Assigning Intervals
Assigning Intervals
Nov 25, 2016 at 8:24am UTC
cla7997
(1)
Hi, I'm new here
I'm also italian, soooo...sorry if I make some grammar mistakes.
So, Can I assign a variable to an interval?
For example: max=max<=31 or something like that?
Thanks and Sorry, I'm a newbie :(
Nov 25, 2016 at 8:43am UTC
Tenma
(7)
Yes.
Nov 25, 2016 at 11:53am UTC
Jaybob66
(534)
No, max<=31 will give a bool answer, you cant just assign that back to max because max is an int of some kind.
what do you mean by "interval"?
can you explain what you are trying to do in English? Or do you have some code that you want to fix, if so post a snippet here.
Topic archived. No new replies allowed.