Skip to content

Instantly share code, notes, and snippets.

View immmdreza's full-sized avatar
🪐
Traveling through codes

MohammadReza immmdreza

🪐
Traveling through codes
View GitHub Profile
@immmdreza
immmdreza / CompareAsciiWords.cpp
Created January 6, 2023 11:59
Alphabetically compare 2 words. 0 if they're equal, 1 if the first one should come sooner else 2.
#include <iostream>
using namespace std;
char getVerChar(char target)
{
if (target >= 97 && target <= 122)
{
return target - 32;
}