--- In [email protected], "bo" <[EMAIL PROTECTED]> wrote:
>
> Here is the code.  In the section on function for inputing sales here 
> is the error message:line 37: lexical: unknown escape sequence `\P'
> 'printf ("n\Please enter a valid amount\n")'
> 
> What does Lexical: mean? 
> 
>       printf ("n\Please enter a valid amount\n");

It's just that it should be "\nP... not "n\P...

The \ character is used to obtain special control codes ('escape
sequence') in C strings; \n is the 'new line' code. But \P isn't a
valid code, hence the compiler warning.

John

Reply via email to