Skip to main content

Posts

Showing posts from September, 2009

Basics

Introduction to C++ and differences between C Learning Objective To know differences between C and C++ Demonstrate the capability of programming in C++ Apply C++ syntax, New/Delete and Reference operations Resources Problem Sets Complete the following problem sets with in 2 hours Problem Set A 1. Write a simple ‘Hello, new world!’ program in C and CPP edited, compiled and running on your chosen development platform. Change the program to take a command line argument (or multiple command line arguments) and to say ‘Hello name!’ 2. Tabulate all the basic C/C++ types, eg. Char, int, float, double. Don’t forget the unsigned, signed, short, long etc. Write a simple C and C++ program to print out the sizes in bytes of each type on your system. 3. Find out on your system what the largest and smallest values are for the basic types above? Write a program in C and C++ to print out the Limits of each data type described in previous program. Problem Set B ...