im taking discrete mathematics which is a freshman class(the class that im doing this for), and i've only taken one cs class to go towards my degree. I'm having trouble figuring out this program. you cant use any operator whatsoever except == && || = ! and thats about it. im not proficient in c++ and i only need to do an addition method, our professor picked a students sample code without an addition method, which we have to use. The person used reverse iterators and <list> of an enum type that lists numbers(0-9) and a - sign. I need to figure out how to add iterate through the two numbers given by the user and add them up without plus signs. My professor doesnt even want a for loop to have ++ -- so this is really ridiculous, but he let one fly with the student that made this that will be fixed later by the professor.But i cant do that with mine. Anyone have an ideas on how i would take to integers given by a user to add them up? They are a enum type and i cant use + - so it's a lot harder than a typical person would think adding something up would be I dont feel comfortable posting someone elses code so someone can get an idea, but i can pm it. but if this can be explained without that it will be great. thanks.
one more rule:
The only libraries i may use are <list> and the I/O libraries (<stdio>, <conio>, <iostream>)
one more rule:
The only libraries i may use are <list> and the I/O libraries (<stdio>, <conio>, <iostream>)