Hello computer loving people. I have question. What does x1 =Int32.Parse (x); do. Cus if i get it right. The computer is telling the variable string to read the line. But what does the next line do?.And what does Parse mean??. Also could you give me a challenge ore something :P That i could do xD
lol basicly what is happening is that i want to name the varible x1. then i telling it i want in to be a integer 32 so can't be any more than 32 numbers then its parsing the prevouis varible i used X into x1 because we needed to change it from a string to a intger, Hope that helped,a challenge errrm ok carry on with this if else statement see if can but in anouther else statement saying u can only type numbers in and not text.so say if the user typed in ten it would not beable to read it.
Well I did this one and your last tutorial, when I am running the program when it is supposed to say "You are not old enough to drive" it exits out instantly I catch a glimpse of it but then it closes right away.
so wat im saying here is that you would put the two varibles y1,x1 you would like to pass then the first varible witch is y1 will pe passed into {0} then the second varible witch ive said is x1 will be passed into {1}. so there thats how u would do it. hope this helps
lol cheers for comment im makeing a couple tomoz but then im going on holiday for a week so that be it for a while. btw these are just touching in what i want to go into last stage will be making our first game :D. anyway cheers for comment glad someone getting use out of them.
np dude yeah there will be some more coming...
thxs for comment
xmasrules 3 years ago
Hello computer loving people. I have question. What does x1 =Int32.Parse (x); do. Cus if i get it right. The computer is telling the variable string to read the line. But what does the next line do?.And what does Parse mean??. Also could you give me a challenge ore something :P That i could do xD
junglebeam 3 years ago
lol basicly what is happening is that i want to name the varible x1. then i telling it i want in to be a integer 32 so can't be any more than 32 numbers then its parsing the prevouis varible i used X into x1 because we needed to change it from a string to a intger, Hope that helped,a challenge errrm ok carry on with this if else statement see if can but in anouther else statement saying u can only type numbers in and not text.so say if the user typed in ten it would not beable to read it.
xmasrules 3 years ago
if you type in 10 you will get an error message saying not in the correct format what you need is a try,catch statement.....
VbLearn 3 years ago
Well I did this one and your last tutorial, when I am running the program when it is supposed to say "You are not old enough to drive" it exits out instantly I catch a glimpse of it but then it closes right away.
dferdig 3 years ago
Make sure u run without debugging
xmasrules 3 years ago
System.Console.WriteLine(" you are either
{0} or {1}", y1,x1);
so wat im saying here is that you would put the two varibles y1,x1 you would like to pass then the first varible witch is y1 will pe passed into {0} then the second varible witch ive said is x1 will be passed into {1}. so there thats how u would do it. hope this helps
xmasrules 3 years ago
u got steam dude
xmasrules 3 years ago
lol cheers for comment im makeing a couple tomoz but then im going on holiday for a week so that be it for a while. btw these are just touching in what i want to go into last stage will be making our first game :D. anyway cheers for comment glad someone getting use out of them.
xmasrules 3 years ago