I need to write a program that asks for the input of variables and one variable must be entered as "?", but I cannot get the program to use "?" at all. Also, I don't know how to create a driver function. Once I get the "?" input working, will the driver function just essentially be the equation I am given? Any help would be appreciated.
stankit 1 Newbie Poster
Recommended Answers
Jump to PostI need to write a program that asks for the input of variables and one variable must be entered as "?", but I cannot get the program to use "?" at all. Also, I don't know how to create a driver function. Once I get the "?" input working, will …
Jump to PostIf your input statement requires a number (double or int) you cannot enter a '?'.
You need to input a string, test the data for '?' or number. If number, translate it from string to value.
All 6 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
thomas_naveen 105 Junior Poster
stankit 1 Newbie Poster
stankit 1 Newbie Poster
thomas_naveen commented: for effort shown +1
thomas_naveen 105 Junior Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
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.