我想在標籤混合刺痛,自由文本如何打印字符串的標籤
Exempel:
String inst = "Installing:";
label1.Text = Inst;
這工作,但如果我想混騙中騙「出師表」與我自己的文本我不知道如何。
Exempel 2:
String Inst = "Installing:";
label1.Text = inst, "Google Chrome";
這是我怎麼想的代碼會是什麼樣子,但沒有
我想在標籤混合刺痛,自由文本如何打印字符串的標籤
Exempel:
String inst = "Installing:";
label1.Text = Inst;
這工作,但如果我想混騙中騙「出師表」與我自己的文本我不知道如何。
Exempel 2:
String Inst = "Installing:";
label1.Text = inst, "Google Chrome";
這是我怎麼想的代碼會是什麼樣子,但沒有
試試這個,如果你的尋找C#
String Inst = "Installing:";
label1.Text = string.Format("{0} {1}",inst, "Google Chrome");
這就是所謂的字符串連接可以用得到[string.Concat](https://msdn.microsoft.com/en-us/library/ system.string.concat(v = vs.110).aspx)方法或僅在兩個字符串之間使用+運算符(Inst +「Google Chrome」) – Steve
這是哪種編程語言? C/C++?因爲字符串concattenation的'''看起來不像C/C++ ;-) – YePhIcK