100701 1st

427 views
386 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
427
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

100701 1st

  1. 1. PU Study in summer vacation Leader : 홍범진 Members : 김동우, 김현우, 오승택, 이미지, 이희민Thursday, May 12, 2011
  2. 2. Preview • Review basic C language • Data StructureThursday, May 12, 2011
  3. 3. Review basic C language • input / output • for, while, do~while, switch, if • function • array, pointer, memory allocate and free (Dynamic allocate) • structureThursday, May 12, 2011
  4. 4. Data structure • Linked List - What is the Linked List? • ADT(Abstract data type) - Queue - Stack • Sort (array, linked list) - Insertion sort - Selection sort - Bubble sort - etc..Thursday, May 12, 2011
  5. 5. C - I/O • Input - scanf - gets - file input • output - printf - puts - file outputThursday, May 12, 2011
  6. 6. What is the meaning of ‘f’ in printf and scanf?Thursday, May 12, 2011
  7. 7. What is the meaning of ‘f’ in printf and scanf? Answer - The meaning of ‘f’ is ‘formatted’.Thursday, May 12, 2011
  8. 8. What is the meaning of ‘f’ in printf and scanf? Answer - The meaning of ‘f’ is ‘formatted’. - Examples - %c %d %f %s %o %u %x %X %e %E %g %GThursday, May 12, 2011
  9. 9. Function Prototype int add (int, int)Thursday, May 12, 2011
  10. 10. Function Prototype int add (int, int)Thursday, May 12, 2011
  11. 11. Function Prototype int return type add (int, int)Thursday, May 12, 2011
  12. 12. Function Prototype int return type add name of function (int, int)Thursday, May 12, 2011
  13. 13. Function Prototype int return type add name of function (int, int) parameterThursday, May 12, 2011
  14. 14. Function int add (int a, int b int b)Thursday, May 12, 2011
  15. 15. Function int add (int a, int b) { int a, b, c; return c = a + b; }Thursday, May 12, 2011
  16. 16. Function • return type and parameter - void - int, float, double - bool - etc.. • name - It can’t be start with number or special character (except under bar ‘_’) - Avoid to name as keyword or library function (ex. printf, int, return, etc)Thursday, May 12, 2011

×