how to run servlets in eclipse 3.3.2....if we choose
file->new->servlet then after that it is showing
javax.servlet.* ...cannot be resolved.......to avoid this
error any external jar file is to be added?
please help me regarding this issue........thank u
1)
write a program to generate 1st n fibonacci prime numbers
using Nested if
2)
write a program to generate twin prime numbers from m to n
using nested if
3)
write a program to check whether a given integer is a strong
number or not using nested if
4)
Write a program to generate prime factors of a given integer
using nested if
5)write a program to generate prime numbers from m to n
using nested if
6)write a program to generate perfect numbers from m to n
using nested if
7)write a program to generate the pallindromes from m to n
using neste if
8)write a program to generate armstrong numbers from m to n
using nested if
9)write a program to generate strong numbers from m to n
using nested if
How to display seconds, minutes, tracks of an AVI ?
85
Write a program to demonstrate the use of 'Composition' in C++
9
How to Insert a file at the cursor ?
54
Question In a class, there is a reference or pointer of an
object of
another class embedded, and the memory is either allocated
or assigned to the new object created for this class. In
the constructor, parameters are passed to initialize the
data members and the embedded object reference to get
inialized. What measures or design change should be advised
for proper destruction and avioding memory leaks, getting
pointers dangling for the embedded object memory
allocation? Please suggest.
Question Submitted By :: Sunil Kumar
I also faced this Question!! Rank Answer Posted By
Re: In a class, there is a reference or pointer of an
object of another class embedded, and the memory is either
allocated or assigned to the new object created for this
class. In the constructor, parameters are passed to
initialize the data members and the embedded object
reference to get inialized. What measures or design change
should be advised for proper destruction and avioding
memory leaks, getting pointers dangling for the embedded
object memory allocation? Please suggest.
Answer
# 1 use copy constructors
0 Shanthila
There is something to be taken care in destructor, in copy
constructor, suppose the memory is assigned to the embedded
member object pointer with the parameter passed value, but
if some other objects of different class also are pointing
to this memory, then if some one deletes the object then
this class member pointer object will become dangling, or
if the object is not deleted properly then there will be
memory leak. Please suggest the design change required to
handle or avoid this situation
31
How to Extract an icon from a .exe or .dll?
63
pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice)