Announcements

Forum: Programming Book and Product Reviews

  1. Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595

    Forum Rules FAQ

    If you're reading these, it's probably because you haven't taken the time to read the full Forum guidelines or the Homework Policy.

    Thank goodness Salem has saved the day by boiling down the biggest problems people have on these forums into 4 easy questions:


    Q: Can I delete my posts / Can I request that posts are deleted when my question is answered?
    A: In general, no.

    The forum is a shared learning environment. A free-for-all on post deletion would mean whole threads consisting of meaningless isolated posts with no consistent narrative.

    Q: Will my posts be found by other students / tutors?
    A: Almost certainly. Many forum regulars often search posted code to detect copy/paste programmers trying to pass off other peoples work as their own. If you "found" your code on the net, then so can everyone else.

    Q: What about other people copying my own work?
    A: If you publish first (and can prove it later by logging in in front of your tutor), you shouldn't have any problem so long as seeking forum help was within the terms of the assignment. Copiers have a much harder time explaining their actions.

    Q: How should I act on the forums?
    A: Be Nice.
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  2. Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    974

    Posting code? Read this first!

    (This was originally posted as a thread by biosx. Thanks biosx. I've made it an announcement so everyone can see it)

    This is more addressed to the newer people of this forum, but I think it would be a good refresher for some.

    USE CODE TAGS!!!

    What are code tags?
    They are HTML-Like tags that you can insert into your post and create a specially formatted box for source code.

    What are so special about these things?
    For one, they help show where you code begins and ends. Plus it doesn't mess with your spacing or indents (a typical aesthetic in programming).

    Why do you care so much?
    I love talking on these forums and giving and receiving help. However, when people are communicating code and there is no indentation and lousy spacing, code is super-hard to read.

    How do I use code tags?
    Well if you have any experience with HTML it is fairly simple to use. A tag has a beginning and ending. A beginning tag looks like this: [tag] and an ending tag looks like this: [/tag] . The tag name for the code tag is simple, it is "code". So to begin a code tag, type the following: [code] . Then type all your code or copy and paste, whatever you want. When you are done, use the closing tag which uses the same tag name but with a forward slash to denote a closed tag: [/code] .


    Example of nicely formatted code (with code tags):
    Code:
    int Stuff::save(Stuff *sPtr)
    {
       ofstream outfile("Outfile.txt");
    
       if( !outfile )
       {
          cerr << "Couldn't open file" << endl;
          return 1;
       }
    
       outfile << sPtr->string << endl << sPtr->stringTwo << endl << sPtr->num << endl;
    
       outfile.close();  // I don't trust destructors
    
       return 0;
    }
    
    int main()
    {
       Stuff stuffObject;
    
       strcpy(stuffObject.string, "Hello");
       strcpy(stuffObject.stringTwo, "Yo");
       stuffObject.num = 10;
    
       stuffObject.save(&stuffObject);
    
       return 0;
    }
    An example of dirty, ugly code (without code tags):
    int Stuff::save(Stuff *sPtr)
    {
    ofstream outfile("Outfile.txt");

    if( !outfile )
    {
    cerr << "Couldn't open file" << endl;
    return 1;
    }

    outfile << sPtr->string << endl
    << sPtr->stringTwo << endl
    << sPtr->num << endl;

    outfile.close(); // I don't trust destructors

    return 0;
    }

    int main()
    {
    Stuff stuffObject;

    strcpy(stuffObject.string, "Hello");
    strcpy(stuffObject.stringTwo, "Yo");
    stuffObject.num = 10;

    stuffObject.save(&stuffObject);

    return 0;
    }


    See the difference?

    Sorry, I had to get this off my chest

  3. Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595

    Full Forum Guidelines. Read before posting

    Welcome to the Message Boards at Cprogramming.com
    <p>
    These boards are intended to help with problems, allow individuals to collaborate on projects, to answer questions, and generally communicate and debate, especially in relation to programming in C or C++. Before you ask a question, or post on these boards, please observe the following guidelines:
    <p>
    1. Remember this is a public forum. See the Homework Policy for more details about policies on post deletion etc.
    <p>
    2. There are many tutorials already made by the webmaster and moderators at http://www.cprogramming.com/tutorial.html. There is also a board FAQ, which contains answers to many commonly asked questions. For other common questions please consult the FAQ Board, and for questions concerning the board itself, like how do I post, what is Private Messaging etc., checkout the vBulletin FAQ.
    <p>
    3. Please follow the forum structure when posting. Post threads on the board best suited for the topic. Please do not cross post (i.e. post the same question on multiple boards). Do not bump threads. (Bumping: Posting messages on threads to move them up the list or to post on a thread that has been inactive for two weeks or longer).
    <p>
    4. Don't ask people to do all your work for you. It is especially discouraged to request completed Tests, Quizzes, and Assignments, or graded work without permission from the instructor. However, this board has no way of policing whether people are asking for help on graded assignment, and we can accept no responsibility for it happening. Again, see the Homework Policy for more details.
    <p>
    5. Please be careful of your language and content. Keep everything suitable for children, or it will be edited. Do not do things such as * out certain letters, or purposely misspell profanity to bypass filters. This board is a PG-13 environment. The moderators reserve the right to remove or close any thread that they deem to be inappropriate.
    <p>
    6. Messages relating to cracking, (erroneously called "hacking" by many), copyright violations, or other illegal activities will be deleted. Due to the overlapping boundaries of code with malicious intent, and other legitimate uses of it, the moderators will assess each potential infraction on a case by case basis.
    <p>
    7. Please construct posts with content that furthers the community or holds some merit. Messages posted solely to increase post counts, SPAM, and pointless one-liner posts are discouraged. Solicitation of any product without the consent of the Administration is forbidden. Do not post requests for clicks on referrer links of any kind. This includes indirect solicitation such as linking to a website whose purpose, in whole or in part, is such solicitation. Advertising for programming groups and jobs is allowed only on the recruitment board. (Please note the Recruitment Board Rules.) Anyone with questions about this policy, or who wants permission to post something of this nature, may PM me.
    <p>
    8. Do not flame/troll. Messages whose intent is to "Flame," "Troll," or purposely insult or incite another person, or any portion of a post that "flames" will be deleted.
    <p>
    9. Users are allowed only one account unless they are given special permission to hold multiple accounts. Users may not share their account or password with others.
    <p>
    10. Moderators have been granted the right to use their best judgement in the pursuit of community prosperity and peaceful operation. They are permitted to police posts that do not directly infringe the technicalities of a Rule, yet fall outside the intended spirit of them. Also note; The administration reserves the right to modify these guidelines and rules, along with the terms and conditions of use for these forums, at any time, without notification.
    <p>
    11. Be Nice.

    <p> <p>
    Tips for Efficient and Successful Posting
    <p>
    1. Don't use all caps.
    <p>
    2. Use descriptive subject lines. Do not put URGENT!, or NEED HELP NOW, etc. in your title; it will not make people look at it any faster. Doing this makes many old time helpers on this board not look at the post at all.
    <p>
    3. When posting code, do not post your entire program if you only need help with one function. Post as little as possible. People are much more likely to read small amounts of code and help you, than they are to read a hundred lines of code.
    <p>
    4. Use code tags whenever you are posting code more than a line or two in length. More information on code tags can be found on the sticky on top of all forums (except the General Discussion board).
    <p>
    5. For maximum response results, try to Ask Questions to Smart Way.
    <p> <p>
    A list of who our moderators are may be found here.
    <p>
    If you have any questions please feel free to PM or e-mail me at kermi3@cprogramming.com .
    <p>
    Thank you,
    Kermi3
    Lead Moderator

  4. Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595

    Homework

    Homework Policy:

    The purpose of these board is not for other people to do your homework for you. Try things out work on your own, homework has a purpose. If you still have trouble with a specific piece of code or concept please feel free to ask. But please do not ask people to do your entire homework for you, it simply annoys people most of the time.

    For an example check out this thread written by Prelude. Thanks Prelude.

    If you are looking for someone to do an entire problem for you, we recommend that you use the site's Ask an Expert service. Please note: We strongly discourage people from cheating. It is there for personal and non-graded problems that are not answered on the message boards.

    Please note that this is a public forum. Posts that include parts of assignments are free for anyone to see. It is board policy to encourage the sharing of information and to help people learn to program. Therefore, we avoid deleting posts. If your question is specific to a certain assignment, be aware that it will be visible to the public, and it is our policy NOT to delete posts. It is possible your work may be copied by others.

    If you have any questions about what is approprate, or anything else, please E-mail or PM me and I'll be happy to answer them.

    Thank you

    Kermi3
    Lead Moderator
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.


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