A
andy.lee23
Hi, I've been learning C for a couple of weeks and I need some help. I
have a text file and I want to extract integers from it to perform
calculations.
The format of the file is as follows:
3 2
3 5
5 7
I have written code to extract each line and put it into a string, but
I don't know how to convert a string to an integer.
Any help would be appreciated
Thanks in advance.
have a text file and I want to extract integers from it to perform
calculations.
The format of the file is as follows:
3 2
3 5
5 7
I have written code to extract each line and put it into a string, but
I don't know how to convert a string to an integer.
Any help would be appreciated
Thanks in advance.