Ok I was reading a book on C++09 and saw this vareable auto that determins what kind of vareable it is. When I try to use it this comes up :
"auto will change c++x09 plesase remove it" I did the settings stuff and know I have 09 but how do I use auto? Google wasn't friendly in this siutuation. Also I hear auto is a keyword or somthing used in the olden days. What did it do
Zssffssz
-4
Junior Poster
Recommended Answers
Jump to Post>>What did it mean before it was used for a variable?
auto
is a storage specifier in C (and kept in C++98). However, it is the default storage class for all variables in C/C++, which makes it a pretty meaningless specifier (i.e. it literally has no effect at all). A …
Jump to PostSo is this the thing that C can do that C++ can't?
Um, no? C still allows the
auto
keyword as a storage class specifier, but as Mike said, it's useless to anyone but a compiler writer. As far as C doing something that C++ can't, I'd say C++'s …
All 5 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Zssffssz
-4
Junior Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Zssffssz
commented:
Did more than expected (in a good way)
+3
Zssffssz
-4
Junior Poster
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.