I have had a lot of people complaining that the lab is not available often enough for them to finish their labs. I hear that B265 is now being used for CS 8, 10, and 12. This is going to get even worse now that they have an assignment to work on. So I think that we should move them over to the Unix environment that way they will have more machines that they can use. I was going to wait until week 5, but I think that we should go ahead and do it now. So I have changed the plan for the lab this week once again. You should go over the Unix system. In fact the next two labs will be a little different. I want them to learn Unix, gdb, and makefiles. This will be divided up over the two weeks. This week: - Make sure that they all have accounts. - Show them basic Unix commands (mkdir, cd...) - Make sure that they can read/send email from Unix. - Show them how to use netscape on Unix (so they can turn their assignments in). - Go over emacs. I have handouts on emacs if you need some. - Show them how to compile a C++ file. - Go through a short example program to show them how to write, compile, and run programs. printf program They are to write a program to help them learn printf. Have them redo the lab 10 bridge 1 program using printf (thunder.cc) You can check them off for this inlab. They are not allowed to use any cout statements. They can still use cin though. They will not have anything due next week in lab since you are mostly going through Unix stuff. If you have enough time, start going over gdb and how to debug. Next week: - Go over gdb and how to debug a program. You might want to have a sample program that has some errors. An example function from their assignment might work well since it uses pointers and it is easy to alter a funtion with pointers to mess up and give seg faults. See me if you have questions. - Go over makefiles and show them how to separate their program into separate files and compile them with make. - They will have a program to do using pointers to functions. Assignment 1 I have given out the first assignment. I will put a copy in your box. I also am putting a copy of the handouts that I have for Unix, emacs, and gdb in your box in case you want them. The things to note about this program are that they are using pointers. They are not allowed to use the subscript operator [] to index into their array. Also they must declare their variables in main. If they need to modify them in a function, they must use pointers to pass the variables by reference. I will send you an example program. Please note that it is only a sample of what they are supposed to do, it is not nicely formatted.