原创 C#多語言程序開發
C#多語言程序開發 【部分資料源自網絡】 1,新建一個C#項目,在Form1上拖拉一個Button名爲button1 2.將button1的Text屬性設置爲: "這是中文" 3.在設計界面Form1的屬性裏找到Language,選擇
原创 C#與SQL Server存儲過程之二(調用):使用C#調用SQL Server的存儲過程
Form上有一個button按鈕,name:buttonProcedureClient。 using System; using System.Collections.Generic; using System.ComponentMo
原创 C#附加一個數據庫到SQL服務器
rel="File-List" href="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1
原创 《C#高級編程》(第4版)6.3.2:事件和委託
《C#高級編程》(第4版)6.3.2:事件和委託 Form1.cs 在Form1上放置button1和label1控件 using System;using System.Collections.Generic;using System
原创 常見C語言面試題之一:字符串代替、字符串轉換整數
#include "stdafx.h"using namespace std;//--------字符替代問題char* Translate(char* pSrc, const char cFindChar, const char* pR
原创 常見C語言面試題之十一:約瑟夫環
#include "stdafx.h"#include <stdlib.h>#include <stdio.h>typedef struct node{ int data; struct node*
原创 常見C語言面試題之三:字符串替代
#include "stdafx.h"#include "string.h"#include "malloc.h"char *replace(char *source, char *sub, char *rep){ char *resu
原创 創建定製的泛型類--泛型Queue多線程讀寫文檔--的泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace Generic_T_Manager{ pu
原创 常見C語言面試題之八:數組實現大數階乘
#include "stdafx.h"#include <iostream>using std::cout;using std::cin;using std::endl;void factorial(in
原创 利用索引提高SQL Server數據處理效率
在良好的數據庫設計基礎上,能有效地使用索引是SQL Server取得高性能的基礎,SQL Server採用基於代價的優化模型,它對每一個提交的有關表的查詢,決定是否使用索引或用哪一個索引。因爲查詢執行的大部分開銷是磁盤I/O,使用索引 提
原创 常見C語言面試題之七:楊輝三角
int _tmain(int argc, _TCHAR* argv[]){ int i,j,a[10][10]; //i表示行,j表示列 for(i=0;i<10;i++)
原创 常見C語言面試題之六:數組逆序
#include "stdafx.h"#include "stdio.h"#include "stdlib.h"#include "string.h"void foo1(char* a){ int len = strlen(a);
原创 泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace Generic_Method{ /*
原创 常見C語言面試題之五:兩個字符串的最大公共子字符串
#include "stdafx.h"#include "stdio.h"#include "malloc.h"#include "string.h"char *maxsubstr(char *str1, char *str2){ ch
原创 常見C語言面試題之四:刪除字符串頭尾空格,字符串右對齊
#include "stdafx.h"#include <stdio.h>#include <string.h>#include <malloc.h>struct st { int id; char ch; char name[10