Hello guys, I need to make a C program that reads a text file for example the following sentence: 5 + 7, 10-15 ... (etc.), and show the result.
I managed to make it solve part of the problem. The program is making the sum of the first line. But just to rely on a digit (3 + 5).
And the program only reads up to the first line. Can anyone help me?
Podouskislender
0
Newbie Poster
Recommended Answers
Jump to PostHow general is this intended to be? Because you're looking at essentially a mini-compiler that parses and evaluates mathematical expressions. In other words, it's not exactly a trivial project.
Jump to PostThat tells me exactly nothing. :P
All 6 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Podouskislender
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
David W
131
Practically a Posting Shark
David W
131
Practically a Posting Shark
Podouskislender
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.