![]() |
Passing values using class notation
Hello,
I am trying to input a parameter from an external file into this program. The subroutine does import the integer parameter 50 in the program and prints its result on the screen. My problem is trying to pass the value of the parameter out of the subroutine and into the main function using the class notation and reference method. Can anyone tell me if I am using the class and reference notation properly? Thanks really appreciate it. :) Code:
#include <iostream> |
Re: Passing values using class notation
Check if you are using the exit(1) function correctly. It does mean you are exiting the program and not the function. Use break/return statement if appropriate.
Offtopic comment: This is my 1,000th post by the way |
| All times are GMT +5.5. The time now is 06:08. |