C Programming

The GNU C Library

Wikibooks C Programming

Memory : text (code), stack, heap — static, automatic

Where is Data?

From keyboard? From file?

make a textfile 1

fopen

fprintf -ascii

fclose

Flow

malloc → fopen → fscanf → (processing) → fwrite

Simple program 1 ← RVI

Red (Red.hdr) NIR (NIR.hdr)

Read – Calc -Write

histogram sample 1

albedo sample

How to compile

gcc -o assignment1 assignment1.c

 

+ OpenGL

+CUDA