Help me!!!

This is a discussion on Help me!!! within the C++ Programming forums, part of the General Programming Boards category; Write a library with a header file “MyString.h” and implementation file “MyString.cpp”, which contains the following functions: _ A function ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Help me!!!

    Write a library with a header file “MyString.h” and implementation file “MyString.cpp”, which contains the following functions:
    _ A function “input_string(string &s)” which allows the user to input a string including white spaces
    _ A function “int compare_string(string &s1, string &s2)” which compare 2 strings follow dictionary order (do not use library). The function returns 1 if string s1 has higher order than string s2, returns -1 if string s2 has higher order than string s1, return 0 if 2 strings are identical.
    Test the functions in a suitably defined main program.

  2. #2
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    C Board - Announcements in Forum : General Programming Boards

    Do you have anything written so far and any specific questions on what you are having trouble with or what doesn't work?

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    Furthermore, "Help me!!!" is not a suitable topic title. The topic title shall describe what the post is about, not help me. Such topics are frowned upon.
    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.

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    20
    That's all.
    Reading
    don't understand...????

  5. #5
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Perhaps you need to find a forum that "speaks your language."

Popular pages Recent additions subscribe to a feed

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