From f7a18ec4494b9c5c9ef3fd440bbf68ffc6425e18 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期四, 08 十二月 2022 15:40:56 +0800
Subject: [PATCH] 智慧驾培首次提交
---
lib/src/main/cpp/utils/num.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/src/main/cpp/utils/num.cpp b/lib/src/main/cpp/utils/num.cpp
index 6627921..b477bd9 100644
--- a/lib/src/main/cpp/utils/num.cpp
+++ b/lib/src/main/cpp/utils/num.cpp
@@ -97,3 +97,12 @@
ss >> number;
return number;
}
+
+string intw(int n, int w)
+{
+ stringstream ss;
+
+ ss << setfill('0') << setw(w) << n;
+
+ return ss.str();
+}
\ No newline at end of file
--
Gitblit v1.8.0