原创 c#添加數據寫入數據庫
private void button1_Click(object sender, EventArgs e) { string sql = @"數據庫連接字符串"; string i
原创 我的友情鏈接
51CTO博客開發
原创 vector表示二維數組,push_back()插入數據
#include<iostream>#include<vector>using namespace std;int main(){ vector <vector<int> >array(3); vector<int> cn;//用於輸入數據
原创 用一個數代替重複出現的數字
#include <iostream>#include <string.h>using namespace std;void replace(int *pa,int n){ int *arr = new int[n]; arr[0] = p
原创 vs2010 c#運用數據庫查詢、update、delete
string sql = @"數據庫連接字符串"; string insert = "";//update、delete SqlConnection con = new S
原创 dataGridView 使用鼠標單擊獲得數據寫入textbox控件中
private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { textbox.T
原创 字符串逆序
#include <iostream>using namespace std;char* reset(char *pa){ if(pa == NULL) { return NULL; } else { char temp; char *pc