UMBC CS 201, Spring 99
UMBC CMSC 201 Spring '99 CSEE | 201 | 201 S'99 | 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 - Sunday, 21-Feb-1999 19:08:52 EST


CSEE | 201 | 201 S'99 | lectures | news | help