C Programming .... HELP

sapa2ler

Known Member
Senior Member
Jun 8, 2006
179
0
1,516
Hi all....

I need help to in C programming

i'm doing an assignment....and need assistance to finish it
 

jswong

Known Member
Senior Member
Dec 30, 2004
209
9
3,018
What sort of help do you want, bro?

C programming is not hard.. just keep in mind a few things

1) Keep track of the { and } curly brackets.. make sure they add up correctly, otherwise it'll result in some routines terminating incorrectly somewhere!

2) Be familiar with the conventions, like the WHILE, FOR, etc. conditions.. and also the logical & arithmetic operators. You can optimize loops or shorten program code if you know how to play with these in nested loops.

3) OOP is not so prioritized in C programming just yet.. but you can use structures to give a semblance of OOP. If you do C++, classes are much, much better to use than structures.

4) Keep your main program code neat and clean by whacking much of the routines into other .c or .cpp files, and declare stuff inside .h files. That way, your program will be modular in a way, and it's easier to follow the main() program flow.

I'm not exactly good at C and C++, just self-taught here and there and also learned it in college last time.. mainly used it for hardware interfacing, but I don't find it to be hard.