#pragma once #include #include #include namespace yaha { class CQueue { public: CQueue() { } void append_tail(int value); int delete_head(); private: std::stack _stk_tail; std::stack _stk_head; }; class String { public: std::string replace_space(std::string s); }; class ListNode { public: int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} std::vector reverse_print(ListNode *head); void reverse(ListNode *head, std::vector& res); }; }