I am a beginner in C++. And i am very thankful to you if answer my question kindly. i want to know that if i save a file with a lot of data using ofstream then if i want to find a specific data from whole file. who can i do it.How can i make a struct or function for it. what is the coding please tell me.
just for those in need, i thought this delimiter wasn't working well, so i rewrote it:
virtual CString GetNextToken(); // Returns the next token
virtual BOOL MoreTokens(); // Do we have any more tokens to retrieve
CToken(CString str,CString token=" ");
CString m_strToToken; // The original string to tokenize
CString m_strLeft; // The string we have left after taking tokens out
CString m_strToken; // What is the value to tokenize on?
int GetAmount(CString str);
i want a help from u?now i am doing a project with some lexiacal analysing data.actually my problem is i have to do this with a group of data.from the given passage or text i have to find out the stake hilders needs,alterables and constraints.i have to identify these thibgs from the text.for this i have to search each and every string.could u please suggest some tools to identify these things from a passage.if could it will a great help for me.and i am doing this with c++ and flex (unix programming toool).hindly plzz suggest some logics and better sites from there i could find sample codes....... thanking you
I am a beginner in visual C++ programming.I have to do a program that read a multi-command file . Each command have a fixed number of parameters .I have to make a string analysis and based on that analysis the program should fill some small records like matrix (two dimension vectors).
What would be the best way to do this?(in special the string analysis).
When I have only one token in the string, say "B" without any delimiters, I would expect to get "B" on calling GetNextToken. But MoreTokens() returns "false".
I think, the "Check to see if there anymore tokens" from GetNextToken should also be done in the constructor. Then the flag "m_bFinalToken" would be set correctly.
What do you think of it?