-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInputFunction.cpp
More file actions
34 lines (24 loc) · 788 Bytes
/
InputFunction.cpp
File metadata and controls
34 lines (24 loc) · 788 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
/**
* \file InputFunction.cpp
* \brief
*/
#include <StdStream/StdStream.h>
#include <StdTest/StdTest.h>
#include <Stl.h>
//--------------------------------------------------------------------------------------------------
int main(int, char **)
{
std::string str = "AAA";
std::cout << "The String is: " << str << std::endl;
str.push_back('s');
std::cout <<"The string after push back operation is: " << str << std::endl;
str.pop_back();
std::cout <<"The string after pop back operation is: " << str << std::endl;
return EXIT_SUCCESS;
}
//--------------------------------------------------------------------------------------------------
#if OUTPUT
The String is: AAA
The string after push back operation is: AAAs
The string after pop back operation is: AAA
#endif