| 
            Last change
 on this file since 8789ae4 was             1ad112a5, checked in by Peter A. Buhr <pabuhr@…>, 16 months ago           | 
        
        
          | 
             
update enumeration input test 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            318 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [1842167] | 1 | #include <fstream.hfa>
 | 
|---|
 | 2 | #include <enum.hfa>
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 | int main() {
 | 
|---|
| [1ad112a5] | 5 |         enum(int ) E { BBB = 3, AAA, AA, AB, B, CB, AC };
 | 
|---|
| [1842167] | 6 |         E e;
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 |         for () {
 | 
|---|
 | 9 |                 try {
 | 
|---|
 | 10 |                         sin | e;
 | 
|---|
 | 11 |                 } catch( missing_data * ) {
 | 
|---|
 | 12 |                         sout | "missing data";
 | 
|---|
 | 13 |                         continue;                                                                       // try again
 | 
|---|
 | 14 |                 } // try
 | 
|---|
 | 15 |           if ( eof( sin ) ) break;
 | 
|---|
| [1ad112a5] | 16 |                 sout | e | "= " | value( e );
 | 
|---|
| [1842167] | 17 |         } // for
 | 
|---|
 | 18 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.