+ 1

Save number and character in c++

Do we can make array with save number and characters in c ++ ? Or how we can store these two together?

11th Jan 2020, 9:46 PM
Fatemeh Zahed M
Fatemeh Zahed M - avatar
4 Réponses
+ 2
I'm not fully understood your question. But Saying that charecters can converted to its asci equalent. A to Z are 65 to 90 and a to z are 97 to 122 Read about ascii charecters... Together like abc1234, is this you need then cancatinate them as strings, store in a char array...
11th Jan 2020, 10:07 PM
Jayakrishna 🇮🇳
0
thank you
11th Jan 2020, 10:25 PM
Fatemeh Zahed M
Fatemeh Zahed M - avatar
0
OK. Is that helped you..? Fine then I think you know how convert char to int... Else directly use strings.. Wel come...
11th Jan 2020, 10:28 PM
Jayakrishna 🇮🇳
0
Yes I know .. but I doubted it could be done
11th Jan 2020, 10:39 PM
Fatemeh Zahed M
Fatemeh Zahed M - avatar