Current area: HOME ->

Zip File view

Some Introductory C++ Code Examples


This page allows you to view the contents of a file contained inside a ZIP archive available at Programmer's Heaven. This means you can view the code and find what you need from it without having to download the ZIP file first. If the file contains source code for a language we recognize, we have syntax highlighted it.

Filename displayed: #5_VER1.C
Found in file: BEGINCPP.ZIP

Download: WaveVolume Active-X Control Ver 2.0 This control will be realy useful if you want to control your  sound volume.
#line 1 "#5_ver1.cxx"
void *_new(long);
void _delete(void*);
void *_vec_new(void*,int,int,void*(*)(void*));
void _vec_delete(void*,int,int,void(*)(void*,int),...);
void exit(int);
static void cdecl _STI();
static void cdecl _STD();

typedef unsigned int size_t ;
typedef char *va_list ;
struct _iobuf {
char *__iobuf__ptr ;
int __iobuf__cnt ;
char *__iobuf__base ;
char __iobuf__flag ;
char __iobuf__file ;} ;
extern struct _iobuf _iob [];
int _filbuf (struct _iobuf *);
int _flsbuf (int , struct _iobuf *);
void clearerr (struct _iobuf *);
int fclose (struct _iobuf *);
int fcloseall (void );
struct _iobuf *fdopen (int , char *);
int fflush (struct _iobuf *);
int fgetc (struct _iobuf *);
int fgetchar (void );
int fgetpos (struct _iobuf *, long *);
char *fgets (char *, int , struct _iobuf *);
int flushall (void );
struct _iobuf *fopen (char *, char *);
int fprintf (struct _iobuf *, char *, ... );
int fputc (int , struct _iobuf *);
int fputchar (int );
int fputs (char *, struct _iobuf *);
size_t fread (void *, size_t , size_t , struct _iobuf *);
struct _iobuf *freopen (char *, char *, struct _iobuf *);
int fscanf (struct _iobuf *, char *, ... );
int fsetpos (struct _iobuf *, long *);
int fseek (struct _iobuf *, long , int );
long ftell (struct _iobuf *);
size_t fwrite (void *, size_t , size_t , struct _iobuf *);
char *gets (char *);
int getw (struct _iobuf *);
void perror (char *);
int printf (char *, ... );
int puts (char *);
int putw (int , struct _iobuf *);
int remove (char *);
int rename (char *, char *);
void rewind (struct _iobuf *);
int rmtmp (void );
int scanf (char *, ... );
void setbuf (struct _iobuf *, char *);
int setvbuf (struct _iobuf *, char *, int , size_t );
int sprintf (char *, char *, ... );
int sscanf (char *, char *, ... );
char *tempnam (char *, char *);
struct _iobuf *tmpfile (void );
char *tmpnam (char *);
int ungetc (int , struct _iobuf *);
int unlink (char *);
int vfprintf (struct _iobuf *, char *, va_list );
int vprintf (char *, va_list );
int vsprintf (char *, char *, va_list );


struct animal { char _dummy; } ;
struct mammal { char _dummy; } ;
struct bird { char _dummy; } ;
struct dog { char _dummy; } ;
struct eagle { char _dummy; } ;

void print1 (void );
void print2 (void );
void print3 (void );

int main ()
{
        {       
                print1 ( ) ;
                print2 ( ) ;
                print3 ( ) ;
        }        
        exit ( 0 );
}

extern void print1 ()
{
        struct animal *_au1_ap = 0 ;
        struct mammal *_au1_mp = 0 ;
        struct bird   *_au1_bp = 0 ;
        struct dog    *_au1_dp = 0 ;
        struct eagle  *_au1_pp = 0 ;
        _au1_ap = (((struct animal *)_new ( (long )(sizeof (struct animal ))) ));
                                ( printf ( (char *)"%s\n", "animal") , 0 ) ;
        _au1_mp = (((struct mammal *)_new ( (long )(sizeof (struct mammal ))) ));
                                ( printf ( (char *)"%s\n", "mammal") , 0 ) ;
        _au1_bp = (((struct bird *)_new ( (long )(sizeof (struct bird ))) ));
                                ( printf ( (char *)"%s\n", "bird") , 0 ) ;
        _au1_dp = (((struct dog *)_new ( (long )(sizeof (struct dog ))) ));
                                ( printf ( (char *)"%s\n", "dog") , 0 ) ;
        _au1_pp = (((struct eagle *)_new ( (long )(sizeof (struct eagle ))) ));
                                ( printf ( (char *)"%s\n", "eagle") , 0 ) ;

        printf ( (char *)"\n") ;
}
       
extern void print2 ()
{
        struct animal *_au1_ap = 0 ;
        struct mammal *_au1_mp = 0 ;

        _au1_ap = (((struct animal *)_new ( (long )(sizeof (struct animal ))) ));
        ( printf ( (char *)"%s\n", "animal") , 0 ) ;
        ( printf ( (char *)"%s\n", "mammal") , 0 ) ;

        _au1_mp = (((struct mammal *)_au1_ap ));
        ( printf ( (char *)"%s\n", "mammal") , 0 ) ;

        printf ( (char *)"\n") ;
}


extern void print3 ()
{
        struct animal _au1_a ;
        struct animal *_au1_ap = 0 ;
        struct mammal _au1_m ;

        _au1_ap = (& _au1_a );
        ( printf ( (char *)"%s\n", "animal") , 0 ) ;

        _au1_ap = (struct animal *)(& _au1_m );
        ( printf ( (char *)"%s\n", "animal") , 0 ) ;

        printf ( (char *)"\n") ;
}


Midi status & data bytes in hex/dec

NGis components 1.4
NGIS Components create visual cartographic information in your programs, simplicity of setting component properties in design-mode. It is easy to use, effective and powerful. It will save your ...
WaveVolume Active-X Control Ver 2.0
This control will be realy useful if you want to control your sound volume.
Download Midi status & data bytes in hex/dec Download NGis components 1.4 NGIS Components create visual cartographic information in your  programs, simplicity of setting component properties in  design-mode. It is easy to use, effective and powerful. It will  save your ... Download WaveVolume Active-X Control Ver 2.0 This control will be realy useful if you want to control your  sound volume.







Sponsored links

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Check Out IT Certification Preparation Materials
Sign Up With SkillSoft & Get Access to Training Materials for Over 50 Professional Certifications.
Localize software in three simple steps
Localize .Net, C/C++ & Delphi apps visually. HTML, HTML Help, XML & databases. Try Sisulizer now!
Delphi Localization Tool Sisulizer (WYSIWYG)
Create multilingual Delphi apps in three simple steps. Localize XML, HTML Help ... Try Sisulizer now
Web based bug tracking - AdminiTrack.com
AdminiTrack offers an effective web-based bug tracking system designed for professional software development teams.


Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.