Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: C++
Expertise: Beginner
Feb 2, 2001



Building the Right Environment to Support AI, Machine Learning and Deep Learning

A Beginner's Checklist

Beginners and even experienced programmers who switch to a new compiler suddenly discover that their programs don't compile anymore. Sometimes the programs compile but produce numerous warning messages. In most cases, the causes of this are common. Here is a short checklist for troubleshooting such frequent errors and omissions.
  • Avoid using the .h standard headers. These files are deprecated and outdated. Instead, use the new file header naming convention. For instance, instead of <iostream.h> and <vector.h> always use <iostream> and <vector> respectively.
  • Pay attention to namespaces. The standard header files are all declared in namespace std. You must provide a fully qualified name if you're referring to any of the identifiers in these files. For example: use std::cin, std::vector and std::string instead of cin, vector and string. Alternatively, place a using-declaration or a using directive in your program.
  • String issues. The definition of the term
  • Danny Kalev
    Comment and Contribute






    (Maximum characters: 1200). You have 1200 characters left.



    Thanks for your registration, follow us on our social networks to keep up-to-date