viewing paste isAlphanumeric | C++

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#include <iostream>
#include <cstring>
 
bool smaller(char* x, char* y){
       
        if(x[0] == y[0])
                return true;
       
        return false;
       
}
 
int main () {
       
        char* stringy = new char[10];
        char* stringes = new char[10];
       
        strcpy(stringy, "fevwaef");
        strcpy(stringes, "wegvg");
       
        std::cout << (smaller(stringy,stringes) ? "True" : "False") ;
       
       
        return 0;
}
 
Viewed 798 times, submitted by Streusel.