computer science-year 2009-2013 chapter 1-7
TRANSCRIPT
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
1/34
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
2/34
Y%a, 2010
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
3/34
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
4/34
Y%a, 2011
4
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
5/34
5
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
6/34
YEAR 2012
6
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
7/34
7
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
8/34
8
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
9/34
YEAR 2013
9
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
10/34
CHAPTER 3-FUNCTION OVERLOAGIN
YEAR 2009
10
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
11/34
YEAR 2011
11
2 2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
12/34
YEAR 2012
12
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
13/34
YEAR 2013
CHAPTER D-CLASSES ANG O;ECTS
YEAR 2009
13
1
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
14/34
YEAR 2010$%.
14
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
15/34
$2.
YEAR 2011
15
1
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
16/34
YEAR 2012
16
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
17/34
17
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
18/34
YEAR 2013
18
1
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
19/34
CHAPTER J-CONSTRUCTORS ANG GESTRUCTORS
YEAR 2009
19
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
20/34
YEAR 2010
YEAR 2013
20
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
21/34
CHAPTER K- INHERITANCE: EXTENGIN CLASSES
YEAR 2009
21
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
22/34
YEAR 2010
22
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
23/34
23
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
24/34
YEAR 2011
24
2
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
25/34
YEAR 2012
25
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
26/34
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
27/34
CHAPTER -GATA FILE HANGLINYEAR 2009
D(a)&bserve the proram sement iven below carefully and fillthe blan's mar'ed as ine % and ine 2 usin fstreamfunctions for performin the reuired tas'. %
*include fstream.h,class #toc'- lon no/ 00tem 1umber char tem234/ 00tem 1ame int $ty/ 00$uantitypublic! void Get(int )/00"unction to enter the content void #how()/ 00"unction to display the contentvoid 5urchase(int 6ty) - $ty+76ty/ 8 00"unction to increment in $ty
lon 9nowno()-return no/88/
void 5urchaseitem(lon 51o:int 5$ty) 0051o ;, no of the item purchased 005$ty ;, 1umber of item purchased- fstream "ile/
"ile.open(#.@6A:ios!!binaryBios!!inBios!!out)/ int 5os7;%/ #toc' #/ while (5os77;% "ile.read((charD)#:siEeof(#))) if (#.9nowno()7751o) - #.5urchase(5$ty)/006o update the number of tems 5os7"ile.tell();siEeof(#)/
00ine %!6o place the file pointer to the reuiredposition
FFFFFFFFFFFFFFFFFFFFFFFFFF/
00ine 2!6o write the obect # on to the binary file FFFFFFFFFFFFFFFFFFFFFFFFFF/
8 if (5os77;%) coutA1o updation done as reuired no not found..A/ "ile.close()/8
27
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
28/34
()Write a function C&H16F&() in C++ to count the presence of aword IdoJ in a text file =>&.6K6A 2
=xample!f the content of the file =>&.6K6A is as follows!
I
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
29/34
29
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
30/34
YEAR 2011
30
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
31/34
YEAR 2012
31
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
32/34
32
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
33/34
YEAR 2013
33
-
8/10/2019 Computer Science-year 2009-2013 Chapter 1-7
34/34