![]() |
|
[C] Common C++ Mistakes You Need to Avoid - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Common C++ Mistakes You Need to Avoid (/showthread.php?tid=4735615) |
Common C++ Mistakes You Need to Avoid - Warren Buffett - Mar 17, 2015 Here are a few mistakes programmers make. Some can be dangerous as a compiler won't detect them. Give this a read. http://www.learncpp.com/cpp-programming/eight-c-programming-mistakes-the-compiler-wont-catch/ Also, yes I know the learncpp tutorial online has biased views towards how they teach but the link above shouldn't really matter. * - Deadbyte - Mar 18, 2015 I find this to be very true. Thanks for sharing mate. * - lilmarty10 - Mar 18, 2015 These seem like common sense that any C++ programmer should know. Thanks for the share regardless, keep it up. 🤝 * - webdev77 - Mar 18, 2015 (Mar 18, 2015 12:19 PM)lilmarty10 Wrote: These seem like common sense that any C++ programmer should know. Thanks for the share regardless, keep it up. 🤝 I kind of thought the same thing and I'm no expert on C/C++. A lot of this is basic syntax and type conversion that applies to any modern language. * - 0xDEAD10CC - Mar 19, 2015 This is the best list I've come across personally -> http://www.cprogramming.com/tutorial/common.html * - RTLZER0 - Mar 19, 2015 One stupid mistake that makes me cringe for hours is the division operator. I tend to mistake it for \ at times. |