原创 英語基礎語法——非謂語動詞

非謂語動詞 To+動詞原形 動詞原形+ing To do 不定式可以做很多成分。 Ex: To get there by bike will take us an hour. The driver failed to se

原创 英語基礎語法——副詞

副詞 修飾動詞,形容詞,副詞等其他成分 Ex: He runs fast. She is very beautiful. They work very hard. 副詞放在助動詞後,多個助動詞副詞一般放在第一個助動詞後 Ex: T

原创 英語基礎語法——用疑問詞提問和回答

用疑問詞提問和回答 疑問詞: when , where, what, how, who Ex: he bought three books last night. Who bought three books last n

原创 英語基礎語法——一般將來時態

一般將來時態 Will/ shall + 動詞原形表示將要發生的事情 Ex: They will go to Shanghai by ship tomorrow Begoing to + 動詞原形意爲打算,將要。 They are

原创 英語基礎語法——Had better/would rather

Had better/would rather Had better+接動詞原形“最好做某事” Ex : Hehad better eat more Youhad better finish it right now. Would

原创 英語基礎語法——情態動詞

情態動詞 1、 can/could/may/might/might/beable to can 表示現在could表示過去 都譯爲可能 hecan /could/is able to swim. Can/could I

原创 英語基礎語法——助動詞

助動詞 1、 am,is, are, was, were(幫助變爲進行時態,被動語態) 2、 do,does, did(幫助句子變疑問句,否定,強調) 3、 has,have(幫助句子變爲現在完成時態

原创 英語基礎語法——被動語態

被動語態 1、 Ex: he is taken to America by his mother. The information is needed by us. The book was being read by him.

原创 英語基礎語法——情態動詞+一般完成時

情態動詞+一般完成時 兩個含義1、表達過去的事實。2、推測的含義(但助動詞should例外) Ex; He can/could have arrived. He must have arrived. Should+have+pp

原创 輸出2—1000的所有同構數

問題描述:輸出2—1000的所有同構數。同構數指某一數出現在平方項的右端,如5,6,25的平方爲25、36、625。所以5、6、 25是同構數。 編譯環境:vc++6.0 #include <stdio.h> int main(

原创 英語基礎語法——形式主語/賓語

形式主語/賓語 不定式/動名詞的否定 To do 做主語一般用It 做形式主語. It’s a great honor to be invited. 形式賓語: We think it important to learn Eng

原创 統計字符串中單詞的個數,C語言

int wordCount(char* str)//統計單詞個數,返回給主調函數 { int count = 0; char* p = str; if (!*p) return 0; while (*p!='\0') {

原创 十進制轉換十六進制 、C語言

#include <stdio.h> /*輸入一個十進制整數(可能大於15),轉化爲十六進制輸出*/ /*十進制轉十六進制,方法:除16取餘數倒排*/ char* convert(int x) { static char hexch

原创 以單詞爲單位,逆序輸出一行字符串中的單詞,C語言

編寫程序將鍵盤輸入的一行字符串,按單詞倒排輸出。 例如輸入 I love you ,輸出 you love me . int main() { char origin[81]; char strstr[81][81] = { 0 }

原创 找出字符串中最長的單詞,並輸出(可能有多個)。C語言

/*計劃分兩步走,找出單詞的最大長度maxLen,再把長度爲maxLen的單詞打印出來*/ int longestWorlds(char* str)//找出最長單詞(可能不止一個),打印 { /*第一步*/ char* p = st