set path=(/net/special/jeffery/324/bin $path) setenv CPATH /net/special/jeffery/324 setenv LIBRARY_PATH /net/special/jeffery/324or (bourne-style shells):
export PATH=/net/special/jeffery/324/bin:$PATH export CPATH=/net/special/jeffery/324 export LIBRARY_PATH=/net/special/jeffery/324
short form | longer form |
---|---|
#include "uigui.h" int main() { WOpen("hw0"); DrawPoint(25, 25); Event(); } |
#include "uigui.h" int main() { Window win = Wopen("hw0"); WDrawPoint(win, 25, 25); WEvent(win); } |
procedure main() win := open("hw0","g") DrawPoint(win, 25, 25) Event(win) end
cd ~/324 gcc hw1.c -o hw1 -luigui -lz -lXpm -ljpeg -lGL -lGLU -lX11 -lm ./hw1 unicon hw1 ./hw1