1. 163.
    0
    http://prntscr.com/3xmlyi
    ···
  2. 162.
    0
    /* Fig. 14.8: fig14_08.c
    Using signal handling */
    1. include <stdio.h>
    2. include <stdlib.h>

    3. include <signal.h>
    4. include <stdlib.h>
    5. include <time.h>

    void signalHandler( int signalValue ); /* prototype */

    int main()
    {
    int i; /* counter used to loop 100 times */
    int x; /* variable to hold random values between 1-50 */

    signal( SIGINT, signalHandler ); /* register signal handler */
    srand( clock() );

    /* output numbers 1 to 100 */
    for ( i = 1; i <= 100; i++ ) {
    x = 1 + rand() % 50; /* generate random number to raise SIGINT */

    /* raise SIGINT when x is 25 */
    if ( x

    25 ) {
    raise( SIGINT );
    } /* end if */

    printf( "%4d", i );

    /* output n when i is a multiple of 10 */
    if ( i % 10

    0 ) {
    printf( "n" );
    } /* end if */

    } /* end for */


    printf("nn");
    system("pause");
    return 0; /* indicates successful termination */

    } /* end main */

    /* handles signal */
    void signalHandler( int signalValue )
    {
    int response; /* user's response to signal (1 or 2) */

    printf( "%s%d%sn%s",
    "nInterrupt signal ( ", signalValue, " ) received.",
    "Do you wish to continue ( 1 = yes or 2 = no )? " );

    scanf( "%d", &response );

    /* check for invalid responses */
    while ( response != 1 && response != 2 ) {
    printf( "( 1 = yes or 2 = no )? " );
    scanf( "%d", &response );
    } /* end while */

    /* determine if it is time to exit */
    if ( response == 1 ) {

    /* reregister signal handler for next SIGINT */
    signal( SIGINT, signalHandler );
    } /* end if */
    else {
    exit( EXIT_SUCCESS );
    } /* end else */

    } /* end function signalHandler */

    /***
    * (C) Copyright 1992-2004 by Deitel & Associates, Inc. and *
    * Pearson Education, Inc. All Rights Reserved. *
    * *
    * DISCLAIMER: The authors and publisher of this book have used their *
    * best efforts in preparing the book. These efforts include the *
    * development, research, and testing of the theories and programs *
    * to determine their effectiveness. The authors and publisher make *
    * no warranty of any kind, expressed or implied, with regard to these *
    * programs or to the documentation contained in these books. The authors *
    * and publisher shall not be liable in any event for incidental or *
    * consequential damages in connection with, or arising out of, the *
    * furnishing, performance, or use of these programs. *
    ***/
    Tümünü Göster
    ···
  3. 161.
    0
    ···
  4. 160.
    0
    ogecan
    ciksinci nesil inci sözlük yazarı

    (online)
    genel ulan
    bugün: 5
    bu hafta: 5
    toplam entry: 1096
    toplam başlık: 0
    ···
  5. 159.
    0
    http://valsarith.tumblr.com
    ···
  6. 158.
    0
    http://imgim.com/1403981168976.jpg
    ···
  7. 157.
    0
    http://galeri12.uludagsoz...4%b1-tam-liste_563001.jpg
    ···
  8. 156.
    0
    http://lh5.ggpht.com/-ft7...wluveltf3nc/s1280/010.jpg
    ···
  9. 155.
    0
    boş

    inci sözlük hatası: entry metni girilmelidir.
    ···
  10. 154.
    0
    olokolokolo
    ···
  11. 153.
    0
    ···
  12. 152.
    0
    http://inciswf.com/huzunlu.swf
    ···
  13. 151.
    0
    Müslümanlar Sayfamıza Davetlidir..
    ···
  14. 150.
    0
    http://www.youtube.com/watch?v=0Mj3Nu3vEdY
    ···
  15. 149.
    0
    The Way Way Back
    ···
  16. 148.
    0
    yolla panpa
    ···
  17. 147.
    0
    http://www.youtube.com/watch?v=jNegFNd3C6g
    ···
  18. 146.
    0
    bir şey yok kardeş
    ···
  19. 145.
    0
    .enlarge img{
    background-color:#eae9d4;
    padding: 6px;
    -webkit-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    -moz-box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    box-shadow: 0 0 6px rgba(132, 132, 132, .75);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    }
    .enlarge span{
    position:absolute;
    left: -9999px;
    background-color:#eae9d4;
    padding: 10px;
    font-family: ‘Droid Sans’, sans-serif;
    font-size:.9em;
    text-align: center;
    color: #495a62;
    -webkit-box-shadow: 0 0 20px rgba(0,0,0, .75));
    -moz-box-shadow: 0 0 20px rgba(0,0,0, .75);
    box-shadow: 0 0 20px rgba(0,0,0, .75);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius:8px;
    }

    .enlarge {
    display:inline-block; /*places the images in a line*/
    position: relative;
    z-index: 0; /*resets the stack order of the list items – later we’ll increase this*/
    margin:10px 40px 0 10px;
    }
    .enlarge span img{
    padding:2px;
    background:#ccc;
    }
    .enlarge:hover{
    z-index: 50;
    cursor:pointer;
    }
    .enlarge span img{
    padding:2px;
    background:#ccc;
    }
    .enlarge:hover span{
    top: -300px; /*the distance from the bottom of the thumbnail to the top of the popup image*/
    left: -20px; /*distance from the left of the thumbnail to the left of the popup image*/
    }
    .enlarge:hover:nth-child(2) span{
    left: -100px;
    }
    .enlarge:hover:nth-child(3) span{
    left: -200px;
    }
    ···
  20. 144.
    0
    ···