温馨提示:如何输出%?即两个%连写代表%,尝试输出printf(“%%”)方法1:先存储数据再处理#includeint a[110];int main(){ int n; scanf("%d",&n); int temp; for (int i=1;i=0&&a[i]=19...
分类:
其他好文 时间:
2016-01-20 09:52:15
阅读次数:
207
1 #include 2 #include 3 using namespace std; 4 5 void print(int i, int j) 6 { 7 if(i > j) { int temp = i; i = j; j = temp; } 8 9 int max ...
分类:
其他好文 时间:
2016-01-20 06:19:35
阅读次数:
135
新建——程序包管理器控制台——install - package umbracocmsvs中的快捷键:ctrl+F5为调试;ctrl+shift+B生成解决方案;打包前,App_data文件夹、cache、TEMP这三个文件夹是可以删除的;
分类:
其他好文 时间:
2016-01-17 18:55:10
阅读次数:
185
必须严格执行的:1.局部变量的名称要有意义,尽量用对应的英文命名,比如“用户姓名”变量,不要用aa bb cc等来命名,而要使用userName。2.不要使用单个字母的变量,如i、n、x等。而要使用index、temp等。用于循环迭代的变量例外。3.应该使用Pascal命名法命名方法名、属性名、类名...
File类:是文件和目录路径名(文件夹)的抽象表现形式得到文件的绝对路径:Thread.currentTheah().getContextclassLoader().getResource("").getpath();建立文件 File file1 = new File ("C://temp//my...
分类:
其他好文 时间:
2016-01-16 20:59:38
阅读次数:
148
bool UWgtCpp_BaseMain::Http_readSortList() { auto temp_request = UNetAPI::createRequst(TEXT("http://localhost:59754/StudentService.svc/GetStudentLi...
分类:
Web程序 时间:
2016-01-15 12:43:22
阅读次数:
161
int[] ia = { 1, 3, 2, 4, 8, 1, 5 }; int temp = 0; for (int i = 0; i a[i + 1]) { t = a...
分类:
编程语言 时间:
2016-01-15 12:41:00
阅读次数:
156
var arrayNumber: [Int] = [2,4, 6, 7, 3, 8, 1]//冒泡排序func maopao(var array: [Int]) -> [Int] { for var i = 0;i array[j +1] { var temp = array[j] ...
分类:
编程语言 时间:
2016-01-14 19:08:05
阅读次数:
175
$arr[$j+1]){ $temp = $arr[$j]; $arr[$j] = $arr[$j+1]; $arr[$j+1] = $temp; } }}echo '';print_r($arr);/** ...
分类:
编程语言 时间:
2016-01-14 17:32:45
阅读次数:
160
--============================================--Author:--Date :--Desc :--============================================CREATE TABLE #Temp_tb( ID IN...
分类:
其他好文 时间:
2016-01-13 17:52:54
阅读次数:
127