DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: C++ help!!!

  1. #1
    Join Date
    Nov 2011
    Posts
    1

    C++ help!!!

    http://pastebin.com/En1c0ycZ
    http://pastebin.com/JEVcDxxz
    http://pastebin.com/FjXSq74f
    http://pastebin.com/E5UqDncY
    http://pastebin.com/ZkYpb768
    http://pastebin.com/YReyUpQW
    http://pastebin.com/148jXppg
    http://pastebin.com/PMbEnmYP
    http://pastebin.com/eXWzUpTE

    These are links to the entire project its 5 classes w/ header files and a main function however i am pretty sure the problem lies in the brick of code on this one:

    http://pastebin.com/6eSZykJC

    It's most likely a loop error, I believe.

    Thanks /tech/!!

  2. #2
    Join Date
    Dec 2007
    Posts
    401
    Please post (the relevant portion of) the code here, along with your question.

    Also, you need to be far more precise about your question. What error are you facing?

    Is it a compiler error? If so on which line in which file and what is the text of the compiler diagnostic?

    If it is a linker error, what is the error?

    Or is it that your program compiles and links, but does not produce the expected result? If so, what did you expect the result to be, and what instead is the actual result?

  3. #3
    Join Date
    Dec 2003
    Posts
    3,366
    it may not mattter now, since its a classic HW problem and its been a few days, but.... shouldnt it say

    if...
    totalCorrect[i]+=1; // the change is the "+= " -- you had =, so it was not doing a total

    else
    totalCorrect[i]+=0; //same thing, though pointless. Adding zero does nothing, so leave this line off, all it does is add clutter?


    That is all I see at a glance, though its a lot of code to work around without much of a hint about the problems.

  4. #4
    Join Date
    Nov 2011
    Location
    Newyork
    Posts
    8
    yet another question with no reply from the thread poster. I may be able to help if u kindly elaborate your question a bit more.
    Last edited by Hack; 11-30-2011 at 08:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center