I’ve been starting to work my way through C++ Timesaving Techniques for Dummies.
I’m a little reluctant to post publically out of respect of copyright.
I’m digesting Technique 2 Using Abrstraction to Extend Functionality and I start getting compiler warnings and the program crashes…
He’s using some C library functions that are allowed but not recommended.
To be fair, he’s trying to keep the code simple to demonstrate abstraction and virtual functions. The issue appears with the gets command in Linux and g++
Regardless I learned something new insofar as to what not to do….. It just makes me uneasy studying code that is considered bad practice in C++ while trying to learn C++
I ran across this link that I found interesting.
Things to Avoid in C/C++ — gets() , Part 1
-
Archives
- April 2023
- November 2017
- April 2017
- March 2017
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- August 2015
- May 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- June 2014
- April 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- July 2013
- June 2013
- May 2013
- April 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- October 2011
- July 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- April 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
-
Meta