This file contains 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; | |
template <class T> | |
struct node | |
{ | |
node<T> *prev; | |
T data; | |
node<T> *next; | |
}; |
This file contains 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<string.h> | |
using namespace std; | |
class BankAccounts | |
{ | |
int accNo; | |
char custName[30]; | |
char accType[15]; | |
int pin; | |
float balance; |
This file contains 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 complex | |
{ | |
float real; | |
float img; | |
public: | |
complex() |
This file contains 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<stdio.h> | |
struct node | |
{ | |
int data; | |
struct node *left; | |
struct node *right; | |
}; | |
struct node *tree; | |
struct node* create() | |
{ |
This file contains 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
""" | |
1. Install mysql-connector-python | |
2. import the package | |
3. create the db connector and printing it will give you the object. | |
if you dont pass the DB name , it will connect to the entire database | |
4. cReate a DB cursor and pass queries to it. | |
5. Creating a new Database: CREATE DATABASE testDB; | |
6. the Db cursor will hold all the data and if command executed succesfully | |
the returned value will be NONE. | |
""" |
This file contains 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
import subprocess | |
import getpass | |
import os | |
import time | |
import pywifi | |
from pywifi import PyWiFi | |
from pywifi import const | |
from pywifi import Profile | |