write multiple lines without "\n" with writeln
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 20 00:28:10 PST 2014
In dco source code I have found:
void ShowUsage()
{
writeln("
dco build tool " ~ strVersion ~ "
written by FrankLIKE.
Usage:
dco [<switches...>] <files...>
for example: dco
or: dco app.d
build for dfl2: dco
....
}
I do not see here any "\n". Why this code is output all one by
line, and not in single line?
Why my code:
writeln("App name:" ~ appName ~
"App version:" ~ appVersion ~
"To see help please use -h\\-help option");
writeln(args);
output:
App name:CoolAppApp version:0.0.1To see help please use -h\-help
option[".\\app1
.exe"]
More information about the Digitalmars-d-learn
mailing list