原创 Django實驗室建站(1):view的使用/代碼展示(用於記錄)

 from django.shortcuts import get_object_or_404,render from django.http import HttpResponseRedirect,HttpResponse from

原创 華爲(·11)單詞倒排

#include <iostream> #include <string> using namespace std; void ReverseStringWord(const string &str) { int pos1=0;

原创 華爲(10)字符串排序無視大小寫

#include <iostream> #include <string> using namespace std; void SortString(const string &str) { string strEnglishch

原创 華爲(7)小球落地高度

#include <iostream> #include <string> using namespace std; static double getJourney(int high) { return 2.875*hi

原创 華爲(5)單詞倒排

#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin,str); int

原创 華爲(8)查找兩個字符串a,b中的最長公共子串

#include <iostream> #include <string> using namespace std; static string iQueryMaxCommString(string &stringA, string s

原创 華爲(9)輸入n個整數,輸出其中最小的k個

#include <iostream> using namespace std; bool GetMinK(unsigned int uiInputNum, int * pInputArray, unsigned int uiK, int

原创 異常的類型

1.異常是異常控制流的一種形式;要麼是由硬件來實現的,要麼是由操作系統來實現的,比如系統調用的陷入異常; 2.異常時控制流的突變,用來響應處理器狀態中的變化! 3.異常的類型: 中斷:異步發生的,來自處理器外部的I/O設備的信號的結果;