Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using Google Map in MFC application? Pin
CODEPC28-Jan-10 11:40
CODEPC28-Jan-10 11:40 
AnswerRe: Using Google Map in MFC application? Pin
Nemanja Trifunovic28-Jan-10 10:29
Nemanja Trifunovic28-Jan-10 10:29 
QuestionSyntax problem with "" Pin
gregarion28-Jan-10 3:50
gregarion28-Jan-10 3:50 
AnswerRe: Syntax problem with "" Pin
Covean28-Jan-10 3:55
Covean28-Jan-10 3:55 
QuestionDLL, EXE, dialog question Pin
DaveHitchman28-Jan-10 2:58
DaveHitchman28-Jan-10 2:58 
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3:07 
QuestionActiveX Controls. Pin
ashwath197928-Jan-10 2:28
ashwath197928-Jan-10 2:28 
QuestionInputing variable into string.find Pin
gregarion28-Jan-10 2:25
gregarion28-Jan-10 2:25 
Hey guys, could i check with something

What i would like to do is to be able to input a number and using that number as the index , it will start finding where a certain line is (in this case yht) from there. for example


int main ()
{
string s("abcdefghijleeeeeeeyhtpr") ;


string::size_type loc2 = s.find( "yht" , 0 )  ;


cout << loc2 << endl ;


the input will be 18 , as it starts counting from the start of the string. What i would like to know is, am i able to set a variable in the find syntax? instead of putting 0 , can i declare a variable and then can the sting.find() read it?

So , if i were to input in 3 , how can i declare this and then put it into the find statement? Hope for some help. thanks
QuestionRe: Inputing variable into string.find Pin
CPallini28-Jan-10 2:38
mveCPallini28-Jan-10 2:38 
AnswerRe: Inputing variable into string.find Pin
gregarion28-Jan-10 2:53
gregarion28-Jan-10 2:53 
GeneralRe: Inputing variable into string.find Pin
CPallini28-Jan-10 3:35
mveCPallini28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:35
David Crow28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:32
David Crow28-Jan-10 3:32 
GeneralRe: Inputing variable into string.find Pin
gregarion28-Jan-10 3:47
gregarion28-Jan-10 3:47 
QuestionDetermine the language of the OS Pin
Joschwenk66628-Jan-10 1:13
Joschwenk66628-Jan-10 1:13 
AnswerRe: Determine the language of the OS Pin
Richard MacCutchan28-Jan-10 1:42
mveRichard MacCutchan28-Jan-10 1:42 
AnswerRe: Determine the language of the OS Pin
Covean28-Jan-10 1:43
Covean28-Jan-10 1:43 
Questionwin7 & vista's problem Pin
nenfa28-Jan-10 1:07
nenfa28-Jan-10 1:07 
AnswerRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 1:44
mveRichard MacCutchan28-Jan-10 1:44 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:21
nenfa28-Jan-10 3:21 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:28
nenfa28-Jan-10 3:28 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 5:07
mveRichard MacCutchan28-Jan-10 5:07 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 21:52
nenfa28-Jan-10 21:52 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 22:22
mveRichard MacCutchan28-Jan-10 22:22 
GeneralRe: win7 &amp; vista's problem Pin
nenfa5-Feb-10 15:24
nenfa5-Feb-10 15:24 

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.