-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstream.cpp
More file actions
52 lines (51 loc) · 919 Bytes
/
instream.cpp
File metadata and controls
52 lines (51 loc) · 919 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
/*
@author Lite Systems: Blas
LitePlusPlus v_1.0
This file contains the things that you need to pick data from the screen.
Lite Surface (c) 2023
*/
#include <iostream>
using namespace std;
string inputStr(bool config1) {
if(config1) {
string text;
while (text.empty()) {
cin >> text;
return text;
}
} else {
string text;
cin >> text;
return text;
}
}
int inputInt() {
int text;
cin >> text;
return text;
}
bool inputBoo() {
bool text;
cin >> text;
return text;
}
short inputSho() {
short text;
cin >> text;
return text;
}
long inputLon() {
long text;
cin >> text;
return text;
}
double inputDou() {
double text;
cin >> text;
return text;
}
float inputFlo() {
float text;
cin >> text;
return text;
}