DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: C++ program with HTML tags...

  1. #1
    Adam G Guest

    C++ program with HTML tags...


    I have a file that has html tags in it...
    ex. <html> <title> </html> </title> etc.

    We have to use that file with a Stack.cpp program that we have to make sure
    that the text is nested correctly. How in the **** do I do that? I am looking
    for someone to help me or I can email different problems to and then pay
    you. Please let me know ASAP!!

    -Adam Ghassemi

  2. #2
    Vic Guest

    Re: C++ program with HTML tags...


    Your example is incorrectly nested
    should be <html><title></title></html>
    The <html> tag is the root.
    "Adam G" <ahg003@drake.edu> wrote:
    >
    >I have a file that has html tags in it...
    > ex. <html> <title> </html> </title> etc.
    >
    >We have to use that file with a Stack.cpp program that we have to make sure
    >that the text is nested correctly. How in the **** do I do that? I am looking
    >for someone to help me or I can email different problems to and then pay
    >you. Please let me know ASAP!!
    >
    >-Adam Ghassemi



  3. #3
    Adrian Metcalfe Guest

    Re: C++ program with HTML tags...



    Why not just do a 2 pronged search ie. search from the start of the file
    and from the end of the file.

    search from start finds <HTML>
    search from end finds </HTML>
    search from start finds <TITLE>
    search from end finds </BODY> - error file incorrectly nested

    simple to do, would be fairly slow to do the search from end unless you load
    the file twice and flip the file over for your search from end.

    Hope this helps

    Adrian



    "Adam G" <ahg003@drake.edu> wrote:
    >
    >I have a file that has html tags in it...
    > ex. <html> <title> </html> </title> etc.
    >
    >We have to use that file with a Stack.cpp program that we have to make sure
    >that the text is nested correctly. How in the **** do I do that? I am looking
    >for someone to help me or I can email different problems to and then pay
    >you. Please let me know ASAP!!
    >
    >-Adam Ghassemi



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center