UMBC CS 201, Fall 98
UMBC CMSC 201 & 201H Fall '98 CSEE | 201 | 201 F'98 | lectures | news | help

Compiling the pieces

The main program and the implementations are compiled separately and linked together to make the a.out file using these UNIX commands. lassie% ls big.c findstats.c stats.c stats.h lassie% lassie% cc -c findstats.c lassie% cc -c stats.c lassie% lassie% ls big.c findstats.c findstats.o stats.c stats.h stats.o lassie% lassie% cc findstats.o stats.o lassie% ls a.out findstats.c stats.c stats.o big.c findstats.o stats.h lassie% lassie% a.out Enter first number: 30 Enter second number: 60 The sum of 30 and 60 is: 90 The smaller of 30 and 60 is: 30 The larger of 30 and 60 is: 60 The average of 30 and 60 is: 45.000000 The distance between 30 and 60 is: 30 That's all folks. lassie%
Last modified - Monday, 28-Sep-1998 18:56:51 EDT


CSEE | 201 | 201 F'98 | lectures | news | help