Skip to content

Instantly share code, notes, and snippets.

View ravikiran0606's full-sized avatar
🎯
Focusing

Ravi Kiran Selvam ravikiran0606

🎯
Focusing
View GitHub Profile
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t,x,y;
#include<bits/stdc++.h>
using namespace std;
unsigned long long calc[32];
void compute()
{
int i;
calc[0]=1;
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
long int t;
@ravikiran0606
ravikiran0606 / Timeclass.cpp
Created July 27, 2016 15:52
C++ program to create a time class and perform the required operations :
#include<iostream>
using namespace std;
// Creating a class time...
class time{
int hour,minute;
public:
@ravikiran0606
ravikiran0606 / Stackclass2.cpp
Created July 27, 2016 15:50
C++ program to create a stack class and implement its basic functions :
#include<iostream>
#define maxi 1000
using namespace std;
class sstack{
int a[maxi];
int top;
public:
@ravikiran0606
ravikiran0606 / Bankclass.cpp
Created July 27, 2016 15:48
C++ program to create a bank class and implement some basic functions :
#include<iostream>
#include<string>
using namespace std;
class bank{
string name;
int acno;
string actype;
int balance;
@ravikiran0606
ravikiran0606 / Queueclass2.cpp
Created July 27, 2016 15:47
C++ Program to create a Queue Class and implement its basic functions :
#include<iostream>
#define maxi 1000
using namespace std;
class qqueue{
int a[maxi];
int f,r;
public:
void initialize();
void enqueue(int val);
void dequeue();
@ravikiran0606
ravikiran0606 / Friendclass.cpp
Created July 27, 2016 15:46
C++ Program to implement friend class and friend functions :
#include<iostream>
#include<string>
using namespace std;
class second{
private:
string a,b;
public:
second(string x,string y);
friend class first;
};
@ravikiran0606
ravikiran0606 / Complexclass2.cpp
Last active July 30, 2016 17:26
C++ program to implement a complex number class and its basic functions :
#include<iostream>
using namespace std;
class cmplx{
int real,img;
public:
cmplx(int x,int y);
void add(cmplx a,cmplx b);
void display();
};
cmplx::cmplx(int x=0,int y=0){