473,395 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

define string class which implements linked list at backend

solve a problem:

define a Class(MyClassSArray a, b, c) which implements an array of string.
But, in the backend it is actually implementing Linked List, so that memory
is dynamically allocated.

eg: i can define like
a[10000] = "hello";
a[100] = b[100];,
printf(c[100]);
Jul 22 '05 #1
2 1435

"saurabh" <sa************@yahoo.com> wrote in message
news:48**************************@posting.google.c om...
solve a problem:

define a Class(MyClassSArray a, b, c) which implements an array of string.
But, in the backend it is actually implementing Linked List, so that memory is dynamically allocated.

eg: i can define like
a[10000] = "hello";
a[100] = b[100];,
printf(c[100]);


Sure, no problem. How about giving me your prof's email address, and I'll
send it there directly? Just $499, this week only.
Jul 22 '05 #2
On Wed, 05 May 2004 08:09:14 -0700, saurabh wrote:
solve a problem:

define a Class(MyClassSArray a, b, c) which implements an array of string.
But, in the backend it is actually implementing Linked List, so that memory
is dynamically allocated.

eg: i can define like
a[10000] = "hello";
a[100] = b[100];,
printf(c[100]);


#include <iostream>
#include <vector>
#include <string>

std::vector<std::string> blah;
blah.push_back("Hello");
blah.push_back("World");

std::cout << blah[0] << " " << blah[1] << std::endl;
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: robert demo via AccessMonster.com | last post by:
I'm trying to retrieve the connection string for a linked table in a backend that is password protected. I've modified the code shown below to temporarily check that the backend has been...
20
by: Scott M. | last post by:
What are the advantages of defining a class as part of another class definition (nesting classes)?
33
by: Jordan Tiona | last post by:
How can I make one of these? I'm trying to get my program to store a string into a variable, but it only stores one line. -- "No eye has seen, no ear has heard, no mind can conceive what God...
3
by: Parasyke | last post by:
Can anyone guide me through changing the location of my linked tables through the Linked Table Manager? (MS-Access 2000) Here's what I've done: I'm in the front-end application on a split...
5
by: probstm | last post by:
I am using a message handler class that implements amongst others: static void message ( std::string aHeader, std::string aMessage, int aTimeout = 0, MessageType aFlag = MSG_Information ); ...
1
by: odrap | last post by:
I have a database written in MS Access 2.O that i'm intend to convert to MS ACCESS 2007. The database is a multiuser application which consist of a application database as the frontend and a Data...
1
by: rlntemp-gng | last post by:
I have two .mdbs, MyTestApp.mdb- front end for forms and MyTestData.mdb-backend for tables. While the front end is copied to the user's desktop via a batch file, the front end is linked to the...
5
by: cbmeeks | last post by:
Hello all. I have a project that I am working on and I need some suggestions. First, I have a class that contains a value and a reference to a parent class. For example: public class Data
7
by: Tonni Tielens | last post by:
I'm trying to create a pure virtual class describing an interface. Normally, when I do this I make the destructor pure virtual so that, even if there are no members in the class, it cannot be...
0
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...
0
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...
1
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...
0
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.