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: #2.C
Found in file: BEGINCPP.ZIP

Download: FileMenu 1.1 FileMenu is a java component. It provides the general functionality of a FileMenu that appears in almost every application. Instead of writing the code for the File menu every time, developers can us...
#line 1 "#2.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();



struct boolean {
     int *_boolean_var ;
} ;

struct no_constructor {
     int _no_constructor_none ;
} ;

struct no_destructor {
     int _no_destructor_none ;
} ;

struct nothing { char _dummy; } ;

void proc1 (void );
void proc2 (void );

int main ()
{
     {
          int _au1_yes ;
          struct boolean _au1_test ;
          struct no_constructor _au1_x1 ;
          struct no_destructor _au1_x2 ;
          struct nothing _au1_x3 ;
         
          _au1_yes = 1;

                //will analyze the following 4 lines:
          ( ( ((& _au1_test )-> _boolean_var
                    = (((int *)_new ( (long )(sizeof (int ))) ))),
                         ( ((*(& _au1_test )-> _boolean_var )= _au1_yes ),
                         (((& _au1_test )))) ) ) ;

          /* rearrange the above code into:
          ( (
                 (
                      (& _au1_test )-> _boolean_var
                      = ((
                                (int *)_new ( (long )(sizeof (int )) )
                        ))
                 ),
 
                 (   
                      ((*(& _au1_test )-> _boolean_var )= _au1_yes ),
                       (((& _au1_test )))
                 )
          ) ) ;
          */


          ( (((& _au1_x2 )))) ;         //constructor called for x2

          proc1 ( ) ;
          proc2 ( ) ;

          exit ( (int )0 ) ;
         
          ( (( (( (0 ), 0 ) ), 0 ) ), 0 ) ;   
         
          ( (( ( ( _delete ( (void *)(& _au1_test )-> _boolean_var ) , 0 ) ,
                              (( (0 ), 0 ) )) , 0 ) ), 0 ) ;
     } 
     exit ( 0 );
}

extern void proc1 ()
{
     struct boolean _au1_y ;
     
     ( ( ((& _au1_y )-> _boolean_var =
               (((int *)_new ( (long )(sizeof (int ))) ))),
               ( ((*(& _au1_y )-> _boolean_var )= 0), (((& _au1_y )))) ) ) ;

     {
          ( (( ( ( _delete ( (void *)(& _au1_y )-> _boolean_var ) , 0 ) ,
                              (( (0 ), 0 ) )) , 0 ) ), 0 ) ;

          return ;
     }
}

extern void proc2 ()
{
     extern struct boolean z (void );

     return ;
}

/* Ignore the warning messages from the translator,
"#2.cxx", line 15: warning: no_constructor  has destructor but no constructor
"#2.cxx", line 33: warning:  near cdecl x1 not used
"#2.cxx", line 35: warning:  near cdecl x3 not used
 */


Midi specs

VeryPDF Art print driver
Art Print Driver is a Windows printer driver that saves ink, paper and time by controlling printed output, it supports Print 2, 4, 6, 8 or 16 pages on a single sheet of paper, it also can scale...
FileMenu 1.1
FileMenu is a java component. It provides the general functionality of a FileMenu that appears in almost every application. Instead of writing the code for the File menu every time, developers can us...
Download Midi specs Download VeryPDF Art print driver Art Print Driver is a Windows printer driver that saves ink,  paper and time by controlling printed output, it supports Print  2, 4, 6, 8 or 16 pages on a single sheet of paper, it also can  scale... Download FileMenu 1.1 FileMenu is a java component. It provides the general functionality of a FileMenu that appears in almost every application. Instead of writing the code for the File menu every time, developers can us...







Sponsored links

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.
Computer Professionals: Are you owed Overtime?
Federal and State Laws may allow computer professionals to collect overtime. Our law firm is experienced, and has initiated class action lawsuits against some of the largest computer companies to collect back pay and overtime. Strictly Confidential.
CSTSOFT Instrumentation .NET & ActiveX Components
A collection of 13 instrumentation .NET/ActiveX/VCL components including Gauge,Knob,LED,Trend etc.


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.