- In this week, junior and senior students must
demonstrate your homework to Prof. Wu on Friday.
- For other students, please send your homework (ZIP or RAR file) to TA at
cs101-ta@voip.edu.tw
- Deadline:2007/12/28 11:00 AM
- Subject of email: [CS101 HW13] 91234567
- Create New Project
- Choose Project types and Templates
- Name:
- HW13_1_91234567
- HW13_2_91234567
- Compress the folder to a ZIP or RAR file
-
HW13_1
(From: Exercise 2 on P.269)
Write a function that swaps two integers, using pointers as arguments.
Write a program that uses this function and test that it works
correctly.
Furthermore, write a second function for swaping two integers, and try to pass the arguments by reference (P.247).
-
HW13_2
Write a recursive function which convert a decimal integer to
hexadecimal. Write a program that keeps getting a positive integer from
the user and call the function to print it out.