Skip to content

Instantly share code, notes, and snippets.

View sprintr's full-sized avatar
🎯
Focusing

Amin Ullah sprintr

🎯
Focusing
View GitHub Profile
#include <iostream>
using namespace std;
class Distance {
private:
int feet;
double inches;
public:
#include <iostream>
using namespace std;
class Student {
private:
string name;
public:
#include <iostream>
using namespace std;
class Langoor {
public:
// Default constructor. => 1
Langoor() {
// No arguments have been provided, so we can set default values.
/**
* @author Amin Ullah Khan
* @copyright Amin Ullah Khan 2013
* @licence MIT, GPL, LGPL
*/
#include <iostream>
using namespace std;
class CBox {
#include <iostream>
using namespace std;
class Time {
private:
int hours,
minutes,
seconds;
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Employee
{
private:
int employeeId;
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Student
{
public:
void getData() {
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
class Shape
{
public:
float area();
@sprintr
sprintr / LinkedList.cpp
Last active September 24, 2020 18:37
Linked List
#include <iostream>
using namespace std;
class LinkedList {
public:
LinkedList() {
start = NULL;
}
void add(int d) {
@sprintr
sprintr / LinkedList.cpp
Last active December 31, 2015 00:39
Searching in unsorted linked list!
#include <iostream>
using namespace std;
class LinkedList
{
public:
LinkedList()
{
start = NULL;