Advertisement
Guest User

Lista 5, questao 3

a guest
May 6th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <windows.h>
  4.  
  5. typedef struct
  6. {
  7.     char latitude[50], longitude[50], zoom[10];
  8. }   gps;
  9.  
  10. int main()
  11. {
  12.     gps dados;
  13.     printf("Digite a latitude: ");
  14.     gets(dados.latitude);
  15.     printf("Digite a longitude: ");
  16.     gets(dados.longitude);
  17.     printf("Digite o zoom: ");
  18.     gets(dados.zoom);
  19.     ShellExecute(NULL, "open", "iexplore.exe", " http://www.apolo11.com/satmap2_latlon.php?lat=dados.latitude&lon=dados.longitude&zoom=dados.zoom" , NULL, SW_SHOW);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement