Mystring!!!! I need helpp!!!

This is a discussion on Mystring!!!! I need helpp!!! within the C++ Programming forums, part of the General Programming Boards category; Hi! well.. first; i have a big problem using "Mystring" ........ created by me prof. the program is too large ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Exclamation Mystring!!!! I need helpp!!!

    Hi! well.. first; i have a big problem using "Mystring" ........ created by me prof. the program is too large and i have 7 errors creating .obj file, i try others compilers and is the same error! (visual studio 2010 & zinjai ) please i need to finish this program!! im student.
    e, the program should ask the account of money recieve in each quarter (3) by each division (4) and get Percentage of each division
    Attached Files Attached Files
    Last edited by christianpr69; 01-16-2011 at 12:50 PM. Reason: source code posted

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Observations:
    1) Generally speaking, the more exclamation points the fewer people who actually read the thread. (I very nearly didn't open this one, and I'm kinda wishing I hadn't.)

    2) Even if there's 7 whole errors, you could at least tell us what they are. Unless your code is completely massive, asking us to download your code from elsewhere isn't going to win you many friends. (And even if it is, you should be able to cut it down and post what's relevant.)

    3) rar might get you style points, but really: how much code have you written that you feel the need to compress it?

    4) The description (asking for amounts of money and compute percentages) doesn't really sound like something that requires strings.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,112
    Quote Originally Posted by christianpr69
    i have a big problem using "Mystring" ........ created by me prof. the program is too large and i have 7 errors creating .obj file, i try others compilers and is the same error!
    State the error messages and the compilers that you used. Also, what do you mean by "too large"? Too large to post here?

    Quote Originally Posted by christianpr69
    uploaded my project in .rar file, the program should ask the account of money recieve in each quarter (3) by each division (4) and get Percentage of each division
    Post your program here.
    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

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    15 seconds + reCapture + non standard compression -> fail

    Post your SOURCE code, not the entire 5MB project with all the object files and other guff we have no interest in.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Exclamation RE

    Yeah its complicate post here there is ( 5.cpp and 3 .h)

  6. #6
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Where? I can't see anything...
    Devoted my life to programming...

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    Create a ZIP file of your 8 files, rename it to one of the valid types (probably .txt) and upload as an attachment (and tell us that it is a ZIP file).

    Also post the error messages you're getting.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    o_O ... Holy Mother Of Jesus Christ!!! ... O_o
    Devoted my life to programming...

  9. #9
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    All you appear to have posted is the MyString stuff, which you say was created by your instructor. Do you need to modify it? (I would guess no.) In that case, don't post it -- it's not really relevant to your problem (unless the issue is how you are using it; but even then, probably just the header file would be enough). Just post the code that you've written, and the errors that you are getting.

    Okay; I see main now, buried in all that. You still need to tell us what errors you are getting.

    EDIT FURTHER: I copied all the code here (except for MyString) and did a search-and-replace MyString -> string. The errors were all undefined reference to studentList::searchStudent and studentList::sortStudent and all the other functions that you've commented out. If you don't want those errors, you should uncomment out those functions.
    Last edited by tabstop; 01-16-2011 at 11:37 AM.

  10. #10
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    How much code did you write before pressing "compile"?

    Never write more code than you can deal with if the compiler decides to tell you that your latest edit completely sucks.

    And in other news, what is using namespace::std; supposed to mean?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sipher View Post
    o_O ... Holy Mother Of Jesus Christ!!! ... O_o
    MC Hammer said it best... "Can't touch this..." ... That's a LOT of code for something that can be done in about 150 lines in C....

  12. #12
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    I've got used to CodeBlocks' syntax highlighting and i can't understand a damn thing. Better had posted it without highlighting.
    Devoted my life to programming...

  13. #13
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Exclamation Headers

    Update!!: Here the headers..

    AND THANKS THIS IS MY FIRST TIME HERE
    Attached Files Attached Files

  14. #14
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    So have you got rid of some errors?

    Or got some new errors?

    Regardless, you need to update us with what you're seeing.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  15. #15
    Registered User
    Join Date
    Jan 2011
    Posts
    4
    the problem is that i do NOT UNDERSTAND "MYSTRING"! oh my lord im depress haha and still the 7 errors in the COMPLETE PROGRAM
    Last edited by christianpr69; 01-16-2011 at 01:25 PM.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you check what is wrong with this code
    By Ron in forum C++ Programming
    Replies: 4
    Last Post: 08-01-2008, 11:59 PM
  2. Classes
    By Ron in forum C++ Programming
    Replies: 9
    Last Post: 08-01-2008, 12:11 PM
  3. problem in mystring class
    By manav in forum C++ Programming
    Replies: 27
    Last Post: 04-10-2008, 11:34 AM
  4. String class problem
    By Front242 in forum C++ Programming
    Replies: 8
    Last Post: 08-17-2007, 09:18 AM
  5. Replies: 3
    Last Post: 12-03-2001, 01:45 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