This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include<graphics.h> | |
#include<math.h> | |
#define Pi 3.141596265 | |
#define ROUND(a)((int)(a+0.5)) | |
using namespace std; | |
class poly | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<stdio.h> | |
#include<graphics.h> | |
#include<math.h> | |
using namespace std; | |
class pixel{ | |
public: | |
void accept(); | |
protected: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%macro print 2 | |
mov eax, 4 | |
mov ebx, 1 | |
mov ecx, %1 | |
mov edx, %2 | |
int 80h | |
%endmacro | |
%macro read 2 | |
mov eax, 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%macro iomodule 4 | |
mov rax,%1 | |
mov rdi,%2 | |
mov rsi,%3 | |
mov rdx,%4 | |
syscall | |
%endmacro | |
%macro exit 0 | |
mov rax,60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |