-
Notifications
You must be signed in to change notification settings - Fork 0
/
renameFile.cpp
42 lines (36 loc) · 1.01 KB
/
renameFile.cpp
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
// **************** Author : Tashin.Parvez *************************\
// **************** Updated: 22-06-23 *************************\
#include <iostream>
#define faster \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define CRACKED return 0;
#define nl endl; // NewLine
#define int long long
#define output(x) cout << x << nl // out
#define printarray(arr, len) \
for (int i = 0; i < len; i++) \
{ \
cout << arr[i] << " "; \
if (i + 1 == len) \
cout << endl; \
} // array print
using namespace std;
int32_t main()
{
faster;
string s;
getline(cin, s); // take line
for (int i = 0; i < s.length(); i++)
{
if ((s[i] >= 'a' && s[i] <= 'z') || (s[i] >= 'A' && s[i] <= 'Z'))
cout << s[i];
else
cout << '_';
}
cout << '_';
cout << '_';
cout << nl;
CRACKED;
}