-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.cpp
More file actions
62 lines (53 loc) · 928 Bytes
/
Copy pathinput.cpp
File metadata and controls
62 lines (53 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// input.cpp
/*
double lat;
std::string ns;
double lon;
std::string we;
std::string rest;
std::cin >> lat >> ns >> lon >> we;
std::getline(std::cin,rest);
std::cout << lat <<std::endl; //<< ns << lon << we << rest <<std::endl;
std::cout << ns << std::endl;
std::cout << lon << std::endl;
std::cout << we << std::endl;
std::cout << rest << std::endl;
*/
#include <iostream>
#include <string>
double GetLat()
{
double lat;
std::cin>>lat;
return lat;
}
std::string GetNS()
{
std::string ns;
std::cin >> ns;
return ns;
}
double GetLon()
{
double lon;
std::cin >> lon;
return lon;
}
std::string GetEW()
{
std::string ew;
std::cin >> ew;
return ew;
}
std::string GetName()
{
std::string name;
std::getline(std::cin, name);
return name;
}
int GetTarget()
{
int target;
std::cin >> target;
return target;
}