Like Tree2Likes
  • 2 Post By manasij7479

In need for some help

This is a discussion on In need for some help within the C++ Programming forums, part of the General Programming Boards category; Hey (: Am kind off new to programming and having some troubles in it ! Can any1 help me plz? ...

  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
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,500
    Salem and stahta01 like this.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  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

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