finding form feed

This is a discussion on finding form feed within the C++ Programming forums, part of the General Programming Boards category; hi, i have a table that i want to format but for the very last line, debugging in msvc++ it ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    84

    finding form feed

    hi,

    i have a table that i want to format but for the very last line, debugging in msvc++ it says character 12 and i looked it up and its a form feed.

    how can i look for this throughout my document?

    i'm using getline and all my lines are then strings.

    then i want to do something like....if(line.formfeedfound()) then line.erase();

    thanks

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    STL General: How to remove elements of a particular value from a container?

    http://www.codeguru.com/forum/showthread.php?t=231045

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    84
    that's not it. that has to do with removing vectors. however i'm looking for a value i should search for like '\t' for tab and '\n' for a new line.

    however i'm looking for the value that represents a form feed or a new page marker.

  4. #4
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    ...

    Those templates work on STL containers, including strings. Those values can include a form feed, 12, '\f'

    ...

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    84
    what about finding the '\f' and replacing it with a '\n'

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Usefull function finding form
    By Yarin in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 11-30-2007, 09:29 PM
  2. Finding a knoppix demo in win32 form
    By Stan100 in forum Tech Board
    Replies: 3
    Last Post: 01-15-2005, 05:08 PM
  3. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM
  4. Help with a bit of tweeking on form feed
    By breed in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 05:45 AM
  5. Form Feed
    By ajchanx in forum C++ Programming
    Replies: 1
    Last Post: 09-02-2001, 12:42 AM

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