Skip to content

Instantly share code, notes, and snippets.

View tjhartline's full-sized avatar
📈
Working from home

Tammy Hartline tjhartline

📈
Working from home
View GitHub Profile
@ThatOneCubanDude
ThatOneCubanDude / substitution.c
Created March 26, 2020 22:57
My solution to CS50x Problem Set 2 - Substitution. Feel free to critique or ask questions.
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
int main(int argc, string argv[])
{
//checks if user has inputed a command line argument, if not returns error message
if (argc == 2)
@Alexandr6363
Alexandr6363 / substitution.c
Created February 4, 2022 09:17
CS50 (cs50x) pset2 Substitution Solution 2022
#include <ctype.h>
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//prototype
string valid_key(string key);
string do_text(string start_text, string key);
void swap(char *a, char *b);