3156-21 - COMS W3156: Software Engineering, Fall 2001...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
COMS W3156: Software Engineering, Fall 2001 Lecture #21: C, C++ Janak J Parekh janak@cs.columbia.edu
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Administrativia “Where’s the !($#%@)! prototype???” Wednesday! Moved code review deadline Interested in doing research? Come see me, or consider the research fair happening next Friday, the 30 th , 10am-4pm http://acm.cs.columbia.edu/research For the fair, you need to sign up, but free food!
Background image of page 2
Project update Deformalize (demodalize) chat? Needed for logging Formal seems too cumbersome Software Engineering problem: keep reqs or change them? ChangeOther for bots How to communicate to server? Introduce RequestActorChange, or in MapDelta?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Project update (II) Death sequence? Attacked message, with death boolean set to true Kick the user from the game Delete the object from the map Remove the player from LDAP: HP no longer make sense WrappedOutputStream: need to use for final implementation WebServer: to serve up Images correctly, need Content-Length I’ve put up my WebServer
Background image of page 4
Next class Grr, Phil has one more class than we do You can go attend his class tomorrow if you like: heavy C++ treatment My next class begins operating systems and “design patterns” I’ll probably go over a bit more C++ But also recitation next week
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Today’s class Finish C Intro to C++
Background image of page 6
Pointer examples int x = 7; int *ip = &x; printf(“%d\n”, ip); // What does this print? printf(“%d\n”, *ip); *ip = 9; printf(“%d\n”, *ip); printf(“%d\n”, x);
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Pointers: miscellany If ip == 4, and ints are 4 bytes long, what does ip+1 equal? This is why pointers are “typed” C does not have real arrays Basically consecutive blocks of memory pointed to int a[7]; a == &a[0]; ++a == &a[1]; Nothing, even pointers, are null-initialized
Background image of page 8
C’s use of pointers C does not have Strings either
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 32

3156-21 - COMS W3156: Software Engineering, Fall 2001...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online