Like Tree1Likes
  • 1 Post By laserlight

New to C++ and needing help; Can't find <lvp\string.h> |LawrencevillePress

This is a discussion on New to C++ and needing help; Can't find <lvp\string.h> |LawrencevillePress within the C++ Programming forums, part of the General Programming Boards category; I've gone through a few threads trying to find something to fix my problem, but the latest I've found that ...

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    3

    Unhappy New to C++ and needing help; Can't find <lvp\string.h> |LawrencevillePress

    I've gone through a few threads trying to find something to fix my problem, but the latest I've found that is similar is from 2003.

    It's my first time learning C++, and we are using the Lawrenceville Press book they give out at my high school. Working from home, I have downloaded the files instructed, but one of the files they use in the book is <lvp\string.h> but it's not in the library.

    I'm using a really simple program to test it, and it's even depicted as an example in the book, but the statement still doesn't work.

    Code:
    #include <iostream.h>
    #include <lvp\string.h> // unable to open include file 'LVP\STRING.H'
    
    int main()
    {
    String Name;            // Unidentified symbol & Statement missing
    
    cout << "Enter your name: ";
    cin >> Name;                  // Unidentified symbol
    cout << "Welcome, " << Name;
    cout << "! Nice to meet you!" << endl;
    return(0);
    }
    Any ideas?
    I have till April 20th to finish the whole book, but this is the only thing stopping me. (I slacked for 2 months. However, I'm determined to finish it.)... Not to mention this is only Chapter 3.
    I'm glad I finished both Java and AP Java Programming last year, it helps make C++ a lot faster.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,992
    Quote Originally Posted by Kaamen
    It's my first time learning C++, and we are using the Lawrenceville Press book they give out at my high school.
    Unfortunately, an Amazon.com review notes that:
    Quote Originally Posted by Kyle Marple
    This book does not teach C++ beyond basic program structure. Rather than teaching you how to do something properly using standard C++, the book often relies on it's own libraries, which are provided either as a CD or download. The result is not a knowledge of C++, but a dependence on these libraries, which effectively prevents the reader from learning how to do numerous common tasks.
    Another user on this message board also had similiar concerns.

    Quote Originally Posted by Kaamen
    Working from home, I have downloaded the files instructed, but one of the files they use in the book is <lvp\string.h> but it's not in the library.
    You should consult your teacher. However, if you are not doing this for module credit or the like, then I suggest that you ditch this book in favour of say, Accelerated C++.
    Last edited by laserlight; 04-07-2012 at 10:22 PM.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2012
    Posts
    3
    I wish I could, but the book comes with the course and I can't do much about it.

    You should consult your teacher.
    If I did that, my cover would be officially blown. I'm asking the only other student in the course for some help, but there hasn't been any reply yet.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,992
    Quote Originally Posted by Kaamen
    If I did that, my cover would be officially blown.
    What cover? The fact that you delayed working on this for two months? I think you have to decide whether your ego or your grade is more important to you. Not like your teacher will be giving you a fatal beating, so just apologise for slacking and move on.
    MK27 likes this.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Apr 2012
    Posts
    3
    It's not that big of a deal, and if I end up needing to I will, but it was just a joke.

    I'm looking for a solution, and that's all. Being 1 out of 3 girls in a room of 14 computer classes in high school, and being in the top class with only 2 students (me and another guy), doesn't really have me jumping at the chance to admit I was slacking. Though, it's not like I have the chance to at the moment.
    It's my responsibility to get it done, but I was just looking for a bit of help.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,992
    The thing is, if the file is missing, you're simply stuck. It is unlikely that anyone here would have the file, and even if they did, it might not be exactly the file that you require.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Find index of last char in search string in string?
    By Programmer_P in forum C++ Programming
    Replies: 6
    Last Post: 06-07-2010, 06:51 PM
  2. std::string::find vs std::find
    By petry in forum C++ Programming
    Replies: 17
    Last Post: 07-08-2009, 05:26 PM
  3. find a string based on the location of another string
    By rlilley in forum C Programming
    Replies: 3
    Last Post: 02-19-2009, 11:29 AM
  4. Using while with string.find()?
    By suzakugaiden in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2006, 11:12 PM
  5. help with 'string.find'
    By barneygumble742 in forum C++ Programming
    Replies: 10
    Last Post: 12-23-2005, 11:28 PM

Tags for this Thread


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