by: Ingo Nolden |
last post by:
Hi there,
I am writing c++ for some months now. I think I know the language now, but not yet all the tricky things of stl.
For a kernel which is not using mfc I am writing a serialization. For...
|
by: Derek |
last post by:
I'm curious about the performance of string::c_str,
so I'm wondering how it's commonly implemented. Do
most std::string implementations just keep an extra
char allocated for the NULL termination...
|
by: Vyacheslav Kononenko |
last post by:
All,
If I am not mistaken I had some problems with code like this:
std::string foo, bar;
....
somefunc( foo.c_str(), bar.c_str() );
Problem was that c_str() used buffer shared btw...
|
by: diadia |
last post by:
string s = "hello";
const char *p = s.begin();
cout << p << endl; // print hello
s = "";
char *p2= s.begin();
cout << p2 << endl; // print hello why?????
|
by: Fred Paris |
last post by:
Hi
I'm writing a class to act as a wrapper around a C library.
This C library exposes functions like:
SetSomeInfo( char *pTheInfo );
In my wrapper class, the info in question is in a STL...
|
by: Martin Pöpping |
last post by:
Hello,
I´ve a problem with the follwing code lines:
string line;
ifstream myfile ("doorcoordinates.txt");
if (myfile.is_open())
{
char str;
char * pch;
|
by: DaVinci |
last post by:
//error happen even when there existe a a.txt file
#include<fstream>
#include <string>
#include <iostream>
using std::string;
using std::fstream;
int main()
{
string s = "a.txt";
fstream...
|
by: shyam |
last post by:
Hi
I have a program within which i have the following statement.
sprintf(somevar,"%s/%s.%s",PREFIX.c_str( ),MIDDLE.c_str(
),SUFFIX.c_str( ) );
Here PREFIX, MIDDLE and SUFFIX are all const...
|
by: jabbah |
last post by:
I want to use a stringstream internally, but to conform to an api I want to return a char*.
Only this does not work:
#include <iostream>
#include <string>
#include <sstream>
using...
|
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: 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: 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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: 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...
|