Problems with escape sequences

This is a discussion on Problems with escape sequences within the C Programming forums, part of the General Programming Boards category; Hi everyone, I am new to the forum, as well as to the C language, and I have a problem. ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    114

    Problems with escape sequences

    Hi everyone, I am new to the forum, as well as to the C language, and I have a problem. In a file I am studying, inside the printf function, I am trying to use the escape sequence "\a", which is supposed to beep some kind of sound - but when I save the source code, compile it, and run it, it doesn't play anything - also, as far as I know, it is supposed to print "beep" on the screen, right? But it doesn't - only blank space appears at this point in the text displayed by the printf function.

    In another case, I tried typing the following escape sequence series: \b\b\b\b - as far as I know, "\b" would move the cursor - however, when I compile and run the file in DOS, I see a message - I use the computer mostly in Portuguese, but, translating it to English, it is something like "Denied access" - also, the antivirus (AVG - free) detects in the executable file obtained from the compiling process a trojan - more specifically: "Trojan horse Generic13.ESS".

    I use DevC++ and its compiler, in Windows XP, although I also have installed in my computer something like Cygwin - which I don't quite know if it is another compiler. My question is: what is happening that doesn't let me use these two escape sequences?

    In advance, I thank you all for your attention and time.

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Maybe it would help posting some code

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hello and can someone help me??..
    By GGrrl in forum C++ Programming
    Replies: 3
    Last Post: 03-20-2003, 11:08 AM
  2. Using escape sequences as user inputs
    By musayume in forum C Programming
    Replies: 4
    Last Post: 12-11-2001, 08:35 AM
  3. ANSI Escape Sequences OR Scan of keyboard
    By Samppa in forum Linux Programming
    Replies: 3
    Last Post: 10-24-2001, 12:15 PM
  4. Escape sequences in VC++
    By emilyh in forum Windows Programming
    Replies: 7
    Last Post: 09-26-2001, 07:02 AM
  5. Escape Sequences
    By Me-Again-Again in forum C Programming
    Replies: 3
    Last Post: 09-05-2001, 06:24 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21