Skip to content

check #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
efc80e4
Create FUNDING.yml
DharmendraGITHB Jul 5, 2022
e4ae779
Create hello.java
DharmendraGITHB Jul 15, 2022
15dc973
java programming
DharmendraGITHB Aug 29, 2022
1c7cd3c
Merge branch 'main' of https://github.com/DharmendraGITHB/Competitive…
DharmendraGITHB Aug 29, 2022
15ec15b
100 liked questions
DharmendraGITHB Nov 19, 2022
a9aeab0
returning indices of two sum elements'
DharmendraGITHB Nov 19, 2022
c9ba82c
returning indices of two sum elements
DharmendraGITHB Nov 19, 2022
3ac059a
Solution.java
DharmendraGITHB Nov 20, 2022
8b4b34f
new update
DharmendraGITHB Nov 23, 2022
85fc0c6
new update
DharmendraGITHB Dec 7, 2022
1d4fb74
hello world
DharmendraGITHB Dec 7, 2022
5329a15
user input
DharmendraGITHB Dec 7, 2022
e07d1b8
addtwo int
DharmendraGITHB Dec 7, 2022
0b7cd98
another way
DharmendraGITHB Dec 7, 2022
79baee1
all
DharmendraGITHB Dec 7, 2022
ccff7d6
unfinish
DharmendraGITHB Dec 7, 2022
220c85e
update
DharmendraGITHB Dec 8, 2022
a638ddf
unfinished
DharmendraGITHB Dec 8, 2022
d7e39b5
construtor
DharmendraGITHB Dec 11, 2022
a480c3c
car
DharmendraGITHB Dec 11, 2022
a4855fe
update
DharmendraGITHB Dec 12, 2022
2e5b723
importing files
DharmendraGITHB Dec 12, 2022
d56440d
Merge branch 'dharmendraIND:main' into main
DharmendraGITHB Dec 12, 2022
7bc0a1a
public modifier
DharmendraGITHB Dec 12, 2022
e196cb7
String.cpp
DharmendraGITHB Dec 12, 2022
2e66de5
inheritance
DharmendraGITHB Dec 15, 2022
036fbd0
delete
DharmendraGITHB Dec 15, 2022
2fa4826
new inheritance
DharmendraGITHB Dec 15, 2022
56cc293
simpleInheri.cpp
DharmendraGITHB Dec 15, 2022
dd6b0c9
abstract class
DharmendraGITHB Dec 15, 2022
a218b9d
abstraction
DharmendraGITHB Dec 15, 2022
8e0fb45
abstraction
DharmendraGITHB Dec 15, 2022
ae7d9a2
update
DharmendraGITHB Dec 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
#
17 changes: 17 additions & 0 deletions C++/addint.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include<iostream>
using namespace std;

int main() {

int first, second, sum;

cout << "Enter two integer number: ";
cin >> first >> second;

sum = first + second;

cout << first << " + " << second<< "=" << sum;

return 0;

}
Binary file added C++/addint.exe
Binary file not shown.
20 changes: 20 additions & 0 deletions C++/addtwo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include<iostream>

using namespace std;

int main() {

int x,y, sum;

cout <<" Enter the first integer number: ";
cin >> x;
cout <<"Enter the second integer number: ";
cin >> y;

sum = x+y;

cout <<" Sum of integer number: " << sum;

return 0;
}

Binary file added C++/addtwo.exe
Binary file not shown.
14 changes: 9 additions & 5 deletions C++/hello.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

#include <iostream>
#include<iostream>
using namespace std;

int main() {
cout << "Hello World!";
return 0;
int main()
{

cout<< "hello ";

return 0;

}

11 changes: 11 additions & 0 deletions C++/oop/Encap.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include<iostream>

using namespace std;

class Rectangle {
public:
int length;
int breadth;

Rectangle(int len, int brth) : length(len) ,
}
8 changes: 8 additions & 0 deletions C++/oop/Importing/HeroClass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Hero
{
char name[100];
int health;
char level;

};

12 changes: 12 additions & 0 deletions C++/oop/Importing/ImportingHero.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include<iostream>
#include "HeroClass.cpp"
using namespace std;

int main()
{
Hero h2;

cout << "size: "<< sizeof(h2) << endl;

return 0;
}
11 changes: 11 additions & 0 deletions C++/oop/String/String.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include<iostream>
#include<string>

using namespace std;

int main()
{
string s1 = "hello";

cout << s1<< endl;
}
Empty file added C++/oop/abstraction/abst.cpp
Empty file.
10 changes: 10 additions & 0 deletions C++/oop/abstraction/abstract.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include<iostream>

using namespace std;

int main()
{
cout <<"abstraction";

return 0;
}
5 changes: 5 additions & 0 deletions C++/oop/abstraction/abstract.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Abstration:

Data abstraction refers to providing only essential information to the users and their background details.

31 changes: 31 additions & 0 deletions C++/oop/accessmod/public.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#include<iostream>
#include<string>

using namespace std;

class Person
{
public:
int health;
char sname;

void print()
{
cout << health << endl;
}
};


int main()
{

Person ramesh;
ramesh.health = 20;
ramesh.sname = 'C';

cout <<"health is: " <<ramesh.health<< endl;
cout <<"surname is: " <<ramesh.sname<< endl;

return 0;

}
24 changes: 24 additions & 0 deletions C++/oop/babr/Cl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include<iostream>

using namespace std;

class Hero
{

//properties

char name[100];
int health;
char level;
};

int main()
{

Hero h1;

cout << "size: "<< sizeof(h1) << endl;

return 0;

}
22 changes: 22 additions & 0 deletions C++/oop/constructor/Car.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class Car { // The class
public: // Access specifier
string brand; // Attribute
string model; // Attribute
int year; // Attribute
Car(string x, string y, int z) { // Constructor with parameters
brand = x;
model = y;
year = z;
}
};

int main() {
// Create Car objects and call the constructor with different values
Car carObj1("BMW", "X5", 1999);
Car carObj2("Ford", "Mustang", 1969);

// Print values
cout << carObj1.brand << " " << carObj1.model << " " << carObj1.year << "\n";
cout << carObj2.brand << " " << carObj2.model << " " << carObj2.year << "\n";
return 0;
}
36 changes: 36 additions & 0 deletions C++/oop/construtor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include<iostream>

using namespace std;

class student {
int rno;
char name[10];
double fee;

//defining the constructor within the class

public:
student()
{
cout <<"Enter the roll no: ";
cin >> rno;
cout <<"ENTER THE NAME: ";
cin << name;
cout << "enter the fee: ";
cin >>fee;
}

void display()
{
cout <<endl << rno << "\t" <<name<< "\t" <<fee;
}
};

int main()
{
student s;
s.display();

return 0;

}
23 changes: 23 additions & 0 deletions C++/oop/inheritance/Inheri.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include<iostream>

using namespace std;

class Parent
{
public:
string name1 = "kumar";
};

class Child: public Parent
{
public:
string name2 = "dharmendra";
};

int main()
{
Child ch;
cout << ch.name1 + " " + ch.name2;

return 0;
}
Binary file added C++/oop/inheritance/Inheri.exe
Binary file not shown.
26 changes: 26 additions & 0 deletions C++/oop/inheritance/Inherit.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include<iostream>

using namespace std;

class Parent
{
public:
string name3 = "kumar";

};

class Child: public Parent
{
public:
string name4 = "jitin";

};

int main()
{
Child obj;

cout << obj.name3 + " " + obj.name4;

return 0;
}
10 changes: 10 additions & 0 deletions C++/oop/inheritance/simple/abstraction.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+#include<iostream>

using namespace std;

int main()
{
cout << "hello cp " <<endl;

return 0;
}
36 changes: 36 additions & 0 deletions C++/oop/inheritance/simple/simpleInheri.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include<iostream>

using namespace std;

class Animal
{

public:
void eat() {
cout<<"ANImal can eat" << endl;

}

void sleep() {
cout << "i can sleep" <<endl;
}
};

class Dog : public Animal {
public:
void bark() {
cout << "dog can bark"<< endl;

}
};

int main() {
Dog tommy;

tommy.eat();
tommy.sleep();

tommy.bark();

return 0;
}
17 changes: 17 additions & 0 deletions C++/printnum.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include<iostream>

using namespace std;

int main() {
int number;

cout <<" enter an integer:";

cin>> number;

cout << "yoou entered "<< number;
return 0;

}


Binary file added C++/printnum.exe
Binary file not shown.
Binary file added C++/question/1/.check.cpp.swp
Binary file not shown.
8 changes: 8 additions & 0 deletions C++/question/1/Environ.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include<iostream>
using namespace std;

main()
{

cout << "Learning cpp ";
}
Binary file added C++/question/1/Environ.exe
Binary file not shown.
Loading