If stantment

This is a discussion on If stantment within the C++ Programming forums, part of the General Programming Boards category; How do you write a IF statement that will check for a new line character...... Thanks Squirrelly...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    7

    If stantment

    How do you write a IF statement that will check for a new line character......

    Thanks
    Squirrelly

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    char whatever;
    if (whatever=='\n')
    {
    // do whatever
    }
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

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