Help!!

This is a discussion on Help!! within the C Programming forums, part of the General Programming Boards category; Hi I'm a student who is really new in C programming.. I will need some help in my project..does any ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Help!!

    Hi I'm a student who is really new in C programming..

    I will need some help in my project..does any of you know how to do a program like a menu where users can select a few ranges of topics.. examples like

    Welcome!!!
    (1) to calculate the area of a circle,please click here
    (2)to calculate the of the cone, please click here.. and so on..

    I kind of need a references to get started off. And is it also possible to have a time/date and year stated on your executed project screen all the time and as well as moving title headings?? was really amazed with such stuff that can be done..

    i hope you guys can help and really thanks a lot..

  2. #2
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    On a side note, since you are starting out, do you have a C book you follow? If so, take a goosey at that and you may find the answers you need
    I'm just trying to be a better person - My Name Is Earl

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    6
    Quote Originally Posted by swgh
    On a side note, since you are starting out, do you have a C book you follow? If so, take a goosey at that and you may find the answers you need
    hmm yup i do have a few, but they seem really very basic to do a project..anyway do you have any good books to recommend? Heard that some of the enhancement tips like having a head title move across a screen and having the time display are not found on books but on the net.. is this true?

  5. #5
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    The internet does have some good C tutorials, but they move at a fast pace making it essential that you fully understand one page to the next, otherwise it is easy to get lost.

    When you are talking about moving the title across the screen, do you mean tab spacing?
    That is pretty staight forward.

    Code:
    printf("\t\tI AM A TITLE\n");
    The \t is an character escpae command like'\n' for new line
    I'm just trying to be a better person - My Name Is Earl

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    6
    Quote Originally Posted by swgh
    The internet does have some good C tutorials, but they move at a fast pace making it essential that you fully understand one page to the next, otherwise it is easy to get lost.

    When you are talking about moving the title across the screen, do you mean tab spacing?
    That is pretty staight forward.

    Code:
    printf("\t\tI AM A TITLE\n");
    The \t is an character escpae command like'\n' for new line
    oh pardon me for explaining to you unclearly, hmm well not meaning in tab or spacing with the space bar. It's like an animation or can i say a screen saver which automatically moves across the screen at a constant speed.

  7. #7
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    Thats quite an advanced thing to learn. I am a little confused... you stated this is your first project and are a newbie to C, so why would it ask you to do somthing from an intermidiate to an advanced course project if you are a beginner?

    If you want the line to move from left to right you could use a for loop combined with either the sleep() function and tabs. When the line moved to the end of the screen, reset the loop using a break statement. This is just one way you could do it
    I'm just trying to be a better person - My Name Is Earl

  8. #8
    Registered User
    Join Date
    Nov 2006
    Posts
    6
    Quote Originally Posted by swgh
    Thats quite an advanced thing to learn. I am a little confused... you stated this is your first project and are a newbie to C, so why would it ask you to do somthing from an intermidiate to an advanced course project if you are a beginner?

    If you want the line to move from left to right you could use a for loop combined with either the sleep() function and tabs. When the line moved to the end of the screen, reset the loop using a break statement. This is just one way you could do it
    well it was something that my teacher showed the class that really impress me and started making me wonder how such stuff could be program to enhance the project..anyway thanks for the statement, will take note of it..

  9. #9
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    One more major thing to learn as beginning programmer is to start small. C is in essence a small compact language, but does as I am sure your teacher has told you, have steep learning curve. If you attempt somthing out of your depth, you are likely to get annoyed that it doesnt work and discard the project.

    As you learn more and more things, implement them into projects / small programs you have already written and see what ajustments you can make to them. When you learn about pointers and references you will see what a powerful language C/C++ is. Keep at it and work hard, no matter how furstrating somthing seems in programming, there is almost always a solution. Good luck in your studys.
    I'm just trying to be a better person - My Name Is Earl

  10. #10
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Smile

    Quote Originally Posted by swgh
    One more major thing to learn as beginning programmer is to start small. C is in essence a small compact language, but does as I am sure your teacher has told you, have steep learning curve. If you attempt somthing out of your depth, you are likely to get annoyed that it doesnt work and discard the project.

    As you learn more and more things, implement them into projects / small programs you have already written and see what ajustments you can make to them. When you learn about pointers and references you will see what a powerful language C/C++ is. Keep at it and work hard, no matter how furstrating somthing seems in programming, there is almost always a solution. Good luck in your studys.

    Gesh thanks alot for that motivation boost.. Yup i agree it is frustrating at times but with the outcome of hardwork, good results chances are high.. anyway thanks!!

  11. #11
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >If you attempt somthing out of your depth, you are likely to get annoyed that it doesnt work and discard the project.
    I approve of daredevil's attitude because it promotes learning above and beyond coursework. That's how you become a great programmer instead of just another code monkey. However, he should be prepared to attempt something and then discard it entirely if it turns out to be too difficult at the time. Frustration is a part of the job. It's important to learn how to handle it, especially if you intend to become a professional (where frustration and confusion is a constant). Pros are regularly asked to do things they don't understand or have little experience with. Naturally you're going to be frustrated if you have to learn as you go.
    My best code is written with the delete key.

  12. #12
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I totally agree prelude, good sound advice as always
    I'm just trying to be a better person - My Name Is Earl

  13. #13
    Registered User
    Join Date
    Nov 2006
    Posts
    6
    well guys thanks a lot for the advises. Will take note along my learning journey.

  14. #14
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    . . . anyway do you have any good books to recommend?
    Sticky: C Book Recommendations
    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.

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