Thread: error: missing terminating " character

  1. #1
    Registered User
    Join Date
    Jan 2008

    Thumbs down error: missing terminating " character

    Can any one tell me what i did mistake. So getting this problem .....
    1. error: missing terminating " character
    2. error: ‘Options’ undeclared (first use in this function)

    fprintf(stderr, " Usage:  ./ss c <class c>         --> Scan a class C Or:  ./ss b <class b>         --> Scan a class B Or:  ./ss a <class a>         --> Scan a class A Or:  ./ss x                   --> Scan everything Or:  ./ss f <file>            --> Scan all IPs in a file
       Options: (put these before the above)
          o --> Display only IP
          d --> Minimum number of DUPs
          t --> Timeout);

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    As it says, you did not end your string literal with a double quote.
    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

  3. #3
    Join Date
    Oct 2007
    Inside my computer
    char myvar[] = "My string 1"
        "My string 2"
        "My string 3";
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  3. <string> to LPCSTR? Also, character encoding: UNICODE vs ?
    By Kurisu33 in forum C++ Programming
    Replies: 7
    Last Post: 10-09-2006, 12:48 AM
  4. Remove character from string
    By nooksooncau in forum C Programming
    Replies: 11
    Last Post: 06-05-2006, 09:37 AM
  5. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 05:32 PM