by: Christopher Benson-Manica |
last post by:
Let's say I have a std::string, and I want to replace all the ','
characters with " or ", i.e. "A,B,C" -> "A or B or C". Is the
following the best way to do it?
int idx;
while(...
|
by: Christopher |
last post by:
I am using std::string to parse a command given by the user, I don't
understand why the following snippet is not working as expected.
string buffer, // store commands from...
|
by: JustSomeGuy |
last post by:
Getline has a delimiter character parameter that is used to say when input
should stop. (std::cin.getline)
However what do you do if you have multiple conditions/character on which
you wish to...
|
by: Suki |
last post by:
Hi all,
I'm facing a rather strange design problem. Let me explain it.
I'm writing an application, which deals with strings extensively. So
decided to write a new string class (CXString say) for...
|
by: ma740988 |
last post by:
Oh what fun it is to get acclimated with the various containers and
algorithms.. I'm trying to determine if I could use find/find_first_of
algorithms to achieve the same object of a for loop when...
|
by: Chris |
last post by:
Hey all. Anyone who is familiar with Python programming knows that you
can have code like this:
list =
This code puts all the items processed by the for loop in a list plus
1. Is there a way...
|
by: scottys0 |
last post by:
Hi everyboy,
I'm working in an IOC-IBM (IBM open class) replamecent library. the
code seens confused but , no, isn't.
#define INumber long
class IString : public std::string {
private:...
|
by: Bryan |
last post by:
If I have the following string from a huge xml file:
std::string s = "<input key1=\"v1\" key2=\"val4\" key3=\"test\" />";
I need to get the values associated with the keys out from this line....
|
by: lovecreatesbea... |
last post by:
Can the 3rd and 4th arguments of find_first_of(beg1, end1, beg2, end2)
and find_end(beg1, end1, beg2, end2) be the same? I got an invalid
iterator on following 2 calls:
pos_ic_b =...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|