Re: [algogeeks] Question asked in Amazon Online Test

2012-06-30 Thread himanshu kansal
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

Re: [algogeeks] Adobe interview question

2012-06-27 Thread himanshu kansal
, 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

Re: [algogeeks] Adobe interview question

2012-06-24 Thread himanshu kansal
@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

[algogeeks] Adobe interview question

2012-06-22 Thread himanshu kansal
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

Re: [algogeeks] Adobe interview question

2012-06-22 Thread himanshu kansal
. -- *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

[algogeeks] first Repeating character in a string

2012-06-08 Thread himanshu kansal
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

Re: [algogeeks] first Repeating character in a string

2012-06-08 Thread himanshu kansal
/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

Re: [algogeeks] problem of fork()

2012-05-23 Thread himanshu kansal
/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

[algogeeks] fork command confusion

2012-01-17 Thread himanshu kansal
#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...

Re: [algogeeks] Detect a loop with just head ptr given

2011-12-08 Thread himanshu kansal
. 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

Re: [algogeeks] Detect a loop with just head ptr given

2011-12-08 Thread himanshu kansal
..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

Re: [algogeeks] virtual destructor problem

2011-12-07 Thread himanshu kansal
...@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

Re: [algogeeks] virtual destructor problem

2011-12-07 Thread himanshu kansal
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

Re: [algogeeks] virtual destructor problem

2011-12-07 Thread himanshu kansal
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

Re: [algogeeks] Re: array searching

2011-11-22 Thread 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

Re: [algogeeks] Re: heap memory

2011-11-06 Thread himanshu kansal
. 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

[algogeeks] heap memory

2011-11-05 Thread himanshu kansal
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

[algogeeks] Virtual table

2011-10-26 Thread himanshu kansal
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

[algogeeks] Sudoku

2011-10-04 Thread himanshu kansal
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

[algogeeks] IIS and ASP

2011-10-01 Thread himanshu kansal
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

[algogeeks] sql triggers

2011-09-21 Thread himanshu kansal
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

[algogeeks] ASP connection prblm

2011-09-15 Thread himanshu kansal
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=

Re: [algogeeks] ASP problem

2011-09-13 Thread himanshu kansal
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

[algogeeks] ASP problem

2011-09-12 Thread himanshu kansal
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

Re: [algogeeks] ASP problem

2011-09-12 Thread himanshu kansal
, 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

Re: [algogeeks] ASP problem

2011-09-12 Thread himanshu kansal
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

Re: [algogeeks] ASP problem

2011-09-12 Thread himanshu kansal
, 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

Re: [algogeeks]

2011-09-06 Thread himanshu kansal
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

Re: [algogeeks] c problem

2011-09-03 Thread himanshu kansal
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

Re: [algogeeks] c question

2011-09-03 Thread himanshu kansal
?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

Re: [algogeeks] C doubt

2011-08-28 Thread himanshu kansal
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

Re: [algogeeks] C doubt

2011-08-28 Thread himanshu kansal
/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] algo ques

2011-08-28 Thread himanshu kansal
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

Re: [algogeeks] C output

2011-08-16 Thread himanshu kansal
...@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

Re: [algogeeks] destructor

2011-08-14 Thread himanshu kansal
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

Re: [algogeeks] simple doubt

2011-08-05 Thread himanshu kansal
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

Re: [algogeeks] Amazon Question

2011-08-04 Thread himanshu kansal
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

[algogeeks] interview ques

2011-08-03 Thread himanshu kansal
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

[algogeeks] Interview ques

2011-07-31 Thread himanshu kansal
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

[algogeeks] Re: Interview ques

2011-07-31 Thread himanshu kansal
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

Re: [algogeeks] Re: Interview ques

2011-07-31 Thread himanshu kansal
, 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

[algogeeks] Interview ques

2011-07-30 Thread himanshu kansal
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

Re: [algogeeks] Re: interview ques

2011-07-28 Thread himanshu kansal
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

[algogeeks] interview ques

2011-07-27 Thread himanshu kansal
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

[algogeeks] c++ doubt

2011-07-10 Thread himanshu kansal
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 --

Re: [algogeeks] c++ doubt

2011-07-10 Thread himanshu kansal
...@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

Re: [algogeeks] c++ doubt

2011-07-10 Thread himanshu kansal
= 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

Re: [algogeeks] Re: VIRTUAL INHERITANCE

2011-07-04 Thread 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

[algogeeks] function overloading in inheritance

2011-07-04 Thread himanshu kansal
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:

Re: [algogeeks] function overloading in inheritance

2011-07-04 Thread himanshu kansal
, 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

[algogeeks] VIRTUAL INHERITANCE

2011-07-03 Thread himanshu kansal
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)

[algogeeks] Re: VIRTUAL INHERITANCE

2011-07-03 Thread himanshu kansal
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

Re: [algogeeks] VIRTUAL INHERITANCE

2011-07-03 Thread himanshu kansal
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

[algogeeks] Re: conditional compilation

2011-07-02 Thread himanshu kansal
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

[algogeeks] Re: conditional compilation

2011-07-01 Thread himanshu kansal
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

[algogeeks] Re: meaning of null in output

2011-07-01 Thread himanshu kansal
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

[algogeeks] meaning of null in output

2011-06-30 Thread himanshu kansal
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,

[algogeeks] conditional compilation

2011-06-30 Thread himanshu kansal
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

[algogeeks] Re: conditional compilation

2011-06-30 Thread himanshu kansal
: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

Re: [algogeeks] Re: c query

2011-06-28 Thread himanshu kansal
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

[algogeeks] can void pointer be incremented

2011-06-24 Thread himanshu kansal
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,

[algogeeks] Re: can void pointer be incremented

2011-06-24 Thread himanshu kansal
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

Re: [algogeeks] sort the array

2011-06-21 Thread himanshu kansal
. -- 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

[algogeeks] preincrement and post increment

2011-06-20 Thread himanshu kansal
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??

[algogeeks] hw can argv be incremented

2011-06-13 Thread himanshu kansal
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];

[algogeeks] nan in c

2011-06-05 Thread himanshu kansal
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

Re: [algogeeks] MS question

2011-06-02 Thread himanshu kansal
://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

[algogeeks] c output

2011-06-01 Thread himanshu kansal
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

[algogeeks] Re: island puzzle

2011-05-30 Thread himanshu kansal
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

Re: [algogeeks] Re: suitable data structure

2011-05-27 Thread himanshu kansal
+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

[algogeeks] island puzzle

2011-05-27 Thread himanshu kansal
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

[algogeeks] suitable data structure

2011-05-26 Thread himanshu kansal
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

Re: [algogeeks] Re: If any one have algorithms for interviews by adnan aziz ebook... Please mail ...

2011-05-04 Thread himanshu kansal
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

[algogeeks] problem regarding gcc installation

2011-04-29 Thread himanshu kansal
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

Re: [algogeeks] problem regarding gcc installation

2011-04-29 Thread himanshu kansal
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

Re: [algogeeks] Re:

2011-04-09 Thread himanshu kansal
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

Re: [algogeeks] Virtual classes

2011-03-28 Thread himanshu kansal
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

[algogeeks] Virtual classes

2011-03-26 Thread himanshu kansal
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

Re: [algogeeks] Re: Print Hello

2011-03-17 Thread himanshu kansal
@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

Re: [algogeeks] Re: Print Hello

2011-03-17 Thread himanshu kansal
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

[algogeeks] linked list

2011-03-16 Thread himanshu kansal
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

[algogeeks] Print Hello

2011-03-16 Thread himanshu kansal
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

Re: [algogeeks] How to print numbers from 1 to 100 without loop , without recursion , without #define statements , without goto statement

2011-03-16 Thread himanshu kansal
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,