Thread: In need for some help

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    6

    In need for some help

    Hey (:
    Am kind off new to programming and having some troubles in it !
    Can any1 help me plz? Am working on an assignment and am having a bit of a problem finishing it! I only have few questions! If any one can help i'll be more than thankful! If so plz msg me

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    100
    Tima92, basically you usually post the question on the thread itself when using a forum like this. You'll want to reply on this thread and copy and paste your code in the reply, surround it with code tags ({code} <put your actual code here> {/code}), and tell us what your questions are. (Except instead of using "{" and "}", use "[" and "]" - the site will mess with my text if I put them in normally.) If your program is really tiny, like what you would have assigned to you in a freshman-level course, you can usually just post the whole thing. Otherwise figure out which parts of it are giving you trouble and just post those parts. And if your code is posted in more than one part, put the code tags around each part.

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    100
    An example, by the way, would be the following:

    Hey, whenever I run this program, it freezes up and crashes. The whole program isn't very big, but this didn't start happening until I added this class to it:

    Code:
    #include <string>
    
    class Pieces
    {
         public:
         Pieces();
    
         private:
         Pieces pieces[5];
         int size;
         std::string color;
    };
    Code:
    Pieces::Pieces()
    {
         size = 4;
         color = "white";
    }
    I know the class isn't really meaningful right now - I'm still building on it - but I want this issue knocked out of the way first. Again this class seems to be what's bringing down the program, and I think it may have something to do with the array in it. What's going wrong? Thanks!

Popular pages Recent additions subscribe to a feed