Re: [algogeeks] Re: error in c++ program

2011-09-23 Thread Debabrata Das
prefix class as "class time a,b,c,d;"  worked for me.

On Fri, Sep 23, 2011 at 12:09 AM, Rajesh Kumar  wrote:
> thanx Rahul
>
> On Thu, Sep 22, 2011 at 11:54 PM, abhinav gupta 
> wrote:
>>
>> @rahul
>> +1
>>
>> On Thu, Sep 22, 2011 at 11:20 PM, rahul vatsa 
>> wrote:
>>>
>>> time is a keyword in c/cpp, change time to any other string in ur code nd
>>> it will work.
>>>
>>>
>>> On Thu, Sep 22, 2011 at 12:27 PM, Rajesh Kumar 
>>> wrote:

 not working by changes provide by you

 On Thu, Sep 22, 2011 at 9:42 PM, payal gupta 
 wrote:
>
> #include
> class time
> {
> int m;
> int h;
> public:
> void set(int,int);
> void sum(time,time,time);
> void display();
> };
> void time::set(int x,int y)
> {
> m=x;
> h=y;
> }
> void time::sum(time t1,time t2,time t3)
> {
> m=t1.m+t2.m+t3.m;
> h=t1.h+t2.h+t3.h;
> }
> void time::display(void)
> {
> cout<<"minute=="< cout<<"hours=="< }
> int main()
> {
> time a,b,c,d;
> a.set(1,2);
> b.set(2,4);
> c.set(4,8);
> d.sum(a,b,c);
> //display
> a.display();
> b.display();
> c.display();
> d.display();
> return 0;
> }
>
>
>
> dis does works...chk it  out!!!
>
> Regards,
> PAYAL GUPTA,
> CSE-3rd yr,
> NIT_B
> On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:
>>
>> Give us some help. What is the error? Syntax error? Logic error?
>> Runtime error?
>>
>> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
>> > how we can remove error ?
>> > #include
>> > using namespace std;
>> > class time
>> > {
>> > int m;
>> > int h;
>> > public:
>> > void set(int,int);
>> > void sum(time,time,time);
>> > void display();};
>> >
>> > void time::set(int x,int y)
>> > {
>> > m=x;
>> > h=y;}
>> >
>> > void time::sum(time t1,time t2,time t3)
>> > {
>> > m=t1.m+t2.m+t3.m;
>> > h=t1.h+t2.h+t3.h;}
>> >
>> > void time::display(void)
>> > {
>> > cout<<"minute=="<> > cout<<"hours=="<> >
>> > int main()
>> > {
>> > time a,b,c,d;
>> > a.set(1,2);
>> > b.set(2,4);
>> > c.set(4,8);
>> > d.sum(a,b,c);
>> > //display
>> > a.display();
>> > b.display();
>> > c.display();
>> > d.display();
>> >
>> > }
>> >
>> > Regards
>> > Rajesh Kumar
>>
>> --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.



 --
 Regards
 Rajesh Kumar

 --
 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...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.
>>>
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>
>> --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>
>
>
> --
> Regards
> Rajesh Kumar
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroup

Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread Rajesh Kumar
thanx Rahul

On Thu, Sep 22, 2011 at 11:54 PM, abhinav gupta wrote:

> @rahul
> +1
>
>
> On Thu, Sep 22, 2011 at 11:20 PM, rahul vatsa wrote:
>
>> time is a keyword in c/cpp, change time to any other string in ur code nd
>> it will work.
>>
>>
>>
>> On Thu, Sep 22, 2011 at 12:27 PM, Rajesh Kumar 
>> wrote:
>>
>>> not working by changes provide by you
>>>
>>>
>>> On Thu, Sep 22, 2011 at 9:42 PM, payal gupta wrote:
>>>
 #include

 class time
 {
 int m;
 int h;
 public:
 void set(int,int);
 void sum(time,time,time);
 void display();
 };
 void time::set(int x,int y)
 {
 m=x;
 h=y;
 }
 void time::sum(time t1,time t2,time t3)
 {
 m=t1.m+t2.m+t3.m;
 h=t1.h+t2.h+t3.h;
 }
 void time::display(void)
 {
 cout<<"minute=="<>>> cout<<"hours=="<>>> }
 int main()
 {
 time a,b,c,d;
 a.set(1,2);
 b.set(2,4);
 c.set(4,8);
 d.sum(a,b,c);
 //display
 a.display();
 b.display();
 c.display();
 d.display();
 return 0;
 }



 dis does works...chk it  out!!!

 Regards,
 PAYAL GUPTA,
 CSE-3rd yr,
 NIT_B

 On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:

> Give us some help. What is the error? Syntax error? Logic error?
> Runtime error?
>
> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
> > how we can remove error ?
> > #include
> > using namespace std;
> > class time
> > {
> > int m;
> > int h;
> > public:
> > void set(int,int);
> > void sum(time,time,time);
> > void display();};
> >
> > void time::set(int x,int y)
> > {
> > m=x;
> > h=y;}
> >
> > void time::sum(time t1,time t2,time t3)
> > {
> > m=t1.m+t2.m+t3.m;
> > h=t1.h+t2.h+t3.h;}
> >
> > void time::display(void)
> > {
> > cout<<"minute=="< > cout<<"hours=="< >
> > int main()
> > {
> > time a,b,c,d;
> > a.set(1,2);
> > b.set(2,4);
> > c.set(4,8);
> > d.sum(a,b,c);
> > //display
> > a.display();
> > b.display();
> > c.display();
> > d.display();
> >
> > }
> >
> > Regards
> > Rajesh Kumar
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>
  --
 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...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.

>>>
>>>
>>>
>>> --
>>> Regards
>>> Rajesh Kumar
>>>
>>>
>>>  --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Rajesh Kumar

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread abhinav gupta
@rahul
+1

On Thu, Sep 22, 2011 at 11:20 PM, rahul vatsa  wrote:

> time is a keyword in c/cpp, change time to any other string in ur code nd
> it will work.
>
>
>
> On Thu, Sep 22, 2011 at 12:27 PM, Rajesh Kumar wrote:
>
>> not working by changes provide by you
>>
>>
>> On Thu, Sep 22, 2011 at 9:42 PM, payal gupta  wrote:
>>
>>> #include
>>>
>>> class time
>>> {
>>> int m;
>>> int h;
>>> public:
>>> void set(int,int);
>>> void sum(time,time,time);
>>> void display();
>>> };
>>> void time::set(int x,int y)
>>> {
>>> m=x;
>>> h=y;
>>> }
>>> void time::sum(time t1,time t2,time t3)
>>> {
>>> m=t1.m+t2.m+t3.m;
>>> h=t1.h+t2.h+t3.h;
>>> }
>>> void time::display(void)
>>> {
>>> cout<<"minute=="<>> cout<<"hours=="<>> }
>>> int main()
>>> {
>>> time a,b,c,d;
>>> a.set(1,2);
>>> b.set(2,4);
>>> c.set(4,8);
>>> d.sum(a,b,c);
>>> //display
>>> a.display();
>>> b.display();
>>> c.display();
>>> d.display();
>>> return 0;
>>> }
>>>
>>>
>>>
>>> dis does works...chk it  out!!!
>>>
>>> Regards,
>>> PAYAL GUPTA,
>>> CSE-3rd yr,
>>> NIT_B
>>>
>>> On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:
>>>
 Give us some help. What is the error? Syntax error? Logic error?
 Runtime error?

 On Sep 22, 10:47 am, Rajesh Kumar  wrote:
 > how we can remove error ?
 > #include
 > using namespace std;
 > class time
 > {
 > int m;
 > int h;
 > public:
 > void set(int,int);
 > void sum(time,time,time);
 > void display();};
 >
 > void time::set(int x,int y)
 > {
 > m=x;
 > h=y;}
 >
 > void time::sum(time t1,time t2,time t3)
 > {
 > m=t1.m+t2.m+t3.m;
 > h=t1.h+t2.h+t3.h;}
 >
 > void time::display(void)
 > {
 > cout<<"minute=="<>>> > cout<<"hours=="<>>> >
 > int main()
 > {
 > time a,b,c,d;
 > a.set(1,2);
 > b.set(2,4);
 > c.set(4,8);
 > d.sum(a,b,c);
 > //display
 > a.display();
 > b.display();
 > c.display();
 > d.display();
 >
 > }
 >
 > Regards
 > Rajesh Kumar

 --
 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...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


>>>  --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>
>>
>> --
>> Regards
>> Rajesh Kumar
>>
>>
>>  --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread rahul vatsa
time is a keyword in c/cpp, change time to any other string in ur code nd it
will work.


On Thu, Sep 22, 2011 at 12:27 PM, Rajesh Kumar wrote:

> not working by changes provide by you
>
>
> On Thu, Sep 22, 2011 at 9:42 PM, payal gupta  wrote:
>
>> #include
>>
>> class time
>> {
>> int m;
>> int h;
>> public:
>> void set(int,int);
>> void sum(time,time,time);
>> void display();
>> };
>> void time::set(int x,int y)
>> {
>> m=x;
>> h=y;
>> }
>> void time::sum(time t1,time t2,time t3)
>> {
>> m=t1.m+t2.m+t3.m;
>> h=t1.h+t2.h+t3.h;
>> }
>> void time::display(void)
>> {
>> cout<<"minute=="<> cout<<"hours=="<> }
>> int main()
>> {
>> time a,b,c,d;
>> a.set(1,2);
>> b.set(2,4);
>> c.set(4,8);
>> d.sum(a,b,c);
>> //display
>> a.display();
>> b.display();
>> c.display();
>> d.display();
>> return 0;
>> }
>>
>>
>>
>> dis does works...chk it  out!!!
>>
>> Regards,
>> PAYAL GUPTA,
>> CSE-3rd yr,
>> NIT_B
>>
>> On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:
>>
>>> Give us some help. What is the error? Syntax error? Logic error?
>>> Runtime error?
>>>
>>> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
>>> > how we can remove error ?
>>> > #include
>>> > using namespace std;
>>> > class time
>>> > {
>>> > int m;
>>> > int h;
>>> > public:
>>> > void set(int,int);
>>> > void sum(time,time,time);
>>> > void display();};
>>> >
>>> > void time::set(int x,int y)
>>> > {
>>> > m=x;
>>> > h=y;}
>>> >
>>> > void time::sum(time t1,time t2,time t3)
>>> > {
>>> > m=t1.m+t2.m+t3.m;
>>> > h=t1.h+t2.h+t3.h;}
>>> >
>>> > void time::display(void)
>>> > {
>>> > cout<<"minute=="<>> > cout<<"hours=="<>> >
>>> > int main()
>>> > {
>>> > time a,b,c,d;
>>> > a.set(1,2);
>>> > b.set(2,4);
>>> > c.set(4,8);
>>> > d.sum(a,b,c);
>>> > //display
>>> > a.display();
>>> > b.display();
>>> > c.display();
>>> > d.display();
>>> >
>>> > }
>>> >
>>> > Regards
>>> > Rajesh Kumar
>>>
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>>
>>  --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Regards
> Rajesh Kumar
>
>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread nandhini siva
plz help 4 me..
  Is thr any1 knw how to write the code in trust
calculation?...

On Thu, Sep 22, 2011 at 9:57 PM, Rajesh Kumar wrote:

> not working by changes provide by you
>
> On Thu, Sep 22, 2011 at 9:42 PM, payal gupta  wrote:
>
>> #include
>>
>> class time
>> {
>> int m;
>> int h;
>> public:
>> void set(int,int);
>> void sum(time,time,time);
>> void display();
>> };
>> void time::set(int x,int y)
>> {
>> m=x;
>> h=y;
>> }
>> void time::sum(time t1,time t2,time t3)
>> {
>> m=t1.m+t2.m+t3.m;
>> h=t1.h+t2.h+t3.h;
>> }
>> void time::display(void)
>> {
>> cout<<"minute=="<> cout<<"hours=="<> }
>> int main()
>> {
>> time a,b,c,d;
>> a.set(1,2);
>> b.set(2,4);
>> c.set(4,8);
>> d.sum(a,b,c);
>> //display
>> a.display();
>> b.display();
>> c.display();
>> d.display();
>> return 0;
>> }
>>
>>
>>
>> dis does works...chk it  out!!!
>>
>> Regards,
>> PAYAL GUPTA,
>> CSE-3rd yr,
>> NIT_B
>>
>> On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:
>>
>>> Give us some help. What is the error? Syntax error? Logic error?
>>> Runtime error?
>>>
>>> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
>>> > how we can remove error ?
>>> > #include
>>> > using namespace std;
>>> > class time
>>> > {
>>> > int m;
>>> > int h;
>>> > public:
>>> > void set(int,int);
>>> > void sum(time,time,time);
>>> > void display();};
>>> >
>>> > void time::set(int x,int y)
>>> > {
>>> > m=x;
>>> > h=y;}
>>> >
>>> > void time::sum(time t1,time t2,time t3)
>>> > {
>>> > m=t1.m+t2.m+t3.m;
>>> > h=t1.h+t2.h+t3.h;}
>>> >
>>> > void time::display(void)
>>> > {
>>> > cout<<"minute=="<>> > cout<<"hours=="<>> >
>>> > int main()
>>> > {
>>> > time a,b,c,d;
>>> > a.set(1,2);
>>> > b.set(2,4);
>>> > c.set(4,8);
>>> > d.sum(a,b,c);
>>> > //display
>>> > a.display();
>>> > b.display();
>>> > c.display();
>>> > d.display();
>>> >
>>> > }
>>> >
>>> > Regards
>>> > Rajesh Kumar
>>>
>>> --
>>> 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...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>>
>>  --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Regards
> Rajesh Kumar
>
>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
with smile
  Nandy

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread Rajesh Kumar
not working by changes provide by you

On Thu, Sep 22, 2011 at 9:42 PM, payal gupta  wrote:

> #include
>
> class time
> {
> int m;
> int h;
> public:
> void set(int,int);
> void sum(time,time,time);
> void display();
> };
> void time::set(int x,int y)
> {
> m=x;
> h=y;
> }
> void time::sum(time t1,time t2,time t3)
> {
> m=t1.m+t2.m+t3.m;
> h=t1.h+t2.h+t3.h;
> }
> void time::display(void)
> {
> cout<<"minute=="< cout<<"hours=="< }
> int main()
> {
> time a,b,c,d;
> a.set(1,2);
> b.set(2,4);
> c.set(4,8);
> d.sum(a,b,c);
> //display
> a.display();
> b.display();
> c.display();
> d.display();
> return 0;
> }
>
>
>
> dis does works...chk it  out!!!
>
> Regards,
> PAYAL GUPTA,
> CSE-3rd yr,
> NIT_B
>
> On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:
>
>> Give us some help. What is the error? Syntax error? Logic error?
>> Runtime error?
>>
>> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
>> > how we can remove error ?
>> > #include
>> > using namespace std;
>> > class time
>> > {
>> > int m;
>> > int h;
>> > public:
>> > void set(int,int);
>> > void sum(time,time,time);
>> > void display();};
>> >
>> > void time::set(int x,int y)
>> > {
>> > m=x;
>> > h=y;}
>> >
>> > void time::sum(time t1,time t2,time t3)
>> > {
>> > m=t1.m+t2.m+t3.m;
>> > h=t1.h+t2.h+t3.h;}
>> >
>> > void time::display(void)
>> > {
>> > cout<<"minute=="<> > cout<<"hours=="<> >
>> > int main()
>> > {
>> > time a,b,c,d;
>> > a.set(1,2);
>> > b.set(2,4);
>> > c.set(4,8);
>> > d.sum(a,b,c);
>> > //display
>> > a.display();
>> > b.display();
>> > c.display();
>> > d.display();
>> >
>> > }
>> >
>> > Regards
>> > Rajesh Kumar
>>
>> --
>> 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...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>  --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Rajesh Kumar

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread payal gupta
#include

class time
{
int m;
int h;
public:
void set(int,int);
void sum(time,time,time);
void display();
};
void time::set(int x,int y)
{
m=x;
h=y;
}
void time::sum(time t1,time t2,time t3)
{
m=t1.m+t2.m+t3.m;
h=t1.h+t2.h+t3.h;
}
void time::display(void)
{
cout<<"minute=="< 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.
>
>

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] Re: error in c++ program

2011-09-22 Thread Rajesh Kumar
syntex error

On Thu, Sep 22, 2011 at 9:28 PM, Don  wrote:

> Give us some help. What is the error? Syntax error? Logic error?
> Runtime error?
>
> On Sep 22, 10:47 am, Rajesh Kumar  wrote:
> > how we can remove error ?
> > #include
> > using namespace std;
> > class time
> > {
> > int m;
> > int h;
> > public:
> > void set(int,int);
> > void sum(time,time,time);
> > void display();};
> >
> > void time::set(int x,int y)
> > {
> > m=x;
> > h=y;}
> >
> > void time::sum(time t1,time t2,time t3)
> > {
> > m=t1.m+t2.m+t3.m;
> > h=t1.h+t2.h+t3.h;}
> >
> > void time::display(void)
> > {
> > cout<<"minute=="< > cout<<"hours=="< >
> > int main()
> > {
> > time a,b,c,d;
> > a.set(1,2);
> > b.set(2,4);
> > c.set(4,8);
> > d.sum(a,b,c);
> > //display
> > a.display();
> > b.display();
> > c.display();
> > d.display();
> >
> > }
> >
> > Regards
> > Rajesh Kumar
>
> --
> 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...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Regards
Rajesh Kumar

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.