first edition 2008 programming technique ii · first edition 2008 programming technique ii (c++)...
TRANSCRIPT
First Edition 2008
PROGRAMMINGTECHNIQUE II
(C++)ENGLISH - MALAY
(BAHASA INGGERIS - BAHASA MELAYU)
1
Faculty of Computer Science & Information SystemsUniversiti Teknologi Malaysia
PROGRAMMING TECHNIQUE II
'(C++)ENGLISH - MALAY
Norazah Yusof
Dayang Norhayati Abang Jawawi
Noraniah Mohd Yassin
Subariah Ibrahim
Radziah Mohamad
Hamimah Mohd Jamil
Copyright © 2008
All rights reserved. No part of this publication may be reproduced or distributed in
any form or by any means, or stored in a data base or retrieval system, or transmitted
in any form or by any means, electronics, mechanical, photocopying or otherwise,
without the prior written permission of the authors.
Disclaimer
This workbook and its contents are intended solely for the use of the subject
Programming Technique II to be taught at Fakulti Sains Komputer dan Sistem
Maklumat, Universiti Teknologi Malaysia, Skudai. The algorithms and programs in
this workbook have been included for their instructional value. They have been tested
but are not guaranteed for any particular purpose. The authors do not offer any
warranties or representations nor do they accept any liabilities with respect to their
use. The authors reserve the right to revise this publication and make changes from
time to time in its content without notice.
-
First EditionJanuary 2008
CONTENTS
LAB TOPIC
INTRODUCTIONTERMS
0 C++ REVISION
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3
1 LINUX COMMAND SHELL
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5Exercise 6Exercise 7
2 vi EDITOR
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4
3 GNU COMPILER COLLECTION ANDREVISION ON ARRAY
Objective For StudentsAssumptionsLab Exercises :
PAGE
vvii
11
147
13
1313
13151617192122
25
2525
25272932
33
3333
11
Exercise 1Exercise 2Exercise 3Exercise 4
POINTER
Objective For StudentsAssumptionsLab Exercises:
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5Exercise 6Exercise 7
EMACS
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5
STRING OPERATION
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3
STRUCTURED DATA
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4
33363741
45
4545
45465053565859
63
6363
6366677378
81
8181
818585
87
8787
87909297
tn
FILE OPERATIONS 101
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3
9 CLASS
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4
10 AGGREGATION
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2
11 INHERITANCE
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5
12 POLYMORPHISM
Objective For StudentsAssumptionsLab Exercises :
Exercise 1Exercise 2Exercise 3
101101
101104108
111
111111
112115122125
131
131131
131135
137
137137
137142143146148
153
153153
153162163
IV