Пример #1
0
int main(int argc, char *argv[])
{
	IntList myList, myOtherList;

	myList = getIntList(stdin);
	// showIntList(myList); // comment out this...
	assert(IntListOK(myList));

	myOtherList = IntListSortedCopy(myList);
	// printf("Sorted:\n"); // ...and this for Task 2
	showIntList(myOtherList);
	assert(IntListOK(myOtherList));
	assert(IntListIsSorted(myOtherList));

	return 0;
}
Пример #2
0
int main(int argc, char *argv[])
{
	IntList myList, myOtherList = NULL;

	myList = getIntList(stdin);
	// showIntList(myList);
	// assert(IntListOK(myList));

	myOtherList = IntListSortedCopy(myList);
	// // printf("Info:\n");
	// // // printf("\tsize:%d", myOtherList->size);

	// printf("Sorted:\n");
	showIntList(myOtherList);
	// assert(IntListOK(myOtherList));
	// assert(IntListIsSorted(myOtherList));

	return 0;
}
Пример #3
0
void testTypedef()
{
    getIntList()[0]; // Warning
}