Skip to content

Instantly share code, notes, and snippets.

View Abdulazizsayed's full-sized avatar

Abdulaziz Sayed Abdulazizsayed

  • Egypt, cairo
View GitHub Profile
#include <iostream>
#include <string>
using namespace std;
int Pascal_Tri(int row ,int col){
if(row == 0 || col == 0){
return 1;
}
else if(row == col){
@Abdulazizsayed
Abdulazizsayed / cpp file
Created November 1, 2018 12:41
movie class
#ifndef MOVIE_H
#define MOVIE_H
#include <iostream>
using namespace std;
class movie{
public:
movie(string movieName ,string MPAA);
int rate ,one = 0 ,two = 0 ,three = 0 ,four = 0 ,five = 0 ,nOfPeople_rated;
void setname(string name);
#include <iostream>
#include <iomanip>
#include <cassert>
using namespace std;
// A structure to store a matrix
struct matrix
{
int** data; // Pointer to 2-D array that will simulate matrix
@Abdulazizsayed
Abdulazizsayed / TheLastTask.cpp
Created October 5, 2018 18:20
A program that convert time from 12-hour system to 24-hour system.
#include <iostream>
#include <string>
using namespace std;
void time_convert(string time);
int main()
{
string str, time="";
cout << "Please, Enter the time you want to convert: ";
@Abdulazizsayed
Abdulazizsayed / gist:205f0892db786f58750f29ba0bc5d9de
Created March 29, 2018 20:40
the pabilonion method for square root
#include <iostream>
using namespace std;
int main()
{
int e=1,n;
cout << "enter the required num : ";
cin >> n;
for (int i=0; i<1000 ; i++)
#include <iostream>
using namespace std;
int main()
{
int n;
cout << "enter the number that u want the Multiplication table of it : ";
cin>>n;
cout<<n<<" | "<<endl;
#include <iostream>
#include <string>
using namespace std;
int main()
{
int a;
string text ;
cout << "what do you like to do today ? \n";
cout << "1- Cipher a message \n";
def check16(lst):
count1=0
for i in lst:
for z in i:
if(z=='x'):
count1+=1
if(count1==16):
return True
else:
return False