Thread: Homework, please help!

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Homework, please help!

    Hi, i need to school some C code. Requirements are:
    Use in code some Functions with parameters, pointers, strucutres and global and private variables.

    Dont you have some code for it?
    Thank You

  2. #2
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    Please read the homework policies here. If you don't do your homework, you will not learn to program properly. Maybe you could make something like a linked list implementation? That is pointers, structs, memory allocation, functions and globals! If you try something and have a problem, feel free to post your questions here.
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Look here.

    Or, more bluntly, do your own homework.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by FandaR
    Hi, i need to school some C code.
    So, you are trying to write a program that performs machine learning?

    Quote Originally Posted by FandaR
    Dont you have some code for it?
    Maybe. I will be hard pressed to find code that I have written that uses global variables, though I presume that by "private variables" you mean "local variables".

    Anyway, read about the homework policy.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Homework, please help! - C
    "I havent time to do it. "

    But you DO have time to go round trolling the net trying to find other people to sponge off?

    Most people could have finished the code in less time that you've already wasted.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 04:39 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 04:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 03:16 PM
  4. Homework
    By kermi3 in forum Windows Programming
    Replies: 5
    Last Post: 09-15-2001, 11:48 AM
  5. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 01:26 PM