Skip to content

Instantly share code, notes, and snippets.

View WajihaAd's full-sized avatar
🎯
Focusing

Wajiha Adnan WajihaAd

🎯
Focusing
View GitHub Profile
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
class BankAccount {
private:
int Balance;
static int transaction;
double interestRate;
@WajihaAd
WajihaAd / gist:c9d117fea0cdb072d959f0875c6ff7d2
Last active April 25, 2024 14:40
C++ game: "Simulate a game where teams randomly generate players and take turns hitting each other, with the final result determined by the number of hits."
#include <iostream>
#include <stdlib.h> // for rand
using namespace std;
class Team {
private:
static int count;
static int count1;
public: