Thread: HTML to TXT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    12
    Hey everybody thanks, im having trouble with using the "enum function"
    Code:
    enum Status{OUTSIDE = ?, INSIDE = ?);
    I dont know what to set OUTSIDE and INSIDE equals to.
    If anyone could help I would really appreciate it. Thanks-

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Quote Originally Posted by eobergfell View Post
    Hey everybody thanks, im having trouble with using the "enum function"
    Code:
    enum Status{OUTSIDE = ?, INSIDE = ?);
    I dont know what to set OUTSIDE and INSIDE equals to.
    If anyone could help I would really appreciate it. Thanks-
    In C++, enumerated types can be used to good advantage - not so with most C compilers.
    Read the tutorial link in the post up above, for crying out loud. Especially the "Note to C programmers: ..."

    All you need is just:

    int OutText = 1;
    int OutAttrb = 1;

    as global variables, preferrably.

    Now as you scan through your document, anytime you are Outside ANY html tag, AND outside any html attribute, you're ready to copy the text out of the html file, and put it into the new text file your program is creating.

    Don't make this harder than it needs to be, please!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. Writing an HTML Preprocessor
    By thetinman in forum C++ Programming
    Replies: 1
    Last Post: 09-17-2007, 08:01 AM
  3. Parsing HTML files
    By slcjoey in forum C++ Programming
    Replies: 2
    Last Post: 08-28-2005, 07:01 AM
  4. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 06:32 AM