Thread: alternative to <string.h>

  1. #1
    Registered User
    Join Date
    Dec 2019
    Posts
    1

    Question alternative to <string.h>

    people say there are no stupid questions, well, this one was.
    There was a clear typo in my code which led to a memory error
    Last edited by fabi.mueller; 12-08-2019 at 09:12 AM.

  2. #2
    Registered User rstanley's Avatar
    Join Date
    Jun 2014
    Location
    New York, NY
    Posts
    1,106
    Without seeing the code we cannot comment on the error.

    Why would you need an alternative to string.h?

    Turn on your warnings in the compiler, and turn up the warning level to the highest level. This will help find errors or warnings in the code during the compile process.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I think fabi.mueller solved the problem independently then removed the code.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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. Alternative to ifstream?
    By bengreenwood in forum C++ Programming
    Replies: 2
    Last Post: 10-24-2009, 11:12 AM
  2. Any alternative?
    By sCandal2 in forum Windows Programming
    Replies: 4
    Last Post: 01-11-2006, 04:30 PM
  3. alternative to novell?
    By Waldo2k2 in forum Tech Board
    Replies: 9
    Last Post: 03-23-2005, 01:00 PM
  4. gets() alternative
    By Mastadex in forum C Programming
    Replies: 5
    Last Post: 12-12-2004, 12:28 AM
  5. alternative to cin
    By Unregistered in forum C++ Programming
    Replies: 18
    Last Post: 06-25-2002, 05:14 PM

Tags for this Thread