Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code issue in lesson - no output #1224

Open
aidev13 opened this issue Jul 10, 2024 · 3 comments
Open

Code issue in lesson - no output #1224

aidev13 opened this issue Jul 10, 2024 · 3 comments

Comments

@aidev13
Copy link

aidev13 commented Jul 10, 2024

In Exercise - Combine strings using character escape sequences, you have us compare the code below: (this is copied and pasted)

Console.WriteLine("Generating invoices for customer \"Contoso Corp\" ...\n");
Console.WriteLine("Invoice: 1021\t\tComplete!");
Console.WriteLine("Invoice: 1022\t\tComplete!");
Console.WriteLine("\nOutput Directory:\t");
Console.Write(@"c:\invoices");

// To generate Japanese invoices:
// Nihon no seikyū-sho o seisei suru ni wa:
Console.Write("\n\n\u65e5\u672c\u306e\u8acb\u6c42\u66f8\u3092\u751f\u6210\u3059\u308b\u306b\u306f\uff1a\n\t");
// User command to run an application
Console.WriteLine(@"c:\invoices\app.exe -j");

The result of this code is "no output" because on line one the ellipsis is not separated from the \n newline character.

Please fix this so beginners are not confused.

@aidev13 aidev13 changed the title Code issue for in lesson - no output Code issue in lesson - no output Jul 10, 2024
@aidev13
Copy link
Author

aidev13 commented Jul 11, 2024

Maybe it's not a bad code, but the .net editor doesn't like it.

@jonsequitur
Copy link
Contributor

Could you please provide a link to the sample?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants