Format C++ codes in Clang-Format Style: Microsoft

This commit is contained in:
krahets
2023-04-14 03:44:02 +08:00
parent f8513455b5
commit 9c9c8b7574
46 changed files with 732 additions and 888 deletions

View File

@ -6,7 +6,6 @@
#include "../include/include.hpp"
/* Driver Code */
int main() {
/* 初始化栈 */
@ -19,7 +18,7 @@ int main() {
stack.push(5);
stack.push(4);
cout << "栈 stack = ";
PrintUtil::printStack(stack);
printStack(stack);
/* 访问栈顶元素 */
int top = stack.top();
@ -28,7 +27,7 @@ int main() {
/* 元素出栈 */
stack.pop(); // 无返回值
cout << "出栈元素 pop = " << top << ",出栈后 stack = ";
PrintUtil::printStack(stack);
printStack(stack);
/* 获取栈的长度 */
int size = stack.size();