摘要: #include <stdio.h> int main() { char arr[] = "ijmkijmkijmkijk"; char goalArr[] = "ijk"; int i = 0; int j = 0; int flag = 0; while (arr[i] != '\0') { w 阅读全文
posted @ 2020-02-12 13:15 littlelittleprince 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define N 3 void convertMethod(int arr[N][N]); void printMethod(int arr[N][N]); int main() { int arr[N][N] = { {1,2,3},{4,5,6},{7,8 阅读全文
posted @ 2020-02-11 22:21 littlelittleprince 阅读(750) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void printArr(int arr[],int len); int main() { int arr[] = { 1,3,5,7,2,4,6,8,9,0 }; //int arr[] = { 1,1,1,3,3,5,5,2,4,7,7,7,6,6,8,9 阅读全文
posted @ 2020-02-11 21:01 littlelittleprince 阅读(302) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> //输出一个棱形 int main() { for (int m = 0; m < 5; m++) { for (int n = 0; n < 9; n++) { //在草稿纸画一个5行9列 用矩形占位 该是菱形的地方用三角形占位 //发现第一行 第五个位置是三 阅读全文
posted @ 2020-02-11 19:43 littlelittleprince 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Command对象作用:向数据库发送SQL语句 封装连接对象和执行的SQL语句 对数据库执行具体的操作,提供增、删、改、查的方法属性 CommandText 需要封装的SQL语句或存储过程名称 Connection Command对象使用的数据库连接对象方法 ExecuteNonQuery() 执行 阅读全文
posted @ 2020-02-10 13:25 littlelittleprince 阅读(6712) 评论(0) 推荐(1) 编辑
摘要: #include <iostream> using namespace std; //插入排序法 void insertSortMethod(int intArr[],int arrLen); void printArrInfo(int intArr[],int arrLen); int main( 阅读全文
posted @ 2020-02-10 09:43 littlelittleprince 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 class Student 6 { 7 private: 8 string name; 9 int score; 10 11 public: 12 // 先设置为 阅读全文
posted @ 2019-04-19 21:58 littlelittleprince 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 struct Student 6 { 7 string name; 8 int score; 9 Student* next; 10 }; 11 Student* 阅读全文
posted @ 2019-04-13 14:22 littlelittleprince 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 4 struct Student 5 { 6 int score; 7 Student* next; 8 }; 9 //创建全局变量 10 Student* head = NULL; 11 //代码改进 1 阅读全文
posted @ 2019-04-11 21:59 littlelittleprince 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace day01 8 { 阅读全文
posted @ 2019-04-09 15:45 littlelittleprince 阅读(1195) 评论(0) 推荐(0) 编辑