| | |
class array problem!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Solved Threads: 0
class array problem.
--------------------------------------------------------------------------------
I encoutered a problem and can't solve it:
in main()
hformation *fdatah;
fdatah=new hformation();
then sent it to a function:
formationinput(vformation *fdatav,hformation *fdatah,ptfilein);
in the function, I redefined this class pointer as an class array:
fdatah=new hformation[7];
passed compile and link, but each time debug to here got error:
Unhandled exception at 0x00433520 in forwardso.exe: 0xC0000005: Access violation reading location 0x00000000.
What's the cause of this problem?
--------------------------------------------------------------------------------
I encoutered a problem and can't solve it:
in main()
hformation *fdatah;
fdatah=new hformation();
then sent it to a function:
formationinput(vformation *fdatav,hformation *fdatah,ptfilein);
in the function, I redefined this class pointer as an class array:
fdatah=new hformation[7];
passed compile and link, but each time debug to here got error:
Unhandled exception at 0x00433520 in forwardso.exe: 0xC0000005: Access violation reading location 0x00000000.
What's the cause of this problem?
![]() |
Similar Threads
- Return Array from C++ (C++)
- Array problem (Java)
- Array problem (C++)
- How to get Array type members' value from a class (JSP)
- i have problem with array plz help (Java)
- Large Array Problem (PHP)
- How do I create a program using an Array ? (C++)
Other Threads in the C++ Forum
- Previous Thread: Wrong user input
- Next Thread: How to assign my own numeric values to a char array?
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






