Month: September 2008

Transitioning from C to C++: A Quick Guide for Novice Programmers

As we begin the study of C++ and object oriented programming, a few comments are in order to help you get started. Since the field of object oriented programming is probably new to you, you will find that there is a significant amount of new terminology for you to grasp. This is true of any new endeavor and you should be warned not to be intimidated by all of the new concepts.

Read More

Working with Namespaces in C#

Every application begins with a namespace in C# .NET that has the same name as the project. Of course, you can change the namespace to anything you like in order to maintain compatibility with other projects. For example we declared namespace Mycplus.CSharpBasics while taking an Overview of C#. We can write the whole application with in one namespace or we can declare multiple namespaces as needed in our project. The general syntax of declaring a namespace is

Read More

Scientific Calculator Program

This graphical scientific calculator purely written in C programming language. It uses small functions to draw buttons on the screen and perform scientific operations like conversion, logarithm, and other operations. Every operation can be performed using the mouse buttons as well as keyboard. It can perform almost all the functions shown on the screen except few functions which will be implemented in the next version of this calculator code.

Read More

Predefined Datatypes in C#

Here we will see the data types available in C#. Before examining the data types in C#, first we will try to understand the C# have two categories of data types. Value types and Reference types. Value type data type is that which stores the value directly in the memory. Its just like int, float and double. But reference types variables only store the reference of the memory where the actual value is.

Read More