this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed
, himanshu kansal
himanshukansal...@gmail.com wrote:
@rahul: the ques itself says that we have to implement abstract class*without
* using pure virtual function...
On Sun, Jun 24, 2012 at 12:00 AM, rahul sharma
rahul23111...@gmail.comwrote:
yeah use pure virtual fxn..
On Fri, Jun 22, 2012
@rahul: the ques itself says that we have to implement abstract class*without
* using pure virtual function...
On Sun, Jun 24, 2012 at 12:00 AM, rahul sharma rahul23111...@gmail.comwrote:
yeah use pure virtual fxn..
On Fri, Jun 22, 2012 at 3:41 PM, himanshu kansal
himanshukansal
How will u implement an abstract class in c++ w/o using pure virtual
function???
will making all the constructors and assignment operators protected
suffice???
i doubt since the derived classes will be able to create objects of
that classand according to definition of abstract class, no
.
--
*From:* himanshu kansal himanshukansal...@gmail.com
*To:* Algorithm Geeks algogeeks@googlegroups.com
*Sent:* Friday, 22 June 2012 1:44 PM
*Subject:* [algogeeks] Adobe interview question
How will u implement an abstract class in c++ w/o using pure virtual
function
how can we find 1st repeating character in string???
e.g. if the string is abba it should return 'b' and not 'a'.
note: hashing will give the answer as 'a'
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send
/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group
/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send
#includestdio.h
int main()
{ printf(hello);
fork();
printf(world);
}
what will be the o/p
on my system...its showing hello world hello world...
but i think it could be hello world two times in any order.
please tell me what is the exact o/p...
.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc
..a circular Linkedlist
and a linkedlist with loop are not same...Cicular is one specific case of
Loop.
Pls correct me If I have misunderstood your explanation.
Regards,
Sayan
On Thu, Dec 8, 2011 at 10:27 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
if u cant create new ptrs
...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post
surprize, it calls the destructor(base class) and soon after
that it crashes out.
I wanted to know the reason as why it *crashes out*.
On Wed, Dec 7, 2011 at 5:16 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
ya...sorry only baseclass des would be called
On Wed, Dec 7, 2011 at 4
yeahi am using visual c++ 32 bit compiler...and it didnt
crashes.just give the desired output...
On Wed, Dec 7, 2011 at 9:20 PM, deepak kumar deepak.kuma...@gmail.comwrote:
Did you try it out on ur machine? M using g++ compiler.
On Wed, Dec 7, 2011 at 5:36 PM, himanshu kansal
..
On 11/17/11, himanshu kansal himanshukansal...@gmail.com wrote:
consider an array having n elements.out of which one number is
repeated twiceother number are repeated odd number of times(for
simplicity, assume other numbers are occurring just once)
can you
. Windows. This method won't work reliably on Linux
either. Here is a pretty good article for details on Linux memory
allocation: http://www.linuxjournal.com/article/6390?page=0,0
On Nov 5, 6:28 pm, himanshu kansal himanshukansal...@gmail.com
wrote:
can we know the size of heap memory
can we know the size of heap memory allocated to our program
i think sbrk(0) will return the address of end of heap.
but how to find the start of heap so that we can calculate the size of
total heap memory allocated to our program
is there any way possible
--
You received this
when the vtable of a class (if it has a virtual function ) is created
and loaded in memory
1. at the time of class declaration (before the 1st object of that
class is created)
2. when the 1st object of that class is created
3. its compiler dependent .(not specified by c++ standard)
--
You
can anybody give me the steps you need to check while writing a
program to simulate sudoku
i don't want the exact codejust algorithm would me more than
sufficient.
suggest also the suitable languages for implementing that..VB or
java or any other
--
You received this
guys, i have created a FILESYSTEM web site and created a connection
with database in sql server 2008it worked fine
but when i use the same connection string to connect a http website
hosted on my IIS sever locally to the same databaseit says it
cannot open the connection.please
i want to create a trigger in sql server 2008
the trigger should raise an error if the user want to enter a row
which has already been entered twice...
means the row cannot repeat itself more than two times
on third tym it shld raise an error
PS: the trigger should be ms sql server
if i use the connection string.
sConn= Provider=SQLOLEDB;Integrated
Security=SSPI;Trusted_Connection=yes;Initial Catalog=master;Connect
Timeout=0;Data Source=VIVEK-PC
then i am able to connect to master database in sql server 2008..
but if i use the connection string
sConn=
plz reply.its imp. and urgent
On Mon, Sep 12, 2011 at 8:47 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
here is my full code..
the error is.
Microsoft OLE DB Provider for SQL Server: Cannot open database pubs
requested by the login. The login failed
I established a connection to a database in sql server 2008 through
asp.
the connection string is ok.
i have checked it and even i have generated the connection from data
link object and used that string
but the error occurslogin failed for database pubs failed...unable to
login
i
, Sanjay Rajpal srn...@gmail.com wrote:
Post ur connection string here.
Sanju
:)
On Mon, Sep 12, 2011 at 12:24 AM, himanshu kansal
himanshukansal...@gmail.com wrote:
I established a connection to a database in sql server 2008 through
asp.
the connection string is ok.
i have
i have that book:P:P
is there any other good book relating to VB.
On Mon, Sep 12, 2011 at 4:15 PM, Sanjay Rajpal srn...@gmail.com wrote:
Apress Beginnin ASP.NET http://asp.net/ in C# 4.0.
Sanju
:)
On Mon, Sep 12, 2011 at 3:40 AM, himanshu kansal
himanshukansal...@gmail.com
, himanshu kansal
himanshukansal...@gmail.com wrote:
i have that book:P:P
is there any other good book relating to VB.
On Mon, Sep 12, 2011 at 4:15 PM, Sanjay Rajpal srn...@gmail.comwrote:
Apress Beginnin ASP.NET http://asp.net/ in C# 4.0.
Sanju
:)
On Mon, Sep 12, 2011
to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu
?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email
options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email
/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group
you have a path of N steps
at every step, you can take onl;y 1 step or 2 steps.
how to print all the possible paths that you can take..
PS: please dont give the exact code.your approaches will be
appreciated:)
--
You received this message because you are subscribed to the
...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group
to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University
to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr
Create a database schema for storing Unix permissions.
Create a database schema for storing newspaper reports.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To
how will you protect a base class to override its member function in
derived class
say if there is a function f() in base class then derived cannot
override f() to provide its own definition.
The function must be accessible in derived class.
PS:dont try to make the function private in
be accessible in derived class.
PS:dont try to make the function private in base class( it will be
become inaccessible in derived class).
On Sun, Jul 31, 2011 at 7:49 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
how will you protect a base class to override its member function
, 2011 at 7:28 AM, himanshu kansal
himanshukansal...@gmail.com wrote:
sry i thinki misspelled d ques
d ques was
how will you protect a derived class to override base class's member
function in c++
say if there is a function f() in base class then derived should not be
able
how to find a duplicate in a very large file.
i gave two approaches
Hashing
and buliding a BST
can anyone suggest another more efficient approach.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send
until the final level is small enough to fit into a data block that
can fit in memory.
On Jul 27, 10:11 pm, Dumanshu duman...@gmail.com wrote:
Use multilevel indexing
On Jul 27, 11:07 pm, himanshu kansal himanshukansal...@gmail.com
wrote:
if u hv say 20 million records and u
if u hv say 20 million records and u have to create a b+ tree then you
might be storing 20 million pointers at the leaf levelhow can u
optimize this(using b+ tree only)???
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this
class a
{
int x;
public:
a()
{
}
a(int i){x=i;coutin a xendl;}
a(a obj){coutin copy cons of aendl;}
};
a obj1=14; //error no matching call to a::a(a)
why.
and just adding a const in the constructor saves me from error...but
how
--
...@gmail.com wrote:
use a(int arg)
{
x = arg;
}
ur call will work...:)
On Sun, Jul 10, 2011 at 11:46 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
class a
{
int x;
public:
a()
{
}
a(int i){x=i;coutin a xendl;}
a(a obj
= a(14);
So first a temporary object is created using the constructor
a(int i)
And this temporary object is passed in the copy constructor. BUT since it
is temp object it must be referred by a const alias.
Regards,
Sandeep Jain
On Sun, Jul 10, 2011 at 11:52 PM, himanshu kansal
4th class =one int from each base class + one int from each of the grand
parent +one vptr =20
On Sun, Jul 3, 2011 at 2:43 PM, himanshu kansal
himanshukansal...@gmail.com
wrote:
class Base
{
public:
int a;
};
class X: public Base
class A
{ public:
void g(int i)
{ coutin a;
}
};
class B:public A
{ public:
void f()
{ coutin b;
}
};
int main()
{ B b;
b.f(); //vl call b::f()
b.g(4); //vl call a::g()
}
but
class A
{ public:
,
Sandeep Jain
Member of Technical Staff, Adobe Systems, India
On Mon, Jul 4, 2011 at 12:42 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
class A
{ public:
void g(int i)
{ coutin a;
}
};
class B:public A
{ public:
void f
class Base
{
public:
int a;
};
class X: public Base
{
public:
int x;
};
class Y: public Base
{
public:
int y;
};
class Z:public X,public Y
{
};
int main()
{coutsizeof(Base)endl;
cout sizeof(X) endl;
cout sizeof(Y) endl;
cout sizeof(Z)
1 MORE QUESHOW IS DELEGATED TO SISTER CLASS IMPLEMENTED...MEANS HOW
CAN ONE CLASS CALL ANOTHER CLASS'S FUNCTION WITHOUT KNOWING ANYTHING ABOUT
IT
On Sun, Jul 3, 2011 at 2:43 PM, himanshu kansal himanshukansal...@gmail.com
wrote:
class Base
{
public:
int a;
};
class
int +one int from base + vptr =12
3rd class = one int + one int from base + vptr =12
4th class =one int from each base class + one int from each of the grand
parent +one vptr =20
On Sun, Jul 3, 2011 at 2:43 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
class Base
{
public
Ya its cleard nw.. Thnx..:)
On 7/2/11, Dumanshu duman...@gmail.com wrote:
In ur second code change int i=2 and run it. It would still print bye.
check the result of preprocessor using -E flag.
On Jun 30, 4:46 pm, himanshu kansal himanshukansal...@gmail.com
wrote:
1 more thngif its
If i do #if i==0 thn it vl cmpl it..means its tkng it as 0..bt why...
On 7/1/11, Dumanshu duman...@gmail.com wrote:
i think it will take a garbage value for i because these are
preprocessor directives.
On Jun 30, 4:46 pm, himanshu kansal himanshukansal...@gmail.com
wrote:
1 more thng
Guys..plz wake up nd reply to ths thread...
On 6/30/11, himanshu kansal himanshukansal...@gmail.com wrote:
what is meaning of (null) in d output in cnd what r d possible
reason nd causes for dt
--
Sent from my mobile device
Regards
Himanshu Kansal
Msc Comp. sc.
(University
what is meaning of (null) in d output in cnd what r d possible
reason nd causes for dt
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group,
somewhere i read dt conditional compilation such as #if and #elif etc
cn only use constant expressions and previously defined macrosthey
cant use variables cz preprocessng is done b4 compilation...
bt whn i try it on gcc and vc both r compiling it with variables abs.
fyneven disabling
:13 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
somewhere i read dt conditional compilation such as #if and #elif etc
cn only use constant expressions and previously defined macrosthey
cant use variables cz preprocessng is done b4 compilation...
bt whn i try it on gcc and vc both
this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com
can v increment d void pointer
its perfectly valid on gcc
bt it gives me an error on vc
so is it allowed by c standard or its an extension provided by gnu???
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group,
one more...gcc allows void ptr to be assigned to and frm any type of ptr w/o
any cast
bt vc gvs an error and requires an explicit cast...
whots d specifications abt ds as conforming to c standards..
On Fri, Jun 24, 2011 at 6:25 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
can
.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks
int val;
int *p=val;
why does (++val)++ gives err in c bt nt in c++.
i knw dt abv expression wd produce undefined results bt i just want to
knw why its nt giving the err in c++
2nd ques is whn ++val++ is invalid thn why ++*p++ is valid
does it hv something to do wd references??
char *a[10];
a++;//lvalue reqd error..
i knw dt base address f array cnt be incremented.
bt following code compiles succesfully
int main(int argc, char *argv[])
{
printf(%s, *++argv);
}
can some one xplain why this is happening
similarly
int foo(int *blah[10])
{
int *f[10];
how the value of Nan is stored internally in c.
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
Msc Comp. sc.
(University of Delhi)
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe
a=++b*++b;
if b=3 initially, then a is coming out to be 25.why
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
guys wake up
On Fri, May 27, 2011 at 9:24 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
a king has two sons eric and bob.he wants to divide his
islands
the islands are in a queue.eric being elder gets the first
chancethey both can pick d island alternatively
+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
MCS-DU
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group
a king has two sons eric and bob.he wants to divide his
islands
the islands are in a queue.eric being elder gets the first
chancethey both can pick d island alternatively from beginning or
end of the queue only.design an algo so tht eric gets the max.
piece of land.
i hv
if a large no of documents are available and need to find out the
spelling errors.for this the words are compared wd a dictionary
fileif a word is nt present in dictionary thn it is sure dt d word
is wrong...thn v hv to print d no of occurences of the wrong
wordassuming dt d word vl
group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.
--
Regards
Himanshu Kansal
MCS
i am using ubuntu 8.04 nd currently installed gcc 4.2
do anyone knws the steps of installing gcc of version greater thn 4.4
on ubuntu 8.04.
i hv searched a lot on net bt couldnt find 1...
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks
yeah i knw dt well...bt i jus asked if sum1 cd help me
On Sat, Apr 30, 2011 at 12:20 AM, Charles Turner chtu...@gmail.com wrote:
On 29/04/2011 19:31, himanshu kansal wrote:
i am using ubuntu 8.04 nd currently installed gcc 4.2
do anyone knws the steps of installing gcc of version
Rofl:D:D
On Sun, Apr 10, 2011 at 12:01 AM, ArPiT BhAtNaGaR
arpitbhatnagarm...@gmail.com wrote:
lol funniest moment of Algogeeks
On Sun, Apr 3, 2011 at 9:51 PM, Umer Farooq the.um...@gmail.com wrote:
hhahahahahahahhahaha Bohat aalaa sir! :D caught red-handed :D :P
Ow
having virtual function wil be equal to space occupied by
a pointer * number of virtual functions ..
I think this if there is any correction please let me know...
*
On Sat, Mar 26, 2011 at 12:00 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
wht is the space occupied by a class
wht is the space occupied by a class in c++ whn it contains a virtual
fn.
How are the virtual fn implemented internally by c++...
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to
@gmail.com
wrote:
#includeiostream
using namespace std ;
class a
{
public :
a() { couthello;}
}a1;
int main()
{
}
On Wed, Mar 16, 2011 at 8:25 PM, himanshu kansal
himanshukansal...@gmail.com wrote:
How can u print hello in a c/c
is there any way to print hello in c also wdout writing anythng in
main()
On Thu, Mar 17, 2011 at 6:34 PM, kunal srivastav kunal.shrivas...@gmail.com
wrote:
n...c does not support classes
On Thu, Mar 17, 2011 at 6:10 PM, himanshu kansal
himanshukansal...@gmail.com wrote
can nodes of linked list in c/c++ contain different types of
datameans suppose 1st node of the list contains an integer value,
2nd contains a float,3rd has a string and so on..
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to
How can u print hello in a c/c++ program without writing a single
word in main() function
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send
class arr
{static int i;
public:
arr()
{
couti++;
}
};
int arr::i=1;
int main()
{
arr a[100];
}
On Wed, Mar 16, 2011 at 9:47 PM, kumar anurag anurag.it.jo...@gmail.comwrote:
using two different functions calling one another ?
like
fun1()
{
fun2()
}
fun2()
{
fun1();
}
On Wed,
83 matches
Mail list logo