Skip to content

Instantly share code, notes, and snippets.

View Caalek's full-sized avatar

Adam Cal Caalek

View GitHub Profile
@Caalek
Caalek / guessing.c
Created March 13, 2021 22:27
Numer guessing game in C
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
srand(time(NULL));
int guessRange = 50;
int number = rand() % guessRange + 1;
@Caalek
Caalek / loginSystem.cpp
Created March 13, 2021 22:24
C++ login system in the console
#include <iostream>
#include <fstream>
using namespace std;
int getChoice() {
cout << endl << "LOGIN SYSTEM" << endl;
cout << "(1) Create account" << endl;
cout << "(2) Login" << endl;
cout << "(3) Quit application" << endl;
int choice;