Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

string.Format() C#

int amount = 14;
String s = String.Format("這是今年吃的第{0}顆柚子",amount);
Console.WriteLine(s);
//這裡會輸出這是今年吃的第14顆柚子
Source by ithelp.ithome.com.tw #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+6 =