I have three ints.
Fx:
2012
11
21
I want to convert them into a single int 20121121
Can this be done?
I have tried messing around with atoi() without results.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, to answer directly the question that you asked, you would do it like this:
But your approach is quite possibly not the best solution to your actual problem.