C, C++, and C#

TwitterFacebook
Get flash to fully experience Pearltrees
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?id=1043284392&answer=1046053421 This item was added on: 2003/02/23 For single characters converting to upper/lower case is simple, use the functions toupper() and tolower() included in ctype.h (or cctype in C++) For example:

FAQ > How can I convert a char/string to upper or lower case? - Cprogramming.com

http://developer.klocwork.com/klocwork-university/security-innovation/secure-coding

Security Innovation Courses | Klocwork Developer Network

Klocwork and Security Innovation have joined forces to make the Klocwork Developer Network the learning centre for software security assurance. Klocwork provides award winning code analysis tools that enable development teams to write secure software and Security Innovation is a leader in software assurance services and e-learning. Together we arm development teams with the knowledge and the tools to ensure their software is secure. Klocwork and Security Innovation help deliver software security assurance to your development team, learn more about Klocwork and Security Innovation services. Read the Secure Coding for C/C++ details below, or begin the course now! Module 1 – Introduction to Software Security

Mask (computing)

In computer science , a mask is data that is used for bitwise operations , particularly in a bit field . Using a mask, multiple bits in a byte, nibble , word (etc.) can be set either on, off or inverted from on to off (or vice versa) in a single bitwise operation. [ edit ] Common bitmask functions [ edit ] Masking bits to 1 To turn certain bits on, the bitwise OR operation can be used, following the principle that Y OR 1 = 1 and Y OR 0 = Y . Therefore, to make sure a bit is on, OR can be used with a 1 . http://en.wikipedia.org/wiki/Mask_(computing)
This is a list of operators in the C and C++ programming languages . All the operators listed exist in C++; the fourth column "Included in C", dictates whether an operator is also present in C. Note that C does not support operator overloading . When not overloaded, for the operators && , || , and , (the comma operator ), there is a sequence point after the evaluation of the first operand. C++ also contains the type conversion operators const_cast , static_cast , dynamic_cast , and reinterpret_cast . The formatting of these operators means that their precedence level is unimportant.

Operators in C and C++

http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
This has links to downloads of games with source code in C++ 0 AD is a cross-platform (Windows, Linux and Mac) historically-based strategy (ie war & economy) game set between 500 B.C. and 500 A.D. The project includes state-of-the-art 3D graphics, detailed artwork, sound, and a powerful custom-built game engine in C++ with JavaScript for scripting. The game is nearing alpha release (not quite beta) and is quite impressive. Tiled is a general purpose easy to use tile map editor and is free, built with the QT framework. It uses ah XML-based map format and also supports orthogonal and isometric maps.

C++ Games with Source Code

http://cplus.about.com/od/cgames/C_Games_with_Source_Code.htm
When working with arrays, we typically use the subscript operator ([]) to index specific elements of an array: However, consider the following IntList class, which has a member variable that is an array: Because the m_anList member variable is private, we can not access it directly from cMyList. This means we have no way to directly get or set values in the m_anList array.

9.8 — Overloading the subscript operator

http://www.learncpp.com/cpp-tutorial/98-overloading-the-subscript-operator/
http://www.cprogramming.com/begin.html Exactly How to Get Started with C/C++ Today Okay, let's cut to the chase--you want to learn to program in C/C++ and you want to know exactly what you should do, right now. If you're willing to spend a few dollars, I'd strongly recommend you buy my ebook, Jumping into C++ , which will take you from absolutely nothing to getting a full working environment, all the core C++ syntax, lots of tips on how to design your programs, sample code, practice problems, quizzes and advanced C++ class design stuff too.

How to Get Started with C++

C & C++

C++ provides the following classes to perform output and input of characters to/from files: ofstream: Stream class to write on files ifstream: Stream class to read from files fstream: Stream class to both read and write from/to files. These classes are derived directly or indirectly from the classes istream , and ostream . We have already used objects whose types were these classes: cin is an object of class istream and cout is an object of class ostream . Therefore, we have already been using classes that are related to our file streams. And in fact, we can use our file streams the same way we are already used to use cin and cout , with the only difference that we have to associate these streams with physical files. Let's see an example: http://www.cplusplus.com/doc/tutorial/files/

Input/Output with files

Next: Using the MMAB Class Up: C++ for Ocean Modeling Previous: Objects: Operators, and Overloading Templates and inheritance different things, but they derive from the same principle. The principle is that objects should behave in the same way as similar objects.

Object Templates and Inheritance

http://polar.ncep.noaa.gov/mmab/papers/tn185/node7.html
Daniel Plakosh, Software Engineering Institute [ vita ] Copyright © 2005 Pearson Education, Inc. C++ programmers have the option of using the standard std::string class defined in ISO/IEC 14882. The std::string generally protects against buffer overflow. Development Context String manipulation

C++ std::string

https://buildsecurityin.us-cert.gov/bsi/articles/knowledge/coding/295-BSI.html
The sample code below illustrates how to use the string::getline STL function in Visual C++. Required header Prototype

How to use the string::getline STL function in Visual C++

C++