Archive for C++

Reverse words of string

How can we reverese the words of a string?

ex:- Ramu is a good boy
ans-> boy good a is Ramu

how to find the possible anagrams for a given word.
we can do a the preprocessing of the dictionary.

what is the schema for storing objects a.b and c where b and c are derived objects of a . and why?

a{ name, id } b>a{cost} c->a { price }.

b is a derived class from a
and c is a deived class form a.

Leave a Comment

Difference between Smart Pointer and Auto Pointer

what is a smart pointer and what is an auto-pointer ?
And whats is the difference between the two ?

Leave a Comment

How can i make a class as final class.?

How can i prevent a class from being derived by others..?

Comments (1)

How to use a C# dll in Native C++ App

I know that this forum was intended for C++ and UNIX techies. But still I would feel, this one can also enhance our thinking horizons …
So while looking at the new features provided by Microsoft in it .Net Libraries, I was astronished how much money microsoft had spent to develop such architectural solutions and publishing for the users.
So I got an idea of using one such libraries which was a C# dll from my native C++ application without re-writing it.

Can anybody suggest me, an idea of doing it ??

Comments (2)

incrementing void pointer? by praveen.

Will the following program execute?void main()
{
void *vptr = (void *) malloc(sizeof(void));
vptr++;
}

Comments (1)

Static Classes use..?

What is the use of static classes ?

Comments (2)

What is this…?

Explain about Double pointing ?

Leave a Comment

Constructor to a template class?

Can I have constructors in templates Classes ? explain with Eg

Leave a Comment

Dff between enum,const and # define?

What ares the differences between
a) enum
b) const
c) # defines. Compare the three ?

Comments (2)

can u assign a reference to Null?

What is the difference between pointer and a reference?

can u assign a reference to Null?

Comments (1)

Older Posts »