Guest User

Untitled

a guest
May 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. // pointertest.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <Windows.h>
  7.  
  8.  
  9. using namespace std;
  10.  
  11. int function(int num){
  12.     cout << num;
  13.     int retval = num + 1;
  14.     return retval;
  15. }
  16.  
  17.  
  18. int main(){
  19.     int input;
  20.     int f;
  21.     cout << "input number" << endl;
  22.     cin >> input;
  23.     cout << "number output: " <<
  24.     f = function(input);
  25.     system("pause");
  26. }
Add Comment
Please, Sign In to add comment