c++杂
_sophon
Brooding renders me prophetic
展开
-
c++打印菱形
#include <bits/stdc++.h> using namespace std; int main() { cout << "Enter the length: " << endl; int n; cin >> n; for (int i = 1; i <原创 2019-02-14 18:24:36 · 223 阅读 · 0 评论 -
文本分割为不同单词
将字符串分割出不同单词,按字典序输出 纯STL + iterator + set 版 #include <iostream> #include <string> #include <set> #include <vector> #include <algorithm> using namespace std; void splitStr...原创 2019-02-28 12:27:58 · 292 阅读 · 0 评论 -
数独
#include <bits/stdc++.h> using namespace std; struct consult_row_0 { int row, num_0; }; struct consult_row_0 dic_row_0[10]; int origin[10][10]; bool row[10][10], column[10][10], box[10][10]; ...原创 2019-02-19 16:09:57 · 104 阅读 · 0 评论