I am trying to write a program that allows user defined entry of unlimited float numbers. I forgotten what it is I need to use write this.I am new to C++ and still learnig . I would greatly appreciate any help you can give me thanks.
Printable View
I am trying to write a program that allows user defined entry of unlimited float numbers. I forgotten what it is I need to use write this.I am new to C++ and still learnig . I would greatly appreciate any help you can give me thanks.
There are many different ways to solve this problem; chances are
you'll need to use whatever concepts you're currently learning
in class [ie: examine the chapter you guys are on].
This calls for the talents of "dynamic memory". Look up 'new' and
'delete'. If you don't want to deal with that, you can use a
vector. In fact, I'd probably deal with a vector of floats myself.
--Paul
thanks paul for your help...........I am gonna check this out