I suspect that the problem is that you are using i>>str2; where str2 is defined as a character array. If you add a print command after that line you can see exactly what is returned by the >> operator. You should use a string type to get each word. Alternatively use ordinary C library functions to read each line and tokenise into words.
Thanks for taking time to reply to me bro.
Now, I would if i could what you told me but the problem is that i HAVE to make this project in Turbo C++ only and i know that this is ancient and i will go to hell for using it but plz try to help me with this project with the turbo Compiler
Plz also tell me how to search for the entered word in multiple files.
Take your code from the ifstream declaration down and move to a separate function. Create a loop that iterates each filename you wish to process, calling the aforementioned function with each filename.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I have CBS_SIMPLE CBS_OWNERDRAWVARIABLE ComboBox that I populate via DrawItem using DrawText
everything works fine in debug mode and for that matter in release mode while under the Visual Studio Debugger
However When I run code in Release not under the debugger the list box entries appear for a instant and then disappear
Any Suggestion how to go about debugging would be appreciated
Your code is relying on a local variable value to start zero and it won't be in release (they start unset usually just junk whatever was on the stack beforehand when it gets allocated) but in debug it zeros all local variables. It is one of the core differences between debug and release mode.
Usually its something like a bool flag that is assumed to start false (0) which won't in release mode as any non zero value means true.
Just check which local variable(s) you are assuming starts as zero and set the thing to zero manually
/* this will behave the same as someGoodFunc in debug but not in release */
void someWrongFunc (void)
void someGoodFunc (void)
bool IamGoodBool = 0;
That was not really my question. The Internet uses HTTP and TCP/IP protocols, the Mobile Phone service runs over the same physical network, but, with a different protocol. What is this different Protocol! Where is the Spec for it!
GPRS extends the GSM Packet circuit switched data capabilities and makes the following services possible:
SMS messaging and broadcasting
"Always on" internet access
Multimedia messaging service (MMS)
Push-to-talk over cellular (PoC)
Instant messaging and presence—wireless village
Internet applications for smart devices through wireless application protocol (WAP)
Point-to-point (P2P) service: inter-networking with the Internet (IP)
Point-to-multipoint (P2M) service: point-to-multipoint multicast and point-to-multipoint group calls
On most devices if they have a GPRS client it will then use a standard GPRS AT command set which is something like a more advanced Hayes AT modem command set.
the Mobile Phone service runs over the same physical network
As far as I know the mobile phone service runs over a totally different physical and logical network using radio transmission. Details of the actual protocol used can be found by sms protocol - Google Search[^].
Hi. What MFC control should I use in order to put a text in such a way that some text should have different background color, and most important, there will be several selection in this text, all of them with the same background color ...
I have tried with CRichEditView, and I could set a text color for several selection, but not color for background, only for text: