|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
run time error...
Can someone please tell me what is wrong with this:
void S_S_Processor: rocess_tag_path_var(string tp_strng){ Tag_Path tp1 = Tag_Path(); start_tp.add_child(&tp1); } where Tag_Path is a linked list type variable. where start_tp is a Tag_Path global variable. The Tag_Path class is fine. Hell my entire code compiles fine, but it will not execute properly. It runs into problems have way through running it. Am I not allowed to create a local variable in a method, and add a pointer to it to the global variable? Is that it? Please advise.... http://www.johnathangaltfilms.com |
|
#2
|
||||
|
||||
|
Er... shouldn't that be:
Tag_Path *tp1 = new Tag_Path(); |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > run time error... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|