narmer93's Profile
Reputation: 8
Worker
- Group:
- Active Members
- Active Posts:
- 315 (0.17 per day)
- Joined:
- 13-March 08
- Profile Views:
- 2,440
- Last Active:
Dec 04 2012 12:08 PM- Currently:
- Offline
Previous Fields
- Country:
- EG
- OS Preference:
- Windows
- Favorite Browser:
- FireFox
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Latest Visitors
-
haddd 
04 Dec 2010 - 08:26
Posts I've Made
-
In Topic: can't call method with a double array parameter
Posted 4 Dec 2012
Michael26, on 04 December 2012 - 04:35 AM, said:The second parameter is a ref.
The ref keyword causes an argument to be passed by reference, not by value. The effect of passing by reference is that any change to the parameter in the method is reflected in the underlying argument variable in the calling method. The value of a reference parameter is always the same as the value of the underlying argument variable.
double result = TwoOperandsExp<b></b>ressionAnalyzer(line,?????)
This should be written like this
double result = TwoOperandsExp<b></b>ressionAnalyzer(line,ref double[] Operands)
thanks buddy, i figured it out already
that's the code that worked for me
double[] opr = new double[2]; string operand = TwoOperandsExpressionAnalyzer(line, ref opr);
that's the way i figured out to get something out of a function other than the return method
My Information
- Member Title:
- D.I.C Regular
- Age:
- 19 years old
- Birthday:
- June 3, 1993
- Gender:
- Location:
- Egypt
- Programming Languages:
- vb.net,learning javascript,C/C++
Contact Information
- E-mail:
- Click here to e-mail me
- AIM:
-
mbkfa93@aol.com
- MSN:
-
mbkfa93@hotmail.com
- Website URL:
-
http://
- Yahoo:
-
mbkfa93@yahoo.com
Friends
narmer93 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
narmer93 has no profile comments yet. Why not say hello?