Start with an easier language is all i'm saying.
klimi
c++ is something thats super hard to make safe.
klimi
golang or rust are my recommendations as they abstract a lot away - golang is fast with tons of modules and rust ist the "never do a runtime error again" language.
#include<stdio.h>
#include<string.h>
int main()
{
int a;
char s[100];
char str1[100];
char str2[100];
printf("\n 1 for Length\n 2 for Copy\n 3 for joint\n 4 for compare\n 5 for lowercase\n 6 for uppercase\n");
printf("\n Select Choice : ");
scanf("%d",&a);
if(1 || 5 || 6){
printf(" Enter the String : ");
scanf("%d",&s);
}
if(2 || 3 || 4){
printf(" Enter the First String : ");
scanf("%s",&str1);
printf(" Enter the Second String : ");
scanf("%s",&str2);
}
switch(a)
{
case 1:
printf(" Length of String is %d",strlen(s));
break;
case 2:
printf(" Copy of String : %s",strcpy(str1,str2));
break;
case 3:
printf(" Joint String is %s",strcat(str1,str2));
break;
case 4:
printf(" Two Strings are %d",strcmp(str1,str2));
break;
case 5:
printf(" Lowercase String : %s",strlwr(s));
break;
case 6:
printf(" Uppercase String : %s",strupr(s));
break;
default:
printf(" Invalid Input");
}
}