Which library to use to pause the system instead of getch?

1
#include <stdio.h>
#include <conio.h>
int  main()
{
    int x=4, y=7;
    printf("&X:%X &Y:%X x e y (%d,%d)\n",&x,&y,x,y);

    int *px, *py;
    px = & x;
    py = & y;

    printf("px:%X py:%X *px e *py (%d,%d)\n",px,py,*px,*py);
    getch();
  return 0;
}
    
asked by anonymous 23.03.2017 / 00:08

1 answer

1

You can use getchar() or the system("Pause") . Depending on the platform you can use some of your own.

    
23.03.2017 / 00:24