From noplug at uselesstree.net Fri Dec 16 08:18:03 2005 From: noplug at uselesstree.net (Jeffrey Froman) Date: Fri Dec 16 08:18:08 2005 Subject: [Noplug] Last Meeting Notes Message-ID: <200512160818.03766.noplug@uselesstree.net> Hi Everyone, I was unfortunately unable to attend the last NOPLUG meeting. If anyone feels like writing a sentence or two about the evening's events, please send it my way so it can be added to the Meeting Log on the web site. Thank you, Jeffrey -- Linux: because a PC is a terrible thing to waste -- ksh@cis.ufl.edu put this on Tshirts in '93 From rpage at olympus.net Fri Dec 16 09:50:15 2005 From: rpage at olympus.net (Rod Page) Date: Fri Dec 16 15:41:45 2005 Subject: [Noplug] Last Meeting Notes In-Reply-To: <200512160818.03766.noplug@uselesstree.net> References: <200512160818.03766.noplug@uselesstree.net> Message-ID: <43A2FE57.4080602@olympus.net> Hi Jeffrey The discussion centered on problems with wifi and Linux. Duncan Dupree demonstrated a combination access point and hot spot detector. I did a short presentation on a first lesson in C based on a program to read data in from a file. This is from an idea I have to teach a course in C from studying a succession of 10 programs. This sort of developed from my own review of C and attempting to improve my own skills. I'm attaching the files I used and if we could put them on the website people could play with them on their own computer if they were further interested. We don't have to do this if it's too much trouble. I won't continue these lessons with this group but it was what I've been working on lately and the group agreed to be subjects for a little teaching experiment. Thanks, Rod Jeffrey Froman wrote: >Hi Everyone, > >I was unfortunately unable to attend the last NOPLUG meeting. If anyone feels >like writing a sentence or two about the evening's events, please send it my >way so it can be added to the Meeting Log on the web site. > >Thank you, >Jeffrey > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Ten.jpg Type: image/jpeg Size: 62520 bytes Desc: not available Url : http://lists.olympus.net/pipermail/noplug/attachments/20051216/a718c0f5/Ten.jpg -------------- next part -------------- 1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 80 90 100 -------------- next part -------------- A non-text attachment was scrubbed... Name: reader Type: application/octet-stream Size: 12703 bytes Desc: not available Url : http://lists.olympus.net/pipermail/noplug/attachments/20051216/a718c0f5/reader.obj -------------- next part -------------- /* this is a comment, within comment delimitors */ /* the following lines include library function declarations */ #include #include #include /* we expect no more than MAX data in the file */ #define MAX 1000 /* declare our variables */ int n, i; float data[MAX]; FILE *fptr; main (int argc, char *argv[]) { if ((fptr = fopen (argv[1], "r")) == NULL) { printf ("No such file \n"); exit (0); } n = 0; do { fscanf (fptr, "%f", &data[n]); n = n + 1; } while (!feof (fptr)); /* we overcounted by incrementing n before testing for eof */ /* but we're only testing i #include #include /* we expect no more than MAX data in the file */ #define MAX 1000 /* declare our variables */ int n,i; float data[MAX], ave, std; FILE *fptr; main(int argc, char *argv[]) { if((fptr=fopen(argv[1],"r"))==NULL){ printf("No such file \n"); exit(0); } n=0; do{ fscanf(fptr,"%f", &data[n]); n=n+1; }while(!feof(fptr)); ave=0.0; std=0.0; for(i=0;i #include #include /* we expect no more than MAX data in the file */ #define MAX 1000 /* declare our variables */ int n, i; float data[MAX]; FILE *fptr; main (int argc, char *argv[]) { if ((fptr = fopen (argv[1], "r")) == NULL) { printf ("No such file \n"); exit (0); } n = 0; do { fscanf (fptr, "%f", &data[n]); n = n + 1; } while (!feof (fptr)); /* we overcounted by incrementing n before testing for eof */ /* but we are going to increment to i #include #include /* we expect no more than MAX data in the file */ #define MAX 1000 /* declare our variables */ int n,i; float data[MAX], ave, std; FILE *fptr; main(int argc, char *argv[]) { if((fptr=fopen(argv[1],"r"))==NULL){ printf("No such file \n"); exit(0); } n=0; do{ fscanf(fptr,"%f", &data[n]); n=n+1; }while(!feof(fptr)); ave=0.0; std=0.0; for(i=0;i