Hi, I have two questions about Dev-C++, pls can you answer me them?:
The first time I run the program the wizard suggested me to create a cache for the autocompletion, I couldn't do it in that time so I decided to do it later (as the wizard said that I could) but now I don't know how to do it exactly. I know that I have to go to the Editor's options but what do I do then?
Another issue is that I can't use iostream correctly, I declared the header by this way:
include <iostream>
and when I use cin and cout they appears to be undeclared. Then I use the <iostream.h> header and the compiler says to me that it's deprecated. Then I use the header's directive -Wno-deprecated, it works, but I feel that I going against the standard. How do I solve the problem avoiding using deprecated headers?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Use 'using' directives with care, they circumvent namespace scoping, which is convenient but can cause name clash errors that are sometimes hard to fathom.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The auto-completion stuff is under Tools-Editor Options, Class Browsing tab, Completion tab at the bottom. At least I think that's what you're talking about. I haven't used it personally.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I have two questions about Dev-C++, pls can you answer me them?:
The first time I run the program the wizard suggested me to create a cache for the autocompletion, I couldn't do it in that time so I decided to do it later (as the wizard said that I could) but now I don't know how to do it exactly. I know that I have to go to the Editor's options but what do I do then?
Another issue is that I can't use iostream correctly, I declared the header by this way:
include <iostream>
and when I use cin and cout they appears to be undeclared. Then I use the <iostream.h> header and the compiler says to me that it's deprecated. Then I use the header's directive -Wno-deprecated, it works, but I feel that I going against the standard. How do I solve the problem avoiding using deprecated headers?
The entire standard library is in teh std:: namespace. http://www.cplusplus.com/doc/tutorial/namespaces.html
Use 'using' directives with care, they circumvent namespace scoping, which is convenient but can cause name clash errors that are sometimes hard to fathom.
Clifford
Do you have a statement like:
using namespace std;
in your code before using cin and cout? Otherwise you would need to do std::cin and std::cout.
The auto-completion stuff is under Tools-Editor Options, Class Browsing tab, Completion tab at the bottom. At least I think that's what you're talking about. I haven't used it personally.