#include
using namespace std;
class A{
public:
int a,b,c;
A(){
}
// A seta(){a=1;cout<<"in a"<
// A setb(){b=2;cout<<"in b"<
// // A setc(){c=3;cout<<"in c"<
// A setc(){c=3;cout<<"in c"<
//
A *seta(){a=1;cout<<"in a"<
A *setb(){b=2;cout<<"in b"<
// A setc(){c=3;cout<<"in c"<
A *setc(){c=3;cout<<"in c"<
void seta1(){cout<<"in a"<
void setb1(){cout<<"in b1"<
void setc1(){cout<<"in c1"<
int seta2(){cout<<"in a2"<
int setb2(){cout<<"in b2"<
// int setc2(){cout<<"in c2"<
A seta3(){a=0;cout<<"in a3"<
A setb3(){b=-1;cout<<"in b3"<
A setc3(){c=-2;cout<<"in c3"<
};
int main(){
A a;
a.seta()->setb()->setc();//a.seta().setb().setc();
cout<<"=======================checkin zzg===================="<
cout<<"a="<
//a.seta().setb1().setc1();//invalid use of void
//a.seta2().setb2().setc2();//:24: error: request for member ‘setb2’ in ‘a.A::seta2()’, which is of non-class type ‘int
a.seta3().setb3().setc3();
cout<<"=======================checking3===================="<
cout<<"a="<
}
// //in the name of Allah
// #include
// using namespace std;
// class A{
// public:
// int a,b,c;
// A(){
// }
// // A seta(){a=1;cout<<"in a"<
// // A setb(){b=2;cout<<"in b"<
// // // A setc(){c=3;cout<<"in c"<
// // A setc(){c=3;cout<<"in c"<
// //
// A *seta(){a=1;cout<<"in a"<
// A *setb(){b=2;cout<<"in b"<
// // A setc(){c=3;cout<<"in c"<
// A *setc(){c=3;cout<<"in c"<
// void seta(){cout<<"in a"<
// void setb1(){cout<<"in b1"<
// void setc1(){cout<<"in c1"<
//
// int seta2(){cout<<"in a2"<
// int setb2(){cout<<"in b2"<
// int setc2(){cout<<"in c2"<
//
// };
// int main(){
// A a;
// a.seta()->setb()->setc();//a.seta().setb().setc();
// cout<<"=======================checking===================="<
// cout<<"a="<
// //a.seta().setb1().setc1();//invalid use of void
// //a.seta2().setb2().setc2();//:24: error: request for member ‘setb2’ in ‘a.A::seta2()’, which is of non-class type ‘int
//
// }
oakley sunglasses, polo ralph lauren outlet, tiffany jewelry, nike roshe run, louboutin pas cher, tiffany and co, kate spade outlet, oakley sunglasses, oakley sunglasses, nike free, louboutin outlet, prada outlet, christian louboutin outlet, tory burch outlet, ray ban sunglasses, jordan shoes, louis vuitton, longchamp outlet, ralph lauren pas cher, louis vuitton outlet, ugg boots, longchamp pas cher, ray ban sunglasses, oakley sunglasses, replica watches, polo ralph lauren outlet, uggs on sale, air max, louis vuitton outlet, michael kors, louis vuitton, prada handbags, longchamp, nike free, chanel handbags, sac longchamp, burberry, louis vuitton, nike air max, gucci outlet, nike outlet, louboutin, ugg boots, nike air max, replica watches, air jordan pas cher, ray ban sunglasses, louboutin shoes, longchamp outlet, cheap oakley sunglasses
ReplyDeletejimmy choo shoes, converse outlet, north face outlet, insanity workout, soccer jerseys, wedding dresses, nike air max, ralph lauren, mcm handbags, oakley, hollister, lululemon, mont blanc, valentino shoes, vans shoes, vans, abercrombie and fitch, nike huarache, new balance, hollister, bottega veneta, nike trainers, birkin bag, celine handbags, ghd, soccer shoes, asics running shoes, instyler, timberland boots, beats by dre, nfl jerseys, converse, reebok shoes, nike roshe, hollister, ferragamo shoes, p90x workout, gucci, louboutin, north face outlet, iphone cases, babyliss, chi flat iron, baseball bats, longchamp, ray ban, nike air max, herve leger, mac cosmetics
ReplyDelete