This file lists announcements from the course TA CMSC-202, Fall 1997, Section 1. Announcements are in reverse chronological order. The latest announcement is on top. ---------------------------------------------------------- 30 October1997 -1.Regarding Office Hours on Thursday: Changed office hours on Thursday to 6:45 - 7:45 pm (ECS 231). -2.Regarding questions covered in discussion sections on STACKS and QUEUES: Due to an overlook on my part I forgot to use the function calls Create_Stack and Create_Queue for creating the appropriate data structures ( before using them )in the code solution for the questions that I covered in class.You need to do that in the answers that you give for questions related to stacks and queues in the midterm exam. 9 October 1997 -1. Regarding the Typecast question asked in class: I thought I had been asked about typecasting the double * variable and I replied accordingly but another student told me after the class that the student might have been referring to the function call typecasting ,which of course has to be done. 7 October1997 -1. Regarding Question 4 of the exam : You needed to write the type definitions and variable declarations and the code for the given picture. You need to define the str_tag1 and str_tag2 because X is a structure that points to the structure Y and Y is a structure whose one field points to X thus they are pointing to each other and so to define one you need to define the other and so you need str_tag.During the malloc statement you can also malloc using the following statement: malloc (sizeof(struct str_tag2)). However malloc(sizeof(struct2_type)) is preferred as it is more understandable. Also the assignment statement for the integer storage to 42 will be : **(Y.f2)=42; *(Y.f2)=42 is wrong because the left hand side of the equation refers to the address of the integer storage and to refer to it's value or assign it a value you need to add another pointer to the statement. 30 September 1997 -1. Regarding 4.10a covered in class : You can not interchange a * reference with -> since -> is used only for structures.The way that it was done in class should work. 11 September 1997 - 1. Regarding CTRL-D : Use gets or fgets to read the user inputline as a string. If you enter CTRL-D it means EOF thus it will return a pointer to NULL(through gets or fgets) .Using an if statement you can check this condition and exit and end the program if the case is so. - 2. Regarding Debugging: Put the -g statement when making your makefile.Then using the editor emacs or xemacs (xemacs is easier) use gdb (the debugger to be used ) and use the run command to run your executable. NOTE: There will be a discussion section on using Debuggers too. 9 September 1997: - Installed this announcement list