by: luigi |
last post by:
Hi,
I am trying to speed up the perfomance of stl vector by
allocating/deallocating blocks of memory manually. one version of the
code crashes when I try to free the memory. The other version...
|
by: Duncan |
last post by:
I need to populate a vector with the following struct details:\
struct group
{
string groupname;
int gid;
list<string> members;
};
the text file which this is to read from is in the...
|
by: Joseph |
last post by:
I was doing my assignment,but encountered a problem at last step!!!!!!
for easy reading, i ommited lots of other things
//=====================code begin================================...
|
by: Hamish |
last post by:
I havea program which on execution gives unpredictable behaviour (it
shouldn't). In trying to track down the problem, I'm wondering if there is a
difference between these two ways of filling a...
|
by: koperenkogel |
last post by:
Dear cpp-ians,
I am working with a vector of structures.
vector <meta_segment> meta_segm (2421500);
and the structure look like:
struct meta_segment
{
float id;
float num;
|
by: repairman2003 |
last post by:
Considering this struct:
typedef struct ServiceRecord
{
vector<string> service;
vector<Date> date;
} ServiceRecord;
Date is declared elsewhere as:
|
by: sd2004 |
last post by:
Hi,
there is "array of structures"
Is there anything likes "vector of structures" in C++ ?
Please give me one example.
|
by: y-man |
last post by:
Hi,
I am creating a child class of the vector, which contains a couple of
functions to make the work with carthesian coordinate vectors easier.
To make things work more easily, I would like to...
|
by: jeff_j_dunlap |
last post by:
I recently began using STL containers, mainly to store pointers to
structures using a vector:
std::vector <dataStruc*vdata;
Next, I fill the container within a loop:
vdata.push_back(new...
|
by: Tony |
last post by:
Hello,
For my application, I have a vector containing data that I need,
vector<NODEnode_data; and I have a pointer of vectors which are
sorted by some criterion as vector<NODE*np. I have planned...
|
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: 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...
|