【发布时间】:2020-03-07 02:11:20
【问题描述】:
我需要编写一个输出“我信任你而你背叛了我”的程序 - 但要使用小写字母。
using System;
class IsThatAll
{
static void Main()
{
string s1 = "Is ";
string s2 = s1;
s2 = s2 + "that ";
//s2 = s2 + "all I ";
string s3;
s3 = "all ";
s3 = s3 + "you";
//s3 = s2;
string s4 = "got?";
s4 = "'ve ";
s4 = s4 + "got?";
Console.WriteLine(s2 + s3 + s4);
}
}
【问题讨论】:
-
小驼峰大写是什么意思?
-
Console.WriteLine("i trusted you and you betrayed me"); -
你的例子与你的问题有什么关系?!
标签: c# string concatenation comments