GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add files via upload · bappasahabapi/cpp_program@638d2c3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • c++ progrming folder
    • defult cons.cpp
    • defult cons.exe
    • defult cons.o
    • hello word.cpp
    • hello word.exe
    • test cons coy.cpp
    • test cons coy.exe
    • test cons coy.o
    • test overloading.cpp
    • test overloading.exe
    • test overloading.o
    • test para cons.cpp
    • test para cons.exe
    • test para cons.o
  • constructor
    • constructor overloading lec 49.cpp
    • copy constructor lec 48.cpp
    • copy constructor lec 48.exe
    • copy constructor lec 48.o
    • parameterised constructor lec 47.cpp
    • parameterised constructor lec 47.exe
    • parameterised constructor lec 47.o
  • iinheritance
    • inheritnce.cpp
    • inheritnce.exe
    • inheritnce.o
    • lec 55,single inheri.cpp
    • lec 55,single inheri.exe
    • lec 55,single inheri.o
    • multiple inheritnce.cpp
    • multiple inheritnce.exe
    • multiple inheritnce.o
    • prob(3.2).cpp
    • prob(3.3).cpp
    • single in.cpp
    • single in.exe
    • single in.o
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎c++ progrming folder/defult cons.cpp‎

Copy file name to clipboard
+29Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include<iostream>
2+
using namespace std;
3+
class test
4+
{
5+
int a,b;
6+
public:
7+
test()
8+
{
9+
a=0;
10+
b=0;
11+
}
12+
void disp()
13+
{
14+
cout<<"value of A : "<<a;
15+
cout<<"value of B : "<<b;
16+
}
17+
};
18+
int main()
19+
{
20+
test t;
21+
t.disp();
22+
return 0;
23+
}
24+
25+
26+
27+
28+
29+
Collapse file

‎c++ progrming folder/defult cons.exe‎

Copy file name to clipboard
1.07 MB
Binary file not shown.
Collapse file

‎c++ progrming folder/defult cons.o‎

Copy file name to clipboard
1.74 KB
Binary file not shown.
Collapse file

‎c++ progrming folder/hello word.cpp‎

Copy file name to clipboard
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include<iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
cout<<"hello word";
6+
}
Collapse file

‎c++ progrming folder/hello word.exe‎

Copy file name to clipboard
1.07 MB
Binary file not shown.
Collapse file

‎c++ progrming folder/test cons coy.cpp‎

Copy file name to clipboard
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include<iostream>
2+
using namespace std;
3+
class test
4+
{
5+
int code;
6+
float price;
7+
public:
8+
test(int c, float p );
9+
test(const test &t);
10+
void disp();
11+
};
12+
test::test(int c,float p)
13+
{
14+
code=c;
15+
price=p;
16+
}
17+
test::test(const test &t)
18+
{
19+
code=t.code;
20+
price=t.price;
21+
}
22+
void test::disp()
23+
{
24+
cout<<"code : "<<code;
25+
cout<<"price :"<<price;
26+
}
27+
int main()
28+
{
29+
test t1(101,50.6);
30+
test t2(t1);
31+
test t3=(t2);
32+
cout<<"t1 object";
33+
t1.disp();
34+
cout<<"t2 object";
35+
t2.disp();
36+
cout<<"t3 object";
37+
t3.disp();
38+
return 0;
39+
}
40+
41+
42+
43+
44+
45+
46+
47+
48+
Collapse file

‎c++ progrming folder/test cons coy.exe‎

Copy file name to clipboard
1.07 MB
Binary file not shown.
Collapse file

‎c++ progrming folder/test cons coy.o‎

Copy file name to clipboard
1.93 KB
Binary file not shown.
Collapse file

‎c++ progrming folder/test overloading.cpp‎

Copy file name to clipboard
+70Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#include<iostream>
2+
using namespace std;
3+
class test
4+
{
5+
int a,b;
6+
public:
7+
test();
8+
test(int x);
9+
test(int x, int y);
10+
void disp();
11+
};
12+
test::test()
13+
{
14+
a=0;
15+
b=0;
16+
}
17+
test::test(int x)
18+
{
19+
a=b=x;
20+
}
21+
test::test(int x, int y)
22+
{
23+
a=x;
24+
b=y;
25+
}
26+
void test::disp()
27+
{
28+
cout<<"\n value of A : "<<a;
29+
cout<<"\n value of B : "<<b;
30+
}
31+
int main()
32+
{
33+
test A;
34+
test B(100);
35+
test C(100,200);
36+
cout<<"object A \n ";
37+
A.disp();
38+
cout<<"object B \n ";
39+
B.disp();
40+
cout<<"object C ";
41+
C.disp();
42+
return 0;
43+
}
44+
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
Collapse file

‎c++ progrming folder/test overloading.exe‎

Copy file name to clipboard
1.08 MB
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.