I have problem with this please

This is a discussion on I have problem with this please within the C++ Programming forums, part of the General Programming Boards category; hi all i am new in this group it nice to find like this pepole to help anther and it's ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    1

    I have problem with this please

    hi all

    i am new in this group it nice to find like this pepole to help anther and it's nice site

    i am i student and i need a help to solve the home work i will atchment with this Message so any one can help me

    it work with C++ borland builder

    regard

    Aqel
    Attached Files Attached Files

  2. #2
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    Please refer to our Homework policy to understand that we are not able/willing to help you with your homework. If you have specific questions regarding the implementation or the understanding of a specific point, feel free to ask again but we can not do your homework for you.

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Quote Originally Posted by KONI
    Please refer to our Homework policy to understand that we are not able/willing to help you with your homework. If you have specific questions regarding the implementation or the understanding of a specific point, feel free to ask again but we can not do your homework for you.
    Stated much nicer than I would have done.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    There is a problem with line 3:
    Code:
    #include <iostream.h>
    You should be using <iostream>, not iostream.h; and then you have to work with namespaces, or you could just add
    Code:
    using namespace std;
    Code:
    cout<<"The player: "<<(MyGame.GetPlayerInfo()).c_str()<<" won,with Score: "<<MyGame.GetScore()<<endl;
    There's no reason to use .c_str(). cout handles std::strings perfectly well.

    If that was written for you as I suspect tell whoever wrote it what I said.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

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