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
Pointer arithmetic trickinessvishesh jain 3.1860 (43)2005-05-05 06:18:01
Goto vs. Higher-level control structuresSean 2.8679 (106)2005-05-03 16:23:45
match the out side world ideas to logical designinmady 2.7162 (74)2005-04-13 07:17:56
Avoid memory wastageArthi 2.7712 (118)2005-04-06 04:47:31
Clever ways to avoid using if statementsA. Karthick Pandia Samy 3.4023 (87)2005-03-31 01:41:58
take advantage of array indiciesDave 2.7941 (102)2005-03-28 20:53:47
Fastest raise to power.Ezzetabi 3.0800 (100)2005-03-18 16:31:04
char *pa; and char a[];avdtech 2.6449 (276)2005-03-14 19:00:25
Indent your ProgramPrashant Sahay 2.4783 (23)2005-03-10 00:47:46
Turn off optimization when debuggingAshok Kumar 2.7083 (96)2005-03-09 00:45:58
Use the Appropriate VariablesMahesh Kumar.S 3.1111 (9)2005-03-07 21:58:10
Pointer arithmetic hackVivek Ahlawat 3.4634 (41)2005-03-07 02:09:20
Fast multiplicationJean-François Geyelin 3.4731 (167)2005-03-01 05:54:49
C++ new does not return 0 on failure!Are R. Svendsen 3.4956 (226)2005-02-27 21:38:01
beware of loop invarinatsIain 2.9029 (103)2005-02-27 14:43:27
Don't use strlen in a loop condition.anonytmouse 3.6461 (178)2005-02-10 20:34:50
String to integerMayur Avhad 2.9561 (205)2005-02-08 23:55:27
assert() yourself!Kevin Lam 3.7606 (284)2005-02-07 12:12:10
Member Functions are inline by default (C++)Ash 2.8684 (114)2005-02-05 17:19:23
clean up after cin (C++)Major_Small 3.3350 (206)2005-01-30 02:25:49
Use templates to prevent memory leakageKunal 2.8862 (123)2005-01-27 23:01:00
Write it out on paperrakesh kumar 3.3020 (202)2005-01-25 01:59:16
Do NOT always check for NULL! (C++)Kevin Lam 3.0308 (130)2005-01-24 16:44:13
Commenting out code with the preprocessorWebmaster 2.8318 (107)2005-01-24 14:16:39
Use <constant> == <value>Webmaster 2.9208 (101)2005-01-24 06:53:34
Turn on all compiler warningsMaragato 2.9358 (109)2005-01-19 20:44:14
Test pieces of your code earlyHardi Pertel 3.0522 (134)2005-01-17 11:14:06
Don't use fflush(stdin)Shakti 2.8496 (133)2005-01-15 03:58:36
Put braces around if statement code, part 2PING 2.5368 (95)2005-01-14 21:11:28
Give Proper Names to Your VariablesMaragato 1.7143 (7)2005-01-13 19:14:51
Doing calculationsLinuxguru 2.7324 (142)2005-01-11 03:52:50
Converting numbers to StringsWebmaster 3.5299 (234)2005-01-02 11:20:35
Comment!VOX 2.7010 (97)2004-12-31 10:43:03
Use multiple filesThantos 2.8362 (116)2004-12-30 18:57:38
Make backupsVox 3.1282 (117)2004-12-30 07:58:06
Reuse Old CodeTimofei Gerasimov 3.0254 (118)2004-12-29 00:00:00
getchar() returns an intRob 3.1024 (127)2004-12-29 00:00:00
Use Good Variable And Function Namesprog-bman 3.1250 (120)2004-12-29 00:00:00
Use STL containers instead of C arraysSang-drax 3.0833 (108)2004-12-29 00:00:00
Executing system commandsSean 2.9702 (168)2004-12-29 00:00:00
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
think before you codeTimofei Gerasimov 3.3660 (153)2004-12-29 00:00:00
Get a copy of the standardThantos 2.7600 (75)2004-12-28 00:00:00
Avoid void main()Webmaster 3.4049 (247)2004-12-28 00:00:00
gets() is bad.Sean 3.0602 (133)2004-12-28 00:00:00
Next 30
Previous 30


Add a tip!



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