Archived

This topic is now archived and is closed to further replies.

Looking for example source code, to help further my understanding of C++

This topic is 5398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I''m looking for some good example C++ source code, well documented and easy to read so i can gain more understanding of C++ . Looking for any that would be suited for: diseased brain dead monkey newbie intermediate Having sort of a hard time getting to grips with C++ . Think its due to unlearning some of C.

Share this post


Link to post
Share on other sites
#define processor x86

#include <stdio.h>
#include <sys/stat.h>

#define l int*
#define F char
struct stat t;
#define c return
#define I (P+=4,*L(P-4,0))
#define G (signed F)E(*L(P++,0))
#define C(O,D)E (D[B+V(010)/4+O*10])
#define U R[4]=E(V(17)-4),*(l)V(021)=
F M [99],Q[99],b[9999],*ss,*d=b,*z;
#define O =(n=*(l)V(021),R[4]=E(V(17)+4),n)
#define p(a,b,c) system((sprintf(a,b,k[1]),c)),z
#define g (y/010&7)
#define R (B+13)
#define x86 (F*)index\
(ss+V(i ),0100)
#define D(y,n,a,m,i,c )d+=sprintf( d,y,n,a,m,i,c ),(F*\
) P
l B,i,n,a,r,y ,
P ;
#define Tr(an,sl,at,or) l an##i(d,sl){ c at? an##i(d,r):or; } \
l an(d, sl){ c \
r=V(014 )&63,an##i(d,sl); }
#define add(Ev,Gv) Ev(){ i=((a-=16)+C(r,4))/4,(\
Gv?Ev() :0) ; } Ev##n(){ a=C(r,5),Ev(); }
Tr(L,r, C(r,3)&&C(r,3)<=d?(l)(((int)B)+d+C(r,4)-C(r,3))((int)B)^d)>>24&&--\
r,(l)d) Tr(Run,a,(ss=strcmp((F*)B+C((V(12)>>16),4)+C(--r,0),A(.strtab))?ssF\
*)B+C(r ,4),C(r,1)-2),0) add(Sca ,V(-~i)-P+2) add(ru,strcmp(ss+V(i),A(main)))
E(DX) { c *z? DX:DX <<030|(DX&65280)<<010|DX>>8&65280|DX>>24&0377; } l K(k){
c L(E(k [(l)V(17)]),0); } V(v){ c E(B[v]); }


main (char *ck, char **k) {
exit(E((ck?main((z?(stat(M,&t)?P+=a+''{''?0:3:execv(M,k),a=G,i=P,y=G&255,sprintf(Q,y/''@''-3?A(*L(V(%d+%d)+%d,0)):A(R[%d]),(y&7),''\r'',y/0100-1?0:G),(a+127&&a+''}''&&a+1?(a+61&&a+24&&a+025?(P=a+''H''&&a%061<=0?P:i,D(a>0?" R[%d]=E(~-E(R[%d])),\0 U R[%d],\0 R[%d] O,\0 U %d,\0R[%d]=0,"+(a&''8'')*3:a <- ''c''?" %d, %c%s = R[%d], \0 %d, *R=%c%s==R[%d], \0 R[%d]=(int)%c%s,"-a%''w''%''j''*5:"%d,%d,%s=%d,",a>0?a-''h''?a-49?a&7:g:I:g,a>0?a&7:"& "[a%3%2+1],a+72?Q:A(*R),a>0|a<-99?g:I,0))P=i,i=a+61?a+21?E(I):G:0,D(a%'' ''+29+"P O,\0 U %d,P=%d,",P,P+i,0,0,0),p(d,"A''",b)))n=g-4?g%5-1?a+127?G:I:0Scan(),*( x86?processor :d)=0,(int)(ss+V(i))),g%5<2?D(g%5?" %s=E(~-E(%s)), \0 U %s,"+4*g:"%s=E(E(%s)%c%d),",Q,Q,"+ - "[g],n,0)a=G-''u''?''!'':''='',D(g-4?"P=%d%c=%s?%d:%d,":"*R=E(((int(*)(l,l,l))%s)(K(1),K(2),K(3))),P O,",n,a,Q,P,P+G),p(d,"A''",b)))))Run((z=(F*)&ck,stat(k[1],&t),B=(l)mmap(0,i=t.st_size,3,1,open(k[1],2),0))),magic((R[4]=E(B+i/4),run(),P=V(-~i),U 0)),sprintf(M,A(.%s%d),k[1],P),D("%s %s ''-DX=A(%s)'' -o %s ''-Dmagic=",X,__FILE__,X,M,fflush(0)))),k)(M,A(rm -f .%s*),M),*R)));
}

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Buy the "C++ FAQs" or start with the online lite version at http://www.parashift.com/c++-faq-lite/

This will help you understand the concepts and will tell you how to use C++ ''the right way''.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Buy the "C++ FAQs" or start with the online lite version at http://www.parashift.com/c++-faq-lite/

This will help you understand the concepts and will tell you how to use C++ ''the right way''.

Share this post


Link to post
Share on other sites