[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
QbasicFAQ_PrintImages » DarkBasic » CppVclAddTWinControlDynamically » WhatLinksHere » QbasicFAQ_WhyNotLoad » QbasicFAQ_AddSound » object » thunks » QbasicFAQ_SyntaxError » Zeev Suraski » CppReturn
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
QbasicFAQ_PrintImages » DarkBasic » CppVclAddTWinControlDynamically » WhatLinksHere » QbasicFAQ_WhyNotLoad » QbasicFAQ_AddSound » object » thunks » QbasicFAQ_SyntaxError » Zeev Suraski » CppReturn
(C++) return
Keyword, giving back a value calculated by a function.int myFunction() { return 69; } int main() { std::cout << "myFunction returns: " << myFunction() << std::endl; return 0; //Also main returns something. That is an error code }
- include<iostream>
Code links
- ::, scope operator
- <<, stream out operator
- #include
- cout
- endl
- #include
- iostream
- main
- scope operator, ::
- std
- stream out operator, <<
'return' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
