摘要: Hyperpolyglot.orgFrom Hyperpolyglot.orgC++ Style Languages: C++, Objective-C, Java, C#a side-by-side reference sheetgrammar and invocation | variables and expressions | arithmetic and logic | strings | regexes | dates and timearrays | dictionaries | user-defined types | functions | execution control 阅读全文
posted @ 2013-08-16 17:39 iDragon 阅读(651) 评论(0) 推荐(0)
摘要: FunctionFunction is composed of name, parameter (operand, type of operand), return value, body with another adornment like: inline, virtual, static, const, throw().我们必须在调用函数之前,就声明该函数否则会引起编译错误.函数声明由函数返回类型,函数名和参数表构成. 这三个元素被称为函数声明function declaration 或函数原型function prototype, 一个函数可在一个文件中被声明多次. 函数生命不需要指定 阅读全文
posted @ 2013-08-16 14:29 iDragon 阅读(327) 评论(0) 推荐(0)