If you want to be a great programmer you must follow some rules. Some most essential facts for programming is :
** Solv problems which you found interesting at first later you can solve hard problems by using the techniques of easier one.
*** Everyday do coding at least 4 hours; and try to do as many problem as u can. It doesnt matter u got WAs ; Actually getting WA is the key to learning . So find the fault of ur code and make critical input by analysing the problem carefully. IF u can solv by one submsisson then thats awesome so try to find fault before submitting, more u find fault in wa code more u can ac it in 1 shot.
** Learn STL and all avilable function of useful headers.
** Use macros ocassonaky for repetarion of anything.
**Use meaningful variable name.
**Donot use unnecessary size for array or any extra variable. It can cross Memory limit.
** Dont try to use goto function.
** Use #define for many arrays
*** Use internet for learning algorithm or math rules.
** U can also use this instead of return o; in the end of the code ex:
int main()
{
cout<<"hello\n";
system("pause");
return EXIT_SUCCESS;
}
this is useful in dev or other non MSc++ compilers
*** Learn to debug
** Use modeuler approach for big codes
** MOST OF ALL practice more and more ; solv easy code regularly and solv a difficult one too by studying analysing in some days ; ITs a worth if u solv it by a week or several weeks , because solving a diffficult one it boost ur skill 50 times than a easier one.
No comments:
Post a Comment