Skip to content

Instantly share code, notes, and snippets.

View AjayKrP's full-sized avatar

Ajay Kumar AjayKrP

View GitHub Profile
#include<iostream>
#include<graphics.h>
#include<math.h>
#define ROUND(a)(int(a+0.5))
using namespace std;
class pattern{
private:
int x1,y1,x2,y2,x3,y3;
public:
void read();
#include <iostream>
#include<graphics.h>
#include<math.h>
#define Pi 3.141596265
#define ROUND(a)((int)(a+0.5))
using namespace std;
class poly
{
#include<iostream>
#include<stdio.h>
#include<math.h>
#include<graphics.h>
#define ROUND(a)((int)(a+0.5))
using namespace std;
class pixel{
protected:
int x1,x2,y1,y2;
#include<iostream>
#include<stdio.h>
#include<math.h>
#include<graphics.h>
#define ROUND(a)((int)(a+0.5))
using namespace std;
class pixel{
protected:
int x1,x2,y1,y2;
#include<iostream>
#include<stdio.h>
#include<graphics.h>
#include<math.h>
using namespace std;
class pixel{
public:
void accept();
protected:
#include<iostream>
#define SIZE 10
class HashTable{
public:
HashTable(): _meaning(""){}
HashTable (const HashTable& h) = delete;
HashTable& operator = (HashTable& sh) = delete;
HashTable(const HashTable&& ha) = delete;
int hashFunction(char key);
%macro print 2
mov eax, 4
mov ebx, 1
mov ecx, %1
mov edx, %2
int 80h
%endmacro
%macro read 2
mov eax, 3
%macro iomodule 4
mov rax,%1
mov rdi,%2
mov rsi,%3
mov rdx,%4
syscall
%endmacro
%macro exit 0
mov rax,60
#include <iostream>
#include <fstream>
#include <sstream>
#include <exception>
// -std=c++11
//compile by using g++ -std=c++11 filename.cpp
using namespace std;
class DataBase {
public:
section .data
mesg db 'enter 2-digit hexadecimal number',0xA
mesglen equ $-mesg
mesg1 db 'the result of multiplication is:',0xA
mesg1len equ $-mesg1
mesg3 db 'enter your choice’,10,’1)successive addition’,10,’2)add and shift method’,10,’3)exit',0xA
mesg3len equ $-mesg3
mesg4 db 'enter a valid choice',0xA