/n not working

This is a discussion on /n not working within the C Programming forums, part of the General Programming Boards category; Hey, the /n isnt working in my code, I´m adding it here: if(brev1==100) printf("Antal rabattfrimärken: 1/n"); but it justs prints ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    8

    /n not working

    Hey, the /n isnt working in my code, I´m adding it here:

    if(brev1==100)
    printf("Antal rabattfrimärken: 1/n");

    but it justs prints it out in the console.




    Cant figure out what the problem is.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    What did you expect it to do? (Hint: The escape character is \, not /.)

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    8
    Oh, that might be why It worked now, I´m so stupid sometimes..

  4. #4
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    Quote Originally Posted by Ghezzo View Post
    Oh, that might be why It worked now, I´m so stupid sometimes..
    This escape sequence is sometimes confusing to me too.
    HOPE YOU UNDERSTAND.......

    By associating with wise people you will become wise yourself
    It's fine to celebrate success but it is more important to heed the lessons of failure
    We've got to put a lot of money into changing behavior


    PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
    IDE- Microsoft Visual Studio 2008 Express Edition

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 07:08 PM
  2. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 03:21 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 07:35 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 04:08 AM

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