Skip to content

Instantly share code, notes, and snippets.

View gcs-abdulwahab's full-sized avatar

Abdul Wahab gcs-abdulwahab

  • 15:38 (UTC +05:00)
View GitHub Profile
@gcs-abdulwahab
gcs-abdulwahab / Debug.cpp
Created October 1, 2022 11:20
ITU_Assignment 0 for debugging
// This is a Program of a calculator.It will enter two numbers and a character from user and perform the entered operation.
#include <iostream>
using namespace std;
//This Function will output message on screen.
void OutputMessage()
{
cout<<"Welcome to Faltu Calculator by Zuraiz, Israr and Munir...!!!"<<endl<<endl
<<"Enter number 65535 to END program"<<endl<<endl;
}
//It will enter "Number" from user and return that value.
@gcs-abdulwahab
gcs-abdulwahab / DSA Syllabus for Resit Exam on 10th October 2022
Created October 3, 2022 10:45
DSA Syllabus for Resit Exam on 10th October 2022
Intro to DSA
Arrays : Sparse / Dense Array / Matrix
LinkedList : Singly , Variant , Doubly LinkedList
Stack : and its applications , PostFix / Infix / Prefix conversion and Evaluation using Stack
Queue and its Implementations
DEQUE
Algorithmic Analysis of algorithms : Best , Worst Case
Recursion Tree Analysis
// Loading required libraries
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class MyServlet extends HttpServlet{
public void doGet(HttpServletRequest request, HttpServletResponse response)
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:56
Person class with Dynamic Memory
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:58
Dynamic Memory without Deep Copy
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 05:04
with Deep Copy
#include <iostream>
using namespace std;
class Person {
private :
int x;
int *ip;
public:
Person(int x, int y) {
@gcs-abdulwahab
gcs-abdulwahab / Set2.cpp
Last active October 18, 2023 17:03
Set 2.0
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Set {
int *ar;
public:
int getCount(){
int count = 0;
@gcs-abdulwahab
gcs-abdulwahab / set3.cpp
Last active October 18, 2023 19:49
Set Operations Simplified
// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class Set {
int *ar;
int capacity;
public:
int getCapacity(){
@gcs-abdulwahab
gcs-abdulwahab / main.cpp
Created October 12, 2023 04:05
Person Defacult Copy Constructor
#include <iostream>
using namespace std;
class Person
{
private :
int x;
int y;
public: