This shows you the differences between two versions of the page.

Link to this comparison view

cs-142:ch7exercises [2015/01/07 09:08] (current)
ryancha created
Line 1: Line 1:
 +*go over landscape to show them how to write out 2d arrays for the hotplate lab. 
 +*go over fun with pointers example 
 +<code cpp> 
 +int fish = 5; 
 +int dog = 6; 
 +int *fptr = &​fish;​ 
 +int *dptr = &dog; 
 +exchange the values between fish and dog 
 +*Example: how to find the first vowel in a string 
 +*In future years, give them a lab where they have to call a function that requires a pointer
cs-142/ch7exercises.txt · Last modified: 2015/01/07 09:08 by ryancha
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0