C Programming

Dr. Tom V. Mathew

12 October 2006

ANSCI-C

Dynamic arrays

  1. Intergear arrays iarray.h iarray.c iarray_test.c
  2. Struct contains an int array asarray.h asarray.c asmain.c

C++

Linked List

This linked list will use a class as a elements and each class has an element which is another class. linked-list.cpp

Another example of little more complex linked list. linked-list.cpp

Notes

Notes

To get the current file name and current line number, usaually to put in the error messages

if(check)
{
	printf("\n\nError:Check-File[%s]-Line-(%d)\n\n",__FILE__,__LINE__);
	fflush(stdout);exit(0);
}



Prof. Tom V. Mathew 2006-10-12