Advertisement
Infernale

NCTU LAB 17/10 NUM 3 [main.cpp]

Oct 17th, 2019
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include "MyString.h"
  3. using namespace std;
  4.  
  5. int main(){
  6.   /*
  7.     Test Case :
  8.       Motom : Both
  9.       AEIUI3A : Mirror
  10.       Malam : Normal
  11.       Willianto : KONTOL
  12.   */
  13.   MyString str("A!?b,cd,CB.A");
  14.   MyString x = str.removePunctuation();
  15.   MyString upper = x.toUpper();
  16.   MyString longestPP = upper.longestPeekPalindrome();
  17.   cout << "Longest PP : " << longestPP.getS() << endl;
  18.   upper.checkStringType();
  19.   return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement