Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // pointertest.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- int function(int num){
- cout << num;
- int retval = num + 1;
- return retval;
- }
- int main(){
- int input;
- int f;
- cout << "input number" << endl;
- cin >> input;
- cout << "number output: " <<
- f = function(input);
- system("pause");
- }
Add Comment
Please, Sign In to add comment