>it tells me the 'p' is not declared identifier
No, it tells you that P is not a declared identifier. Notice the difference in case and remember that C++ is case sensitive.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401