std_lib_facilities - simple"Programming Principles and...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /* simple "Programming: Principles and Practice using C++" course header to be used for the first few weeks. It provides the most common standard headers (in the global namespace) and minimal exception/error support. Students: please don't try to understand the details of headers just yet. All will be explained. This header is primarily used so that you don't have to understand every concept all at once. Revised April 25, 2010: simple_error() added */ #ifndef H112 #define H112 201004L #include<iostream> #include<fstream> #include<sstream> #include<cmath> #include<cstdlib> #include<string> #include<list> #include<vector> #include<algorithm> #include<stdexcept> //------------------------------------------------------------------------------ #ifdef _MSC_VER #include <hash_map> using stdext::hash_map; #else #include <ext/hash_map> using __gnu_cxx::hash_map; namespace __gnu_cxx { template<> struct hash<std::string> { size_t operator()(const std::string& s) const { return hash<char*>()(s.c_str()); } }; } // of namespace __gnu_cxx #endif //------------------------------------------------------------------------------ #define unordered_map hash_map //------------------------------------------------------------------------------ typedef long Unicode; //--------------------------------------------------------------...
View Full Document

This note was uploaded on 10/05/2011 for the course THAR 281 taught by Professor Staff during the Fall '07 term at Texas A&M.

Page1 / 6

std_lib_facilities - simple"Programming Principles and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online