Hi all,
Great forum!!
I have a problem with the following code:
Please help this is a bit of a headbanger []
Thank you
Thank you,
Kind regards
Triacona
Great forum!!
I have a problem with the following code:
Code:
private static int readIntAns(string p)
{
string ans;
Console.Write(p);
ans = Console.ReadLine();
if ((int.TryParse(ans,ans) == false))
{
ans = "";
}
else
{
return int.Parse(ans);
}
}//end readIntAns
Argument2: cannot convert from string to out int
The best overloaded method match for int.TryParse(string, out) has some invalid arguments
Please help this is a bit of a headbanger []
Thank you
Thank you,
Kind regards
Triacona