-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp.txt
More file actions
50 lines (49 loc) · 796 Bytes
/
temp.txt
File metadata and controls
50 lines (49 loc) · 796 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
//string reversed(string text);
//
//string secArr[6];
//
//
//int main() {
// string myString[] = { "Hello", "World", "Iskled", "Adebayo" };
//
//
// //cout << myString;
//
// cout << "****************************" << "\n";
//
// for (const string &i : myString) {
// cout << i << "\t" << i.length() << "\t" << reversed(i) << "\n";
// }
//
//
//
// return 0;
//}
//
//string reversed(string textIn) {
// static int counter = 0;
// static string* ptrSecArr = secArr;
//
// int start = 0;
// int end = textIn.length() - 1;
//
// while (start < end) {
//
// swap(textIn[start], textIn[end]);
// start++;
// end--;
//
//
// }
// secArr[counter] = textIn;
// counter++;
//
// //*(++ptrSecArr) = secArr[counter];
//
// //cout << ptrSecArr[counter] << "\n";
//
// return textIn;
//
//
//
//}