Skip to content

Instantly share code, notes, and snippets.

View naveen497's full-sized avatar

Naveen Kumar Chiluka naveen497

View GitHub Profile
@naveen497
naveen497 / mpmc.cpp
Created November 7, 2015 13:01
mpmc_lab_project
#include <iostream>
using namespace std;
int main()
{ int budget,kg,flag=0;
uint16_t bill=0;
char option,option1,ans;
cout<<"Please enter your budget:"<<endl;
cin>>budget;
#include <iostream>
using namespace std;
int main()
{ int budget,kg,flag=0;
uint16_t bill=0;
char option,option1,ans;
cout<<"Please enter your budget:"<<endl;
cin>>budget;
@naveen497
naveen497 / Stack_ArrayImplementation_OOP.cpp
Created November 3, 2015 18:37 — forked from mycodeschool/Stack_ArrayImplementation_OOP.cpp
An object oriented implementation of stack using arrays in C++.
// Stack - Object oriented implementation using arrays
#include <iostream>
using namespace std;
#define MAX_SIZE 101
class Stack
{
private:
int A[MAX_SIZE]; // array to store the stack
int top; // variable to mark the top index of stack.