I don't understand what is this in console program,can someone explain?
#{0}
#{0}
|
Apr 21 2017, 07:39 PM, updated 7y ago
Show posts by this member only | Post
#1
|
Junior Member
604 posts Joined: May 2015 |
I don't understand what is this in console program,can someone explain?
|
|
|
|
Apr 26 2017, 04:44 PM
Show posts by this member only | Post
#2
|
Junior Member
56 posts Joined: Nov 2008 |
sample:
System.Console.WriteLine("The Factorial of {0} is {1}.", num, result); in this case: {0} is first parameter -> num {1} is 2nd parameter -> result programming indexing is start from 0.. so 0 means 1st, 1 means 2nd, onwards blabla |
|
May 13 2017, 06:36 PM
Show posts by this member only | IPv6 | Post
#3
|
Senior Member
1,018 posts Joined: Jul 2012 |
Most likely a placeholder.
|
|
May 14 2017, 06:47 AM
Show posts by this member only | Post
#4
|
Senior Member
1,731 posts Joined: Jan 2007 |
get a look on string.format, it explained in details.
|
|
May 19 2017, 07:44 AM
Show posts by this member only | Post
#5
|
Junior Member
604 posts Joined: May 2015 |
QUOTE(PlayPlayHa @ Apr 26 2017, 04:44 PM) sample: Sorry I still blur,can u explain it more specifically for the parameters?System.Console.WriteLine("The Factorial of {0} is {1}.", num, result); in this case: {0} is first parameter -> num {1} is 2nd parameter -> result programming indexing is start from 0.. so 0 means 1st, 1 means 2nd, onwards blabla |
Change to: | 0.0140sec
0.38
5 queries
GZIP Disabled
Time is now: 28th March 2024 - 06:19 PM |