====== My notes on C++ ====== Most of these questions will not be original as I'm sure //many// other students have beat me too it. ===== const keyword ===== * [[const#does_the_const_keyword_precede_or_follow_the_data_type|Does the ''const'' keyword precede or follow the data type?]] * [[const#does_the_const_keyword_precede_or_follow_function_declarations|Does the ''const'' keyword precede or follow function declarations?]] * [[const#does_the_const_keyword_precede_or_follow_member_function_declarations|Does the const keyword precede or follow member function declarations?]] ===== References ===== * [[.:references#does_the_ampersand_always_come_after_the_data_type|Does the ampersand always come after the data type?]] ===== Pointers ===== * [[.:pointers#how_to_initialize_a_lpdword_variable|How to initialize a LPDWORD variable?]] * [[.:pointers#if_a_function_expects_a_pointer_to_a_specific_data_type_can_the_address_of_that_data_type_be_passed_instead|If a function expects a pointer to a specific data type, can the address of that data type be passed instead?]] * [[.:pointers#will_there_be_cases_where_a_pointer_is_necessary|Will there be cases where a pointer is necessary?]] ===== Misc Rules/Best Practices ===== * NEVER place a ''using'' directive in a header file. Instead, explicit qualification should be used. ===== Misc Questions ===== * Are variables, objects? From the way Francis talks, I am reminded of Python ... * When was the ''not'' (keyword?) made available?((Code used in [[http://www.spellen.org/youcandoit/book.htm|Francis Glassborow's books]])) A Google search doesn't turn up much on it. :| if(not std::cin)