Click here to Skip to main content
15,909,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalruntime error, abnormal program termination Pin
valerie9919-Aug-05 12:21
valerie9919-Aug-05 12:21 
GeneralRe: runtime error, abnormal program termination Pin
Saurabh.Garg19-Aug-05 15:51
Saurabh.Garg19-Aug-05 15:51 
GeneralRe: runtime error, abnormal program termination Pin
John R. Shaw20-Aug-05 3:45
John R. Shaw20-Aug-05 3:45 
QuestionHow do I access the 'ProductVersion" from VS_VERSION_INFO Pin
cgb14319-Aug-05 11:19
cgb14319-Aug-05 11:19 
AnswerRe: How do I access the 'ProductVersion" from VS_VERSION_INFO Pin
try8819-Aug-05 17:17
try8819-Aug-05 17:17 
AnswerRe: How do I access the 'ProductVersion" from VS_VERSION_INFO Pin
cmk20-Aug-05 9:08
cmk20-Aug-05 9:08 
AnswerRe: How do I access the 'ProductVersion" from VS_VERSION_INFO Pin
ThatsAlok21-Aug-05 18:58
ThatsAlok21-Aug-05 18:58 
QuestionSimple String Tokenizer? Pin
ricecake19-Aug-05 9:32
ricecake19-Aug-05 9:32 
I am trying to write a function that will take a string (read from a whole line) as input. Then for each phrase found in the line, it will add it to a vector. Finally, we return the number of phrases we found. The way that phrases are delimited are with the tab character. The below almost works, but I am finding that it is delimiting on any whitespace. Is there some easy way to tell the istringstream >> operator to only use tabs?


int setcol(const std::string& input_record, std::vector<std::string>& colv)
{
	std::istringstream s(input_record);
	std::string temp;

	colv.clear();
	while (s >> temp)
	{
		colv.push_back(temp);
	}

	return colv.size();
}


--
Marcus Kwok
AnswerRe: Simple String Tokenizer? Pin
ricecake19-Aug-05 9:50
ricecake19-Aug-05 9:50 
GeneralRe: Simple String Tokenizer? Pin
Chris Losinger19-Aug-05 10:19
professionalChris Losinger19-Aug-05 10:19 
GeneralGDI+ reverse Pin
mpastchenko19-Aug-05 9:30
mpastchenko19-Aug-05 9:30 
QuestionUsing Microsofts Windows XP icons? Licensing? Pin
Anonymous19-Aug-05 8:43
Anonymous19-Aug-05 8:43 
AnswerRe: Using Microsofts Windows XP icons? Licensing? Pin
try8819-Aug-05 8:46
try8819-Aug-05 8:46 
AnswerRe: Using Microsofts Windows XP icons? Licensing? Pin
Michael P Butler19-Aug-05 10:18
Michael P Butler19-Aug-05 10:18 
AnswerRe: Using Microsofts Windows XP icons? Licensing? Pin
Graham Bradshaw19-Aug-05 10:19
Graham Bradshaw19-Aug-05 10:19 
QuestionHow many instances??? Pin
Renjith Ramachandran19-Aug-05 7:42
Renjith Ramachandran19-Aug-05 7:42 
AnswerRe: How many instances??? Pin
try8819-Aug-05 7:48
try8819-Aug-05 7:48 
AnswerRe: How many instances??? Pin
S. Senthil Kumar19-Aug-05 7:49
S. Senthil Kumar19-Aug-05 7:49 
GeneralRe: How many instances??? Pin
toxcct19-Aug-05 7:54
toxcct19-Aug-05 7:54 
GeneralRe: How many instances??? Pin
Renjith Ramachandran19-Aug-05 20:03
Renjith Ramachandran19-Aug-05 20:03 
GeneralRe: How many instances??? Pin
toxcct19-Aug-05 22:29
toxcct19-Aug-05 22:29 
GeneralRe: How many instances??? Pin
S. Senthil Kumar20-Aug-05 0:53
S. Senthil Kumar20-Aug-05 0:53 
GeneralRe: How many instances??? Pin
Renjith Ramachandran19-Aug-05 20:00
Renjith Ramachandran19-Aug-05 20:00 
GeneralRe: How many instances??? Pin
S. Senthil Kumar19-Aug-05 21:05
S. Senthil Kumar19-Aug-05 21:05 
Generalmanaging char arrays Pin
elephantstar19-Aug-05 7:40
elephantstar19-Aug-05 7:40 

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.