myStruc* currentStruc=new myStruct is in heap, but the element inside myStruct is in stack!
Forum Rules
Bookmarks