Text Formatting & various questions.

This is a discussion on Text Formatting & various questions. within the C++ Programming forums, part of the General Programming Boards category; So, its been a while since iv been dealin with C++, been doin many things lol. But if i remember ...

  1. #1
    #junkie
    Join Date
    Oct 2004
    Posts
    240

    Text Formatting & various questions.

    So, its been a while since iv been dealin with C++, been doin many things lol. But if i remember right, you need to just search through text via loops correct? So making your own simple format is the best option then correct?

    Prob somethin similar to a simple <> xml format, searching for "<*>" then "</*>"?

    On that same note, what are good tools to look into for searching, ie, should i be using String's features for parsing or what?


    Thanks for any replies, been so long i cant remember any precise terms, but itll come back quickly lol


    (FYI, i am looking to make a massive DB text file(s) with organized categories for trivia, doing this so i can make a few shots at once. Revamp a bit in C++, and build a study aid for my A++/Net+ Deg.(And dont start how they are easy as hell tests, blahblah, i am just makin a quiz prog here lol )
    01110111011000010110110001100100011011110010000001 11000101110101011010010111010000100000011011000110 10010110011001100101001000000111100101101111011101 0100100000011011100111010101100010

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    There are a number of standard methods and algorhithms available to search STL containers, including the STL string class. Otherwise you are pretty much restricted to using strok(), or related pre-written functions OR writing your own functions to do what you want.
    You're only born perfect.

  3. #3
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Quote Originally Posted by elad
    Otherwise you are pretty much restricted to using strok(), or related pre-written functions OR writing your own functions to do what you want.
    strtok()..
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 01:36 PM
  2. New Project, text game, design stage.
    By Shamino in forum Game Programming
    Replies: 9
    Last Post: 05-23-2007, 07:39 AM
  3. Replies: 1
    Last Post: 07-13-2002, 06:45 PM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 10:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM

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