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: Chris Mantoulidis |
last post by:
PROBLEM: I'm having some weird problems with string::find() (in
ParamGenerate()), but since I'm not sure if that is the source of all
bad output in my program, I'm posting least code that's...
|
by: JKop |
last post by:
Can some-one please point me to a nice site that gives an
exhaustive list of all the memberfunctions,
membervariables, operators, etc. of the std::string class,
along with an informative...
|
by: Tero Toivanen |
last post by:
Dear experts,
I am doing code to Solaris 9 system with C++.
I get every now and then segmentation fault in the following code that
removes
heading and trailing white spaces (mLineStr is of...
|
by: Jason Heyes |
last post by:
If s is a std::string, does &s refer to the contiguous block of
characters representing s?
|
by: JustSomeGuy |
last post by:
I need to make a class called uid.
A UID is a unique identifier.
It looks like... 1.2.3.345.1.2.4.566
This uid get transmitted over a network as 8 bit binary data.
If the length of the UID is...
|
by: Jim Langston |
last post by:
Is there any builtin lowercase std::string compare? Right now I'm doing
this:
if ( _stricmp( AmmoTypeText.c_str(), "GunBullet" ) == 0 )
AmmoType = Item_Ammo_GunBullet;
Is there anything the...
|
by: Jim Langston |
last post by:
Is it possible to initialize a std::string with a character array, not
neccessarily null terminated? I.E. Given something like this:
char buffer;
buffer = 0x01;
buffer = 0x00;
buffer = 'A';...
|
by: darkkal |
last post by:
Hi I'm a student majoring a computer .
I tried to make a simple hashing table like (int) 1 , (std::string) "One"
There is a problem in using std::map ㅜㅜ
this is a simple code.
PLZ~~Help...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|