Monday, May 24, 2010

Why are you so good in turbo c?

can you tell me how to improve coding? i'm having difficulty in our computer class...

Why are you so good in turbo c?
C/C++ is very interesting language, what u need is just create ur interest in it and u will automatically start doing better in C.
Reply:Buy books. Also, find and look through other people's source code. The fun thing about programming is that there are several ways to do a certain task. You may find some programming shortcuts you never thought of, and you may find some useful procedures that you can use in your own programs. Don't just look for libraries - get and read the source code.





Tips:


1) Just remember that on any tests, the teacher isn't going to ask you to write a program that uses some C function you never heard of. Keep a list of C functions that you were taught.


2) Write out pseudo-code first. Break a program down into several parts. Worry about variables and complex loops later. If you're going to use complex calculations with nested loops, just write down the pseudo-code for 1 iteration of the loop. Get the algorithm down right, and then worry about looping. Determine which C functions you will need (from your list) to make the program work.


3) Don't worry about messy, long code on your first attempt. If you can write out 6 lines of code faster than 3 more efficient lines, then do it. Get the program working and then optimize later.


4) Do you know how to type? I mean, well? :)


You can be like me and tpye ta 300 wrods pir minetu.


5) You can't cheat on a programming test. Unless you sneak into the teacher's office and steal the test paper beforehand.....
Reply:If you want C lessons from me by e-mail and get help from me whenever you want, send me your email and your questions.
Reply:You need to pratice out of class, you need to read up on stuff out of class. Don't just stick to the syllabus - read everything you can get your hands on. Yes, it'll turn you into a geek, but that's a good thing: geeks are known for their intelligence after all!





Rawlyn.

verbena

No comments:

Post a Comment