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<bits/stdc++.h> | |
using namespace std; | |
float scanNum(char ch){ | |
int value; | |
value = ch; | |
return float(value-'0');//return float from character | |
} | |
int isOperator(char ch){ | |
if(ch == '+'|| ch == '-'|| ch == '*'|| ch == '/' || ch == '^') | |
return 1; |
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> | |
using namespace std; | |
class Node | |
{ | |
public: | |
char data; | |
Node* next; | |
}; |
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
//For this code to run properly make a Text.txt file and it will do operations for you thanks ;) | |
#include<iostream> | |
#include<fstream> | |
#include<string> | |
using namespace std ; | |
// NOde Containing left and right Child |
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<cmath> | |
using namespace std; | |
class Polynomial { | |
private: | |
class Term { | |
public: | |
int exponent; | |
int cofficient; |
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
#now we will draw shape using python turtle library | |
import turtle | |
colors = ['red', 'purple', 'blue', 'green', 'orange', 'yellow'] | |
t = turtle.Pen() | |
turtle.bgcolor('black') | |
for x in range(360): | |
t.pencolor(colors[x%6]) | |
t.width(x//100 + 1)a | |
t.forward(x) |
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> | |
using namespace std ; | |
class Nodebst | |
{ | |
public: | |
int data ; | |
Nodebst* left; | |
Nodebst* right; |
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> | |
using namespace std ; | |
class Nodebst | |
{ | |
public: | |
int data ; | |
Nodebst* left; | |
Nodebst* right; |
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
#when we were kids our senior always drew heart and a sword in it who were the socold Ashiq(lover) of their time | |
#I'm modren day Ashiq(lover) | |
#Impress your love by showing them your heart | |
import turtle | |
turtle.speed(3) | |
turtle.bgcolor('black') | |
turtle.pensize(10) |
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
#You wanna make sketch with pencil No way copy and paste this code and see the magic ;) | |
# importing libraries | |
import cv2 | |
import numpy as np | |
# reading image | |
img = cv2.imread("bezos.jpg") | |
# Edges | |
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) |
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
#if you have used paints in your childhood to make star | |
#python turtle is library providing tools to draw amazing shapes | |
# Do try and learn to write program with having some fun dude | |
from turtle import * | |
bgcolor('black') | |
color('red', 'yellow') | |
begin_fill() | |
while True: | |
forward(200) |
NewerOlder