这里有点新手,但我基本上希望文本在换行时自动缩进。因此,不是:of pickled peppers.这是我尝试过的:
span.profile{ display:block; text-indent: -35px; /*this pulls the first line to the left*/ padding-left谢谢你的帮助!
给定一个未知长度的字符串,如何使用cout输出它,以便整个字符串在控制台上显示为缩进的文本块?(这样,即使字符串包装到新行,第二行的缩进级别也是相同的)cout << "This is a short string that isn't indented." << endl;这是一个没有缩进的短字符串。这