Use printn rather than println. Add string methods for copying.

This commit is contained in:
Christoffer Lerno
2023-02-04 15:38:06 +01:00
committed by Christoffer Lerno
parent 6b928c7a3d
commit dce171670f
39 changed files with 1627 additions and 677 deletions

View File

@@ -3,7 +3,7 @@ import regex, stdio;
fn void main()
{
println("Enter a story template, terminated by an empty line:");
printn("Enter a story template, terminated by an empty line:");
VarString story = "";
while (1)
{
@@ -25,5 +25,5 @@ fn void main()
story = story.replace(s, word);
}
println("\nThe story becomes:\n%s\n", story);
printn("\nThe story becomes:\n%s\n", story);
}