what is the wrong?...this massage came when i decleration a pointer in my program and use it !!
taimor
Recommended Answers
Jump to Postline 23 maybe.
Jump to PostOn line 4 you declare
o
asint *o=new int;
. This ony gives you a single int pointer. So when you call line 16 you invalidate the pointer because you step out of the memory allocated to it. It looks to me like you needo
to be an array. …
All 7 Replies
Suzie999
245
Coding Hobbyist
zain.imtiaz
0
Newbie Poster
taimor
NathanOliver
429
Veteran Poster
Featured Poster
taimor
NathanOliver
429
Veteran Poster
Featured Poster
taimor
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.