Skip to content

Commit dee1bcd

Browse files
committed
updated problem_12: reverse string without built-in functions
1 parent d68d3ec commit dee1bcd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

phase-3-data-structures/12_reverse_string.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ string reverseWord(string word){
1010

1111
return result;
1212

13+
}
14+
15+
int main()
16+
{
17+
string word = "sam";
18+
string result = reverseWord(word);
19+
cout << result << endl;
1320
}

0 commit comments

Comments
 (0)