I have used Google book search to find some of the best books in c++. Here are my collection. Nice book to start with your C++ learning and it should be one of the first book to start with. It covers all the basics about C++ in a very simple and easy way. Google book [...]
Many developers like me tend to write code in ANSI compilation till we managed to get our hands on Visual Studio 2005 where the default setting is Unicode compilation and so you may need to be using the _T() / TEXT like function and if you are aware of them your life could become hell. [...]
In the previous tutorial we explained how to do that in C#, now we will do that in C++. So, create a Win32 C++ Console Application. This tutorial will be similar to the tutorial for writing to file in c++, So, write this code int main(){ ifstream in; in.open("text.txt"); char line[256]; while(in.getline(line, 256)) cout << [...]
Trigraph is a sequence of three characters. The first two always are question marks “??”. Trigraphs are equivalent to some single characters. Here is a table from trigraphs and their equivalents Trigraph Equivalent ??! | ??< { ??> } ??/ \ ??’ ^ ??- ~ ??= # ??( [ ??) ] This can cause some [...]
In this article we will explain moving the pointer through an array. It’s simple but sometimes confusing. So try these simple examples in your unmanaged C++ project. Creating an array and assigning a pointer to it int arr[4];int *ptr = arr; //[*][ ][ ][ ] Points at the first element of the array When using [...]
In this post we explained writing in a file using the C# language. In this post we will explain how to do that in unmanaged C++. So, we are creating a C++ console application, you can use Dev C++ for compiling this code. Here is the code. int main(){ ofstream fw; fw.open("text.txt"); fw << "Some [...]
Very common programming practice is adding or subtracting an integer variable by 1. We know that adding 1 to variable is incrementing, and subtract 1 from variable is decrementing. It only works with integer values. Let us see some examples i++;i=i+1;i+=1; This three commands are all the same. It increments the variable i by 1. [...]