C code need help???

This is a discussion on C code need help??? within the C Programming forums, part of the General Programming Boards category; Hello everyone ploggar .. I have a task that I must accomplish the task in one week is like this. ...

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    4

    C code need help???

    Hello everyone ploggar ..

    I have a task that I must accomplish the task in one week is like this.

    We want to create a long plank with the help of a number of smaller boards. there are three different thyper of boards, which has a length of 1.2 and 3 meters. there is an unlimited number of each type.

    I want to write a program that determines how many different ways you can achieve a plank of length n, 1 <n <24

    thanks / sven

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    How would you solve it on paper? You have to know how to do that before you can write a program that does it.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    4
    just to create a long plank with the help of a number of smaller boards.there are three different thyper of boards, which has a length of 1.2 and 3 meters.

    whire a C code for this.!!

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,616
    Saying the same thing twice is, at a point, annoying!! Do you mean you want us to build your code? That's not gonna happer!
    Devoted my life to programming...

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    4
    No but I just want to know how to start it

    thanks

  6. #6
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,616
    Here we help each other, but we must have some base code to see what you've tried so far and how we can help you. We need to know that you tried something, you know...
    Devoted my life to programming...

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I'd start with the 1.2 m board.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  8. #8
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    lol MK27

  9. #9
    Registered User
    Join Date
    Apr 2010
    Posts
    4
    Hi MK27

    Iam a biginner to program C , so could you help me thanks

  10. #10
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    First of all, don't use the "Report Post" feature to say hi to people. It sends an email to a lot of people, and is really annoying unless it's to report something real. There are big red letters in simple language telling you not to use it for anything else, so I don't know how you failed to understand that.

    Second, you've been told multiple times to tell us what you have done so far. Let me be clear - no one is going to write the code for you. Tell us how you would work the problem on paper - without a computer program. What steps would you take? Can you reduce that to a set of instructions? Can you convert those instructions into C code?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extended ASCII Characters in an RTF Control
    By JustMax in forum C Programming
    Replies: 18
    Last Post: 04-03-2009, 08:20 PM
  2. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 05:05 PM

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