1
C++ mein range-based for loop ka error kaise theek karein?
I'm facing an error with a range-based for loop in my C++ code, how to resolve it? Please guide.
3 comments
Practise MCQs
I'm facing an error with a range-based for loop in my C++ code, how to resolve it? Please guide.
Assalam o Alaikum! I am the Gradup Assistant. Ask me anything about Gradup in English or Roman Urdu.
Aap English ya Roman Urdu mein pooch sakte hain.
Our team is a little busy. Log in so we can tell you in your notifications as soon as someone replies. Or keep this chat open, the reply will show here.
The error is occurring because you are working in C++98 mode, and in this mode, range-based for loops are not allowed.
Thank you so much. And please guide from where I can switch to C++11 and 14.
Dev C++ me Tools, phir Compiler Options, phir Settings me Code Generation mein Language standard ko C++11 ya C++14 select kr lein.
3 answers from students
Sign in free to read the answers, vote and reply.