klimi
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.
klimi
my last program was SEG FAULT
Dima
GOLANG lmaoooooo
Dima
Dima
No.
BinaryByter
c++ is something thats super hard to make safe.
this is true if you don't know how C++ works
BinaryByter
if you use std::vector std::array and all the other std-things
BinaryByter
you should be mostly fine
BinaryByter
Rust is so different, it will take you a long time to learn
BinaryByter
this guy is a rust fanboy
Dima
Rust > Golang
BinaryByter
BinaryByter
lmao
BinaryByter
C lives on in this language
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
Thank you
Anonymous
I really want to learn here
Anonymous
I weak in this field. Please help me :)
Anonymous
Hey^^
Otumian
Programming is passion. At a long run, it doesn't become a language you studied or love.. But the one you feel confident using
Parth
Yeh dude
Dima
you can love it and be confident while using it
Dima
Anonymous
Thanks for the motivation :)
Parth
Hi friends
Anonymous
Parth
#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"); } }
Parth
Anyone help me in this program
Parth
This is the all string handling function program
Mitesh
Parth
I can try in all but can't do
Dima
if(2 || 3 || 4){ what the hell
Parth
if(2 || 3 || 4){ what the hell
Wheb i select 2 3 4 choice then it inputs 2 string to the user
Dima
it doesnt work like that
Parth
So how?
Parth
So tell me how i can write this
Mitesh
Ohh
it shold be like if((a==1) || (a==5)) { } etc..
Dima
what would you expect from that condition? nothing will happen you need to specify that explicitly: if (a == 3 || a == 4 || a == 5)
Anonymous
scanf("%d",&s); also seems wrong. Do you want a string or a integer there?
Mitesh
Ohk! I'll try it
where are you from ?
Mitesh
India
in which city
Parth
Ahmedabad
Mitesh
ok
Parth
And you?
Mitesh
Ahmedabad
i am from Nadiad
Parth
i am from Nadiad
Bhai hu pan tyano j chhu kapadwanj
Mitesh
Ahmedabad
proper Ahmedabad ?
Parth
😅😅
Parth
proper Ahmedabad ?
Ahmedabad me etle kidhu ke mane lagyu ke kasek bahar no hois
Mitesh
😁
Parth
which clg?
GEC Modasa
Mitesh
ok
Parth
MᏫᎻᎯᎷᎷᎬᎠ
Hmmm
Mitesh
GEC Modasa
You live in kapadvanj or modasa ?