摘要: REFER:SOWhat are these new categories of expressions?The FCD (n3092) has an excellent description:— An lvalue (so called, historically, because lvalues could appear on the left-hand side of an assignment expression) designates a function or an object. [ Example: If E is an expression of pointer type 阅读全文
posted @ 2013-04-08 19:52 strorehouse 阅读(191) 评论(0) 推荐(0) 编辑
摘要: REFER:SOAs of theC++11standard, string-to-number conversion and vice-versa are built in into the standard library. All the following functions are present in<string>(as per paragraph 21.5).string to numericfloat stof(const string& str, size_t *idx = 0);double stod(const string& str, si 阅读全文
posted @ 2013-04-08 19:48 strorehouse 阅读(257) 评论(0) 推荐(0) 编辑
摘要: REFER:SO中文社区见到的答案,不提也罢new/deleteAllocate/release memoryMemory allocated from 'Free Store'Returns a fully typed pointer.new (standard version) never returns a NULL (will throw on failure)Are called with Type-ID (compiler calculates the size)Has a version explicitly to handle arrays.Reallocati 阅读全文
posted @ 2013-04-08 19:33 strorehouse 阅读(161) 评论(0) 推荐(0) 编辑