473,804 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

STL: copy vector of class ?

could someone please show/help me to copy all element from "class dog"
to "class new_dog" ?
Note: "class new_dog" has new element "age" which should have value
"my_age"
/////////////////////////////// source code
///////////////////////////////
#include<iostre am>
#include <string>
#include<vector >
#include<sstrea m>
#include<fstrea m>
#include<numeri c>
using namespace std;

class dog
{
public:
string name;
int id;
int YearBorn;
string type;
};

class new_dog
{
public:
string name;
int id;
string age;
string type;
};

#define goldenretriever 11
#define Lab 33
#define Boxer 44
#define Terrier 55
int const CurrentYear =2006;

int dog_name (const string& name,const string& type ,const int age);
int main()
{
vector<dog> v;
vector<new_dog> v2;

new_dog dog_type;
dog dog_class;

ifstream in ("test5e.txt ");
string line;
while (!getline(in,li ne).eof()){
if (line.find("#") !=std::string:: npos)continue;
istringstream is(line);
if(is>>dog_clas s.name>>dog_cla ss.id>>dog_clas s.YearBorn>>dog _class.type)
{
v.push_back(dog _class);
}
}
vector<dog>::it erator search;
for (search=v.begin ();search!=v.en d();++search){
int my_age;
switch (search->id){
case goldenretriever :
my_age =dog_name(searc h->name,search->type,search->YearBorn);
//cout << "My dog is: "<<search->name<< " Age is :"<<
my_age<<endl;
break;
case Lab:
my_age=dog_name (search->name,search->type,search->YearBorn);
break;
case Boxer:
my_age=dog_name (search->name,search->type,search->YearBorn);
break;
case Terrier:
my_age=dog_name (search->name,search->type,search->YearBorn);
break;
default:
break;
} //switch

cout << "Dog name is: "<<search->name<< " ,Age is :"<<
my_age<<endl;
} // for loop

return 0;

}
int dog_name (const string& name,const string& type,int YearBorn){

return (CurrentYear-YearBorn);
}

/////////// input file "test5e.txt " //////////////////////////////

############### ############### ##########
#Name ID YearBorn Type
############### ############### ##########
Cricket 11 2000 GoldenRetriever
Nitro 11 1999 GoldenRetriever
Maxtor 33 2004 Lab
Arron 44 2001 Boxer
#Arron 44 2002 Boxer
Dora 55 2000 Terrier

Jan 24 '06
18 2903
In article <dr**********@m urdoch.acc.Virg inia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
Daniel T. wrote:
Any algorithm that is used to determine the dog's age, should probably
also check for things like negative age, and probably also check to see
if the dog died before that year (and thus never reached that age.) In
other words, in a real program the algorithm would probably be much more
complicated that simply subtracting one number from another.
and:
da********@warp mail.net wrote:
The proposed function is

int dog::age_at( int 5year ) { return year - year_born; }

This is a utility function, and belongs in something like DogUtil:

struct DogUtil {
//...

static int ageAt(const Dog& dog, int year);
// Return the non-negative age of the specified 'dog' in the
// specified 'year'. Return a negative value is 'year < 0', or
// 'year' is less than the year of birth of 'dog'.
};


Will you agree with me that a dog's age is a piece of data that is
associated with the dog? If so, why is some other class providing that
data? And if not, why is it the *dog's* age?


Your proposal means to increase the number of members for the dog class
without sufficient cause. The proposed member yearOfBirth() provides all
necessary information and is a primitive, in terms of which other functions
can be defined. The proposed age() member lacks that property, in
particular if it would incorporate sanity checks like making sure the
result is non-negative.

Would you also opt for a member function

bool isOlderThan ( dog const & other );

or should that be a free standing function:

bool isOlder ( dog const & a, dog const & b ;


In this case, 'isOlder' should be a free standing function, because it
is not a property of any particular dog, but rather a comparison of two
different dogs.

Again, are you saying that a dog's age is not a property of the dog?
Of course, you could have both: a yearOfBirth() member and an age() member.
But where do you stop? Are you willing to add members to the dog class each
time some other piece of code would find those handy?


I add the member-function when there is some duplication (which tells us
that a function is a good idea) and the code is logically a property of
the class.
Jan 28 '06 #11
Daniel T. wrote:
In article <dr**********@m urdoch.acc.Virg inia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
Daniel T. wrote:
> Any algorithm that is used to determine the dog's age, should probably
> also check for things like negative age, and probably also check to see
> if the dog died before that year (and thus never reached that age.) In
> other words, in a real program the algorithm would probably be much
> more complicated that simply subtracting one number from another.


and:
> da********@warp mail.net wrote:
>
>> The proposed function is
>>
>> int dog::age_at( int 5year ) { return year - year_born; }
>>
>> This is a utility function, and belongs in something like DogUtil:
>>
>> struct DogUtil {
>> //...
>>
>> static int ageAt(const Dog& dog, int year);
>> // Return the non-negative age of the specified 'dog' in the
>> // specified 'year'. Return a negative value is 'year < 0',
>> or // 'year' is less than the year of birth of 'dog'.
>> };
>
> Will you agree with me that a dog's age is a piece of data that is
> associated with the dog? If so, why is some other class providing that
> data? And if not, why is it the *dog's* age?


Your proposal means to increase the number of members for the dog class
without sufficient cause. The proposed member yearOfBirth() provides all
necessary information and is a primitive, in terms of which other
functions can be defined. The proposed age() member lacks that property,
in particular if it would incorporate sanity checks like making sure the
result is non-negative.

Would you also opt for a member function

bool isOlderThan ( dog const & other );

or should that be a free standing function:

bool isOlder ( dog const & a, dog const & b ;


In this case, 'isOlder' should be a free standing function, because it
is not a property of any particular dog, but rather a comparison of two
different dogs.

Again, are you saying that a dog's age is not a property of the dog?


Well, I fail to see how you maintain that age is a property whereas isOlder
is a relation:

* isOlder is a relation between two dogs, i.e., a function that
maps ordered pairs of dogs to truth-values. A signature
representing that would read:

bool isOlder ( Dog const &, Dog const & );

* age() is a function that maps an ordered pair of a dog and a year
to a number. Here the corresponding signature reads:

int age_in_year ( Dog const &, int );

From this signature it is also clear that, if you consider age as a property
of the dog, you should also (by symmetry) consider it a property of the
year. Now, if you had a Year class, would you propose a member function:

class Year {
...

int age ( Dog const & );

};

BTW: since there is no year 0 in our calendar, a Year class is less silly
than one might think.

There really is no difference: being older than my puppy is of course a
property of dogs in the same way that being 8 years old in the year 2008 is
a property of dogs. And of course, being a year in which my puppy is 12, is
a property of years.

I cannot bring myself to take "is a property of" as a valid guideline for
class design.

Of course, you could have both: a yearOfBirth() member and an age()
member. But where do you stop? Are you willing to add members to the dog
class each time some other piece of code would find those handy?


I add the member-function when there is some duplication (which tells us
that a function is a good idea) and the code is logically a property of
the class.


Based on the demonstrated parallelism between isOlder() and age(), I would
maintain that being "logically property of the class" is not a good
guideline. Instead, I would try to go with free-standing functions as much
as possible. Within the class, I would put the bare minimum of primitives
needed to implement the free-standing functions as non-friends.

Of course, ultimately, I probably do not follow rules but gutt feelings
about what is most appropriate in a particular case. And, I guess, it is
those gutt feelings that tell me in this case, that age() should be
free-standing and the class should have a dateOfBirth() member instead.
Best

Kai-Uwe Bux
Jan 28 '06 #12

Kai-Uwe Bux wrote:
Daniel T. wrote:
Any algorithm that is used to determine the dog's age, should probably
also check for things like negative age, and probably also check to see
if the dog died before that year (and thus never reached that age.) In
other words, in a real program the algorithm would probably be much more
complicated that simply subtracting one number from another.


and:
da********@warp mail.net wrote:
The proposed function is

int dog::age_at( int 5year ) { return year - year_born; }

This is a utility function, and belongs in something like DogUtil:

struct DogUtil {
//...

static int ageAt(const Dog& dog, int year);
// Return the non-negative age of the specified 'dog' in the
// specified 'year'. Return a negative value is 'year < 0', or
// 'year' is less than the year of birth of 'dog'.
};


Will you agree with me that a dog's age is a piece of data that is
associated with the dog? If so, why is some other class providing that
data? And if not, why is it the *dog's* age?


Your proposal means to increase the number of members for the dog class
without sufficient cause. The proposed member yearOfBirth() provides all
necessary information and is a primitive, in terms of which other functions
can be defined. The proposed age() member lacks that property, in
particular if it would incorporate sanity checks like making sure the
result is non-negative.

Would you also opt for a member function

bool isOlderThan ( dog const & other );

or should that be a free standing function:

bool isOlder ( dog const & a, dog const & b ;

How would you implement it in terms of age() or in terms of yearOfBirth().
Note that there is a subtle difference between

bool isOlder( dog const & a, dog const & b ) {
return( a.yearOfBirth() < b.yearOfBirth() );
}

and

bool isOlderThan( dog const & a, dog const & b ) {
return( a.age( 0 ) > b.age( 0 ) );
}

namely that a.age(0) might throw since it is likely to yield a negative
result, at least for dogs born recently. Now, which year would you pick
instead of 0? If you have age also check whether the dog died already, you
are in even more trouble.

Of course, you could have both: a yearOfBirth() member and an age() member.
But where do you stop? Are you willing to add members to the dog class each
time some other piece of code would find those handy? Freestanding
functions can be added any time without the need to change the header
dog.h. That is, why I would opt for a primitive like yearOfBirth() instead
of an age() member function.


Just to clarify, Kai-Uwe is talking about 'int age_at(int year)', not
'const int age() const'. The names keep changing :-)

If you look at the two original class definitions, one has a 'YearBorn'
member, and the other has an 'age' member (although the type is
'string'). When your class represents a value, such as the dog classes
in this thread, good practice dictates that you have accessors an
manipulators (where appropriate) corresponding to the data members of
the class, and utilities that operate on class instances. You do not
typically add methods to the class to perform some random function,
like subtract the 'YearBorn' member from a random integer.

Jan 28 '06 #13
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
da********@warp mail.net wrote:
Just to clarify, Kai-Uwe is talking about 'int age_at(int year)', not
'const int age() const'. The names keep changing :-)
Not just the names, but the dependencies as well. 'age' has an implicit
dependency on whatever produces the current date, 'age_at' doesn't.
If you look at the two original class definitions, one has a 'YearBorn'
member, and the other has an 'age' member (although the type is
'string').
I have nothing against a 'yearBorn' member-function, by all means put it
in as well.
When your class represents a value, such as the dog classes
in this thread, good practice dictates that you have accessors an
manipulators (where appropriate) corresponding to the data members of
the class, and utilities that operate on class instances.
Where in the world did you get that from? The Dog class is a primary
abstraction of the problem space. I have no problem with the accessors
and manipulators, until you tell me they have to be removed/changed if
the member-variable is removed/changed. That breaks encapsulation in a
big way.
You do not
typically add methods to the class to perform some random function,
like subtract the 'YearBorn' member from a random integer.


The age of the dog is certainly not a "random function", it is important
to the problem space.

--
Magic depends on tradition and belief. It does not welcome observation,
nor does it profit by experiment. On the other hand, science is based
on experience; it is open to correction by observation and experiment.
Jan 28 '06 #14
In article <dr*********@mu rdoch.acc.Virgi nia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
Again, are you saying that a dog's age is not a property of the dog?


Well, I fail to see how you maintain that age is a property whereas isOlder
is a relation:

* isOlder is a relation between two dogs, i.e., a function that
maps ordered pairs of dogs to truth-values. A signature
representing that would read:

bool isOlder ( Dog const &, Dog const & );

* age() is a function that maps an ordered pair of a dog and a year
to a number. Here the corresponding signature reads:

int age_in_year ( Dog const &, int );

From this signature it is also clear that, if you consider age as a property
of the dog, you should also (by symmetry) consider it a property of the
year. Now, if you had a Year class, would you propose a member function:

class Year {
...

int age ( Dog const & );

};


Do you really think that a dog's age is the property of the current
year? Does that make *any* sense? How often have you asked someone
which year his dog's age belongs to?
Jan 28 '06 #15
Daniel T. wrote:
In article <dr*********@mu rdoch.acc.Virgi nia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
> Again, are you saying that a dog's age is not a property of the dog?


Well, I fail to see how you maintain that age is a property whereas
isOlder is a relation:

* isOlder is a relation between two dogs, i.e., a function that
maps ordered pairs of dogs to truth-values. A signature
representing that would read:

bool isOlder ( Dog const &, Dog const & );

* age() is a function that maps an ordered pair of a dog and a year
to a number. Here the corresponding signature reads:

int age_in_year ( Dog const &, int );

From this signature it is also clear that, if you consider age as a
property of the dog, you should also (by symmetry) consider it a property
of the year. Now, if you had a Year class, would you propose a member
function:

class Year {
...

int age ( Dog const & );

};


Do you really think that a dog's age is the property of the current
year? Does that make *any* sense? [snip]


Well, a widely used calendar is apparently based on the assumption that the
age of Jesus Christ is a somehow significant property of a given year :-)
So, what about:

class Year {

int age_of ( Entity const & default = Static_Humans:: Jesus_Christ );

}
Best

Kai-Uwe Bux
Jan 28 '06 #16

Daniel T. wrote:
In article <11************ **********@o13g 2000cwo.googleg roups.com>,
da********@warp mail.net wrote:
Just to clarify, Kai-Uwe is talking about 'int age_at(int year)', not
'const int age() const'. The names keep changing :-)
Not just the names, but the dependencies as well. 'age' has an implicit
dependency on whatever produces the current date, 'age_at' doesn't.


'age' depends on standard library functions (e.g. 'std::time', etc).
This is a perfectly reasonable dependency. However, I am not
recommending that 'age' be in the interface of 'Dog', except that if
you wanted to return the dog's age in addition to the year of birth,
returning the current age is a much more reasonable method than one
which returns the age based on a random input: current age is a
"derived" property of 'YearBorn', and requires none of the range
checking 'age_at' does.
If you look at the two original class definitions, one has a 'YearBorn'
member, and the other has an 'age' member (although the type is
'string').


I have nothing against a 'yearBorn' member-function, by all means put it
in as well.
When your class represents a value, such as the dog classes
in this thread, good practice dictates that you have accessors an
manipulators (where appropriate) corresponding to the data members of
the class, and utilities that operate on class instances.


Where in the world did you get that from?


Lakos '96.
The Dog class is a primary
abstraction of the problem space. I have no problem with the accessors
and manipulators, until you tell me they have to be removed/changed if
the member-variable is removed/changed. That breaks encapsulation in a
big way.
You do not
typically add methods to the class to perform some random function,
like subtract the 'YearBorn' member from a random integer.


The age of the dog is certainly not a "random function", it is important
to the problem space.


There is a difference between 'age' taking no arguments, and 'age_at',
which takes a year as input. "Current age" is a property of Dog. "Age
at year X" is not; it is a function of Dog and year.

Jan 29 '06 #17
In article <dr**********@m urdoch.acc.Virg inia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
Daniel T. wrote:
In article <dr*********@mu rdoch.acc.Virgi nia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
> Again, are you saying that a dog's age is not a property of the dog?

Well, I fail to see how you maintain that age is a property whereas
isOlder is a relation:

* isOlder is a relation between two dogs, i.e., a function that
maps ordered pairs of dogs to truth-values. A signature
representing that would read:

bool isOlder ( Dog const &, Dog const & );

* age() is a function that maps an ordered pair of a dog and a year
to a number. Here the corresponding signature reads:

int age_in_year ( Dog const &, int );

From this signature it is also clear that, if you consider age as a
property of the dog, you should also (by symmetry) consider it a property
of the year. Now, if you had a Year class, would you propose a member
function:

class Year {
...

int age ( Dog const & );

};


Do you really think that a dog's age is the property of the current
year? Does that make *any* sense? [snip]


Well, a widely used calendar is apparently based on the assumption that the
age of Jesus Christ is a somehow significant property of a given year :-)
So, what about:

class Year {

int age_of ( Entity const & default = Static_Humans:: Jesus_Christ );

}


We are talking about a program where 'dog' is a primary abstraction,
perhaps a vet's patient database, do *you* think that
"year::age_of_J esus_Christ" is an appropriate function of such a program?
Jan 29 '06 #18
Daniel T. wrote:
In article <dr**********@m urdoch.acc.Virg inia.EDU>,
Kai-Uwe Bux <jk********@gmx .net> wrote:
Daniel T. wrote:
> In article <dr*********@mu rdoch.acc.Virgi nia.EDU>,
> Kai-Uwe Bux <jk********@gmx .net> wrote:
>
>> > Again, are you saying that a dog's age is not a property of the dog?
>>
>> Well, I fail to see how you maintain that age is a property whereas
>> isOlder is a relation:
>>
>> * isOlder is a relation between two dogs, i.e., a function that
>> maps ordered pairs of dogs to truth-values. A signature
>> representing that would read:
>>
>> bool isOlder ( Dog const &, Dog const & );
>>
>> * age() is a function that maps an ordered pair of a dog and a year
>> to a number. Here the corresponding signature reads:
>>
>> int age_in_year ( Dog const &, int );
>>
>> From this signature it is also clear that, if you consider age as a
>> property of the dog, you should also (by symmetry) consider it a
>> property of the year. Now, if you had a Year class, would you propose
>> a member function:
>>
>> class Year {
>> ...
>>
>> int age ( Dog const & );
>>
>> };
>
> Do you really think that a dog's age is the property of the current
> year? Does that make *any* sense? [snip]


Well, a widely used calendar is apparently based on the assumption that
the age of Jesus Christ is a somehow significant property of a given year
:-) So, what about:

class Year {

int age_of ( Entity const & default = Static_Humans:: Jesus_Christ );

}


We are talking about a program where 'dog' is a primary abstraction,
perhaps a vet's patient database, do *you* think that
"year::age_of_J esus_Christ" is an appropriate function of such a program?


a) Please, lighten up. Did you, by any chance, miss the "this is a joke
flag"?

b) I just gave reasons why I would prefer a free standing function

int age_of_in_year ( Dog const & dog, int year );

to a member function

class Dog {

int age_in_year ( int year );

}

In that part of the argument where I tried to refute your reasoning, I
applied your criterion (namely the phrase "is a property of") in ways that
you did not forsee just to demonstrate why I would not consider it a good
guideline for class design. That's all.

DISCLAIMER: That counter-argument, of course, does not apply to any other
reasons that you may or may not have to prefer a member function to a free
standing function in this particular case.

However, the way you iterate the question

"Again, are you saying that a dog's age is not a property of the dog?"

indicates that this seems to be a very important point to you. In direct
response: I agree that age is a property of the dog; but that is completely
inconsequential for whether it should be a member function or a free
standing function.
Best

Kai-Uwe
Jan 29 '06 #19

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

Similar topics

2
3750
by: forums_mp | last post by:
I've got an STL class (see below) with two functions to store and retrieve data - msg structs. The "Store" function when called will copy the received message (depending on which message) into the appropriate array. For instance if I receive a RCVD_MSG1, I'll copy into msg1 . Upon receipt of the next RCVD_MSG1. I'll copy into msg1 . The Retrieve function when called should retrieve the latest copy. ie. msg1 or msg1 .
8
2217
by: Generic Usenet Account | last post by:
To settle the dispute regarding what happens when an "erase" method is invoked on an STL container (i.e. whether the element is merely removed from the container or whether it also gets deleted in the process), I looked up the STL code. Erase certainly does not delete the memory associated with the element. However, it appears that the destructor on the element is invoked. I wonder why it has to be this way. In my opinion, this renders...
25
2283
by: rokia | last post by:
in a project, I use many,many stl such as stack,list,vctor etc. somewhere the vector's size is more than 2K. is this a efficient way?
9
1893
by: Aguilar, James | last post by:
Hey guys. A new question: I want to use an STL libarary to hold a bunch of objects I create. Actually, it will hold references to the objects, but that's beside the point, for the most part. Here's the question: I want to be able to change the references (including deleting them). Is there any way to do that besides using pointers rather than references for the STL library? I'd also prefer to avoid using const_cast, if it is indeed...
11
2907
by: Richard Thompson | last post by:
I've got a memory overwrite problem, and it looks as if a vector has been moved, even though I haven't inserted or deleted any elements in it. Is this possible? In other words, are there any circumstances in which the STL will move a vector, or invalidate iterators to elements in the vector, if you don't insert or remove elements? My actual problem seems to be as follows: I have class X, which contains an STL vector. The constructor...
35
2654
by: Jon Slaughter | last post by:
I'm having a problem allocating some elements of a vector then deleting them. Basicaly I have something like this: class base { private: std::vector<object> V;
11
4760
by: ma740988 | last post by:
I'm perusing a slide with roughly 12 bullets spread across 3 pages. Each bullet reflects 'advice'. I'm ok with all but 1 bullet, more specifically the bullet that states: " Avoid the STL unless absolutely necessary " Now, I'm not acclimated with much C++ history, but something tells me this is akin to trepidation that surrounded C++ during it's inception? IOW, is this 'old school' rhetoric or ..... How do you refute this argument?
4
1780
by: Generic Usenet Account | last post by:
I am seeing some unexpected behavior while using the STL "includes" algorithm. I am not sure if this is a bug with the template header files in our STL distribution, or if this is how it should work. For your benefit, let me first quote from the STL Standard Reference (Stepanov & Lee): template <class InputIterator1, class InputIterator2> bool includes(InputIterator1 first1, InputIterator1 last1,InputIterator2 first2, InputIterator2...
1
3077
by: krunalbauskar | last post by:
Hi, Explicit instantiation of STL vector demands explicit instantiation of all the templates it using internally. For example - <snippet> #include <iostream> #include <vector>
6
3937
by: Peng Yu | last post by:
Hi, I'm wondering if the following assignment is lazy copy or not? Thanks, Peng std::vector<intv. v.push_back(1); v.push_back(2);
0
9706
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9584
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10337
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.