how to store different values of a pot to be called up latter?

Grumpy_Mike:
I can't believe it.
You criticise me for telling a beginner about an array and then you recommend him use a STL!

LOL! Well I was joking, but I only explained the STL because he asked. I don't think he should try it. But if he really needs to store a list of numbers the Vector might be easier than an array.

To answer his questions, there is no such thing as a digital pot. All pots are variable resistors. When you measure their value you ger a number, which you then store in memory. What you want to do is very straightforward and is something a beginner to programming can handle.