This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Low bandwidth (accessible over internet) Scriptable Simple Can be very powerful (faster than lots of clicking) Lower level interface Advantages portable stable easy to code Still there today. Communicating With Commands command argument1 argument2 e.g. gcc -Wall -ansi -pedantic a1.c vi a1.c dir format c: Command line arguments in C int main( int argc, char **argv ) argc number of arguments argv array of arguments (of size argc) each argument is char * (I.e. a string) Gotcha! argv is the name of your program! argv is the rst real argument Example 16-arguments.c Sorting Sorting in place Basic operations: compare two elements (which is larger) swap exchange 2 elements...
View Full Document
This note was uploaded on 04/17/2011 for the course CIS 1500 taught by Professor Kramer during the Spring '06 term at University of Guelph.
- Spring '06