#include int main(){stack s;string str = "aaa";int sz = str.size() % 2;//判断是奇数个还是偶数个int mid = str.size() / 2;//找出中间位置if (sz == 0)...