Find   


An Affiliate of AIHorizon




Welcome to Cprogramming.com's repository or tips for programming in C and C++. Peruse the archives or add your own tips for others to use!

Sort by clicking on any of the headers.

TipAuthorRating (votes) Added
Always check for NULL (in C)Webmaster 2.8477 (151)2004-12-29 00:00:00
Always write if statements with bracesWebmaster 3.7333 (270)2004-12-29 00:00:00
assert() yourself!Kevin Lam 3.7606 (284)2005-02-07 12:12:10
Avoid memory wastageArthi 2.7712 (118)2005-04-06 04:47:31
Avoid void main()Webmaster 3.4049 (247)2004-12-28 00:00:00
backups using CVS save you lot of spaceLeif 3.5000 (34)2005-08-07 04:43:19
Be careful about array size when u are using strcpBhushan Verma 3.3226 (93)2005-10-19 03:17:26
Be organisedProphet-Ex 3.6404 (89)2005-07-04 03:59:14
beware of loop invarinatsIain 2.9029 (103)2005-02-27 14:43:27
C++ new does not return 0 on failure!Are R. Svendsen 3.4956 (226)2005-02-27 21:38:01
char *pa; and char a[];avdtech 2.6449 (276)2005-03-14 19:00:25
clean up after cin (C++)Major_Small 3.3350 (206)2005-01-30 02:25:49
Clever ways to avoid using if statementsA. Karthick Pandia Samy 3.4023 (87)2005-03-31 01:41:58
Code Optimization TipsBasker Swaminathan 3.2250 (160)2005-08-26 01:41:22
Comment!VOX 2.7010 (97)2004-12-31 10:43:03
Commenting out code with the preprocessorWebmaster 2.8318 (107)2005-01-24 14:16:39
Common Optimization TipsTravis Fischer 3.4961 (256)2005-05-14 11:45:38
Comparisons in C\C++Nikitas Angelinas 3.6687 (323)2005-12-09 03:44:11
compiler tipJulian Sutherland 3.0435 (138)2005-11-18 02:09:13
Converting numbers to StringsWebmaster 3.5299 (234)2005-01-02 11:20:35
Do NOT always check for NULL! (C++)Kevin Lam 3.0308 (130)2005-01-24 16:44:13
Doing calculationsLinuxguru 2.7324 (142)2005-01-11 03:52:50
Don't use fflush(stdin)Shakti 2.8496 (133)2005-01-15 03:58:36
Don't use strlen in a loop condition.anonytmouse 3.6461 (178)2005-02-10 20:34:50
Dont't use scanf() when reading sentencesRomnico 3.5180 (139)2005-07-05 21:56:42
Effective Modularity in ProgrammingSharma PCS 3.4342 (76)2005-10-20 07:19:58
Executing system commandsSean 2.9702 (168)2004-12-29 00:00:00
Fast multiplicationJean-François Geyelin 3.4731 (167)2005-03-01 05:54:49
Fastest raise to power.Ezzetabi 3.0800 (100)2005-03-18 16:31:04
Next 30


Add a tip!



-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.