diff --git a/17EGICS068_stack_1.cpp b/17EGICS068_stack_1.cpp new file mode 100644 index 0000000..aca6bc5 --- /dev/null +++ b/17EGICS068_stack_1.cpp @@ -0,0 +1,70 @@ +#include +#include +#include +#include +using namespace std; +bool check(string); +int main() +{ + string rtr; + cout<<"enter the string"; + getline(cin,rtr); + bool ans; + ans = check(rtr); + if (ans) + cout << "true"; + else + cout << "false"; +} +bool check(string str) +{ + int i,si; + stack m; + char temp; + for (i=0; i