A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 706
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 576
Function: getReplies

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/rss.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/rss.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 579
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Constellation - Stikked Constellation - Stikked http://geopaste.scratchbook.ch/ en Re: Constellation http://geopaste.scratchbook.ch/view/3a4bc7d2 Tue, 05 Nov 2013 16:33:19 +0100 Constellation http://geopaste.scratchbook.ch/view/3a4bc7d2
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. int main( void )
  5. {      
  6.     int month, day;
  7.    
  8.     do{
  9.         printf("Please input your birthday (MM.DD), input -1 to end: ");
  10.         scanf("%02d.%02d", &month, &day);
  11.  
  12.         switch( month ){
  13.                          case 1:
  14.                                   if( day >= 1 && day <= 20 ) printf("魔羯座\n");                                     
  15.                                   else if( day >= 21 && day <= 31 ) printf("水瓶座\n");
  16.                                   else printf("沒有這一天\n");                                      
  17.                          break;
  18.                
  19.                          case 2:
  20.                                   if(day >= 1 && day <= 19) printf("水瓶座\n");                                       
  21.                                   else if( day >= 20 && day <= 29) printf("雙魚座\n");                                        
  22.                                   else printf("沒有這一天\n");                                      
  23.                          break;
  24.                
  25.                          case 3:
  26.                                   if(day >= 1 && day <= 19) printf("雙魚座\n");                                       
  27.                                   else if( day >= 20 && day <= 31) printf("牡羊座\n");                                        
  28.                                   else printf("沒有這一天\n");                                      
  29.                          break;
  30.                
  31.                          case 4:
  32.                                   if(day >= 1 && day <= 20) printf("牡羊座\n");                                       
  33.                                   else if( day >= 21 && day <= 30) printf("金牛座\n");                                        
  34.                                   else printf("沒有這一天\n");                                      
  35.                          break;
  36.                
  37.                          case 5:
  38.                                   if(day >= 1 && day <= 21) printf("金牛座\n");                                       
  39.                                   else if( day >= 22 && day <= 31) printf("雙子座\n");                                        
  40.                                   else printf("沒有這一天\n");      
  41.                          break;
  42.                
  43.                          case 6:
  44.                                   if(day >= 1 && day <= 21) printf("雙子座\n");                                       
  45.                                   else if( day >= 22 && day <= 30) printf("巨蟹座\n");                                        
  46.                                   else printf("沒有這一天\n");                                        
  47.                          break;
  48.                
  49.                          case 7:
  50.                                   if(day >= 1 && day <= 23) printf("巨蟹座\n");                                       
  51.                                   else if( day >= 24 && day <= 31) printf("獅子座\n");                                        
  52.                                   else printf("沒有這一天\n");                                      
  53.                          break;
  54.                
  55.                          case 8:
  56.                                   if(day >= 1 && day <= 23) printf("獅子座\n");                                       
  57.                                   else if( day >= 24 && day <= 31) printf("處女座\n");                                        
  58.                                   else printf("沒有這一天\n");                                      
  59.                          break;
  60.                
  61.                          case 9:
  62.                                   if(day >= 1 && day <= 23) printf("處女座\n");                                       
  63.                                   else if( day >= 24 && day <= 30) printf("天秤座\n");                                        
  64.                                   else printf("沒有這一天\n");                                      
  65.                          break;
  66.                
  67.                          case 10:
  68.                                   if(day >= 1 && day <= 24) printf("天秤座\n");                                       
  69.                                   else if( day >= 25 && day <= 31) printf("天蠍座\n");                                        
  70.                                   else printf("沒有這一天\n");                                      
  71.                          break;
  72.                
  73.                          case 11:
  74.                                   if(day >= 1 && day <= 23) printf("天蠍座\n");                                       
  75.                                   else if( day >= 24 && day <= 30) printf("射手座\n");                                        
  76.                                   else printf("沒有這一天\n");                                      
  77.                          break;
  78.                
  79.                          case 12:
  80.                                   if(day >= 1 && day <= 22) printf("射手座\n");                                       
  81.                                   else if( day >= 23 && day <= 31) printf("摩羯座\n");                                          
  82.                                   else printf("沒有這一天\n");                                      
  83.                          break;
  84.                
  85.                          default:
  86.                                 if(month == -1);
  87.                                 else printf("無此日期\n");   
  88.                          break;
  89.         }
  90.         printf("\n");
  91.     }while(month != -1);
  92.        
  93.     system("pause");
  94.     return 0;
  95. }
]]>