Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

STRING TO FUNCTION 'C' HELP PLEASE!!!!!!! I've got an assignment where I have strings (char num1, char num2, char ops). I know they are an

STRING TO FUNCTION 'C' HELP PLEASE!!!!!!!

I've got an assignment where I have strings (char num1, char num2, char ops). I know they are an array of characters, and i've written a function that decodes them no problem, however, I need to come up with a working method of getting the operator string (ops) to ONLY do + and - commands and reject commands like: "!", "*", "++", "--", etc. with an error print. It should be easy but it's not working as planned for me and gives me problems (i've been using a lot of if/else). Please help me out with this part. Keep in mind I have a function that converted num1 and num2 into integers called "ntin()".

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago