Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fractions #44

Open
ljc20 opened this issue Jan 28, 2022 · 1 comment
Open

Fractions #44

ljc20 opened this issue Jan 28, 2022 · 1 comment

Comments

@ljc20
Copy link

ljc20 commented Jan 28, 2022

Hi, I am really struggling with the separating of the fractions part in order for them to be interpreted by c++ correctly. I was wondering if there was a simple way of doing this

@ibricchi
Copy link

Once you have it as a string, cpp has string find, and split which can help you get each part of the fraction.
For reference for the functions look at https://www.cplusplus.com/reference/string/string/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants