Click here to Skip to main content
15,888,967 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralC++/CLI Community in Orkut Pin
Majid Shahabfar16-Dec-04 0:17
Majid Shahabfar16-Dec-04 0:17 
GeneralBlank Control ID when invoking Add Member Variable Wizard Pin
Anonymous14-Dec-04 0:36
Anonymous14-Dec-04 0:36 
GeneralOpenoffice.org COM interface Pin
Munchausen12-Dec-04 1:26
Munchausen12-Dec-04 1:26 
GeneralExample of RegDeleteKey Pin
jonavon blakly10-Dec-04 17:57
jonavon blakly10-Dec-04 17:57 
GeneralRe: Example of RegDeleteKey Pin
TigerNinja_13-Dec-04 3:49
TigerNinja_13-Dec-04 3:49 
Generalhelppp Pin
James19859-Dec-04 16:01
James19859-Dec-04 16:01 
GeneralRe: helppp Pin
TigerNinja_13-Dec-04 2:44
TigerNinja_13-Dec-04 2:44 
GeneralHelp with Strtok Pin
civicnar8-Dec-04 13:34
civicnar8-Dec-04 13:34 
Here is the section out of my program that I am having problems with.

char first[20];



ifstream
fin;


openfile(fin);


char str[20];
char* trun;
char* trun2;
char *seps = "\0";

while (!fin.eof())
{fin.getline(str, 30, '\n');
fin.ignore(1);
cout<<str<<endl;
trun = strtok (str,seps);
cout<<"---"<<trun<<"---\n";
if (!doRetrieveVertex (graph, trun))
{doInsertVertex (graph, trun);}
strcpy(first, trun);

while (trun2 != NULL)
{ cout<<trun2;
trun2 = strtok (NULL, seps); \\Here

if (!doRetrieveVertex (graph, trun2))
doInsertVertex (graph, trun2);


cout<<"Internal while";
}
cout<<"External while";

}


If I comment out where it says "trun2 = strtok (NULL, seps);" Then it will run but it stays in an infinite loop inside that Internal while loop. But if I do not then I get a core dump. Please help me if you can it is due tomorrow. Thanks

James
GeneralRe: Help with Strtok Pin
civicnar8-Dec-04 13:41
civicnar8-Dec-04 13:41 
GeneralRe: Help with Strtok Pin
Christian Graus8-Dec-04 13:44
protectorChristian Graus8-Dec-04 13:44 
GeneralRe: Help with Strtok Pin
VKatti15-Dec-04 2:36
VKatti15-Dec-04 2:36 
GeneralRe: Using MFC dialogs from .Net Pin
TigerNinja_13-Dec-04 3:11
TigerNinja_13-Dec-04 3:11 
GeneralRe: Using MFC dialogs from .Net Pin
sunhui15-Dec-04 12:00
sunhui15-Dec-04 12:00 
Generaldictionary Pin
nayyab6-Dec-04 12:40
nayyab6-Dec-04 12:40 
GeneralRotating an image in a picture box Pin
fluminis6-Dec-04 11:13
fluminis6-Dec-04 11:13 
GeneralRe: Rotating an image in a picture box Pin
TigerNinja_13-Dec-04 4:05
TigerNinja_13-Dec-04 4:05 
GeneralRe: Rotating an image in a picture box Pin
fluminis13-Dec-04 7:47
fluminis13-Dec-04 7:47 
QuestionHow to Map a network drive Share? Pin
SeanV5-Dec-04 9:37
SeanV5-Dec-04 9:37 
GeneralASP.NET using MC++ or C++/CLI Pin
Ahmed Al-Lakani3-Dec-04 21:02
Ahmed Al-Lakani3-Dec-04 21:02 
GeneralRe: ASP.NET using MC++ or C++/CLI Pin
TigerNinja_13-Dec-04 4:28
TigerNinja_13-Dec-04 4:28 
Generaltutorials needed Pin
guyaton1-Dec-04 14:58
guyaton1-Dec-04 14:58 
GeneralRe: tutorials needed Pin
TigerNinja_13-Dec-04 4:11
TigerNinja_13-Dec-04 4:11 
GeneralAxImp.exe error Pin
h00ps29-Nov-04 8:47
h00ps29-Nov-04 8:47 
Generalnatural deduction in c++ Pin
Ankit Aneja29-Nov-04 2:57
Ankit Aneja29-Nov-04 2:57 
GeneralRe: natural deduction in c++ Pin
Christian Graus30-Nov-04 14:30
protectorChristian Graus30-Nov-04 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.