Another #include "apstring.h" Problem

This is a discussion on Another #include "apstring.h" Problem within the C++ Programming forums, part of the General Programming Boards category; Hello, I know that there are multiple topics on not being able to include the apstring.h. Well, I have read ...

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    12

    Another #include "apstring.h" Problem

    Hello,

    I know that there are multiple topics on not being able to include the apstring.h. Well, I have read all over google, and searched on here. But I have come across somethings that say you need 5 ap.h's & the 5 ap.cpp's & the bool.h, and to put them into a apclass folder.

    Which I downloaded the files, except bool, which I think is wrong because I copied the source of it. And put them into the folder and when I include them into my .cpp file. It gives me errors!

    But I don't really understand, seeing is how I just started programming like 4-5 months ago. So if anyone could post a link to a site that will allow me to download these files, and give me instructions on how to do this, it would be greatly appreciated... Or if you would explain yourself this would also be great!

    JDM

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Here's a crazy idea: Use the standard string class that comes with every C++ compiler. If your compiler doesn't have it, get a newer one.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    12
    Well, its not really for me. I am in programming class at my high school and my teacher and I are trying to figure out how to use the apstring (only becuase it is in the book the class is using). It's chapter 4 in our book, and he doesn't want to skip it. But I just wanted to know if there was a way so I could try & get this working so that the class & I could learn it.

    The compiler was bought by the school, so I'm sure if we could get one we would...

    JDM

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,660
    You need a new book too.

    Did you ever google "apstring.h"?
    Cuz the very first hit seems to have it (or some version of apstring.h)

    http://www.engin.umd.umich.edu/~sblo...apstring_h.htm

    gg

  5. #5
    Registered User
    Join Date
    Dec 2003
    Posts
    12
    Well, I got it to work, the .cpp wasn't included at the bottom of the .h file.

    Thank you

    JDM

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,660
    It was there when I clicked it, try again later.

    gg

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,490
    > Well, I got it to work, the .cpp wasn't included at the bottom of the .h file.
    You should add the .cpp files to your project, not add them to the bottom of .h files.

    When your programs get really large, you're in for some really long compile times for trivial changes if you continue with this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 09:08 PM
  2. Header file include order
    By cunnus88 in forum C++ Programming
    Replies: 6
    Last Post: 05-17-2006, 03:22 PM
  3. include problem
    By Strait in forum C++ Programming
    Replies: 4
    Last Post: 01-31-2005, 03:01 PM
  4. C: include files problem
    By threahdead in forum Linux Programming
    Replies: 4
    Last Post: 05-07-2004, 08:02 AM
  5. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 12:21 PM

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