I am trying to translate a subset of Java to c++. How can i simulate imports(single and on-demand) in c++ ?
Share
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.
Java allows classes to use each other in their definitions, c++ does not:
So I guess it is not possible to retain the same import structure.
Easiest way – grab some java to c++ converter and look through the code it generates, might be useful.