User Tools

Site Tools


cpp:control_structures:return

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpp:control_structures:return [2012/10/12 02:12]
cpp:control_structures:return [2024/02/16 01:04] (current)
Line 1: Line 1:
 +{{keywords>wiki library source code example reference}}
 +===== return =====
 +<code cpp>   
 +   #include <iostream> /* including standard library */
 +
 +   return value;
 +</code>
 +
 +returns a value
 +
 +===== cpp Sourcecode Example =====
 +<code cpp>
 +#include <iostream> /* including standard library */
 +
 +using namespace std;
 +
 +int main(void) {
 +
 +      cout  << "better example is" << endl;
 +      return 1;
 +      cout << "missing" << endl;
 +return 0;
 +}
 +</code>
 +
 +    output:
 +    
 +    better example is
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz