arithmetic operation

greetings,

if let say selection is an arithmetic operation like +,-,* and /.

i cannot describe "selction" as int Selection ryte... since int is only for integers.

so what can i use to describe this arithmethic operation.

eg: cin >> Selection;
if (Selection == +)
cout <<

thanking you in advance
Make selection a char, and compare to '+'.
Hope this helps.
thank you...
Topic archived. No new replies allowed.