CS110 C++ Programming

posted in: CS, Undergraduate | 0

* [http://www.cplusplus.com/doc/tutorial Here] is a great C/C++ tutorial.
* [http://www.thegeekstuff.com/2012/08/gprof-tutorial/ GPROF Tutorial – How to use Linux GNU GCC Profiling Tool]


*Clean code deveopment: http://lumiera.org/project/background/CleanCodeDevelopment.html

#pragma warning(disable:4996)


# Right-click on your project in the Solution Explorer.
# Click Properties at the bottom of the drop-down menu.
# At the top left of the Properties Pages, select All Configurations from the drop-down menu.
# Open the C/C++ tree and select Precompiled Headers
# Precompiled Header: Select Use (/Yu)
# Fill in the Precompiled Header File field. Standard is stdafx.h
# Click Okay
# If you do not have stdafx.h in your Header Files put it there. Edit it to #include all the headers you want precompiled.
# Put a file named stdafx.cpp into your project. Put #include “stdafx.h” at the top of it, and nothing else.
# Right-click on stdafx.cpp in Solution Explorer. Select Properties and All configurations again as in step 4 …
# but this time select Precompiled Header Create (/Yc). This will only bind to the one file stdafx.cpp.
# Put #include “stdafx.h” at the very top of all your source files. (Unix or cygwin users: find . -name “*.cpp” | xargs -n1 sed -i ‘1s/^/#include “stdafx.h”\n/’)
# Lucky 13. Cross your fingers and hit Build.

*[http://blog.ruofeidu.com/measure-execution-time-c-11/ DebugTimer: How to Measure Execution Time in C++ 11]

with vector
for (const auto& img : imgs) {

* [http://phoenix.goucher.edu/~kelliher/cs43/mar26.html Low-Level File I/O in C]








==Function List==





*[https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html Common Predefined C/C++ Macros]

Leave a Reply

Your email address will not be published. Required fields are marked *