《每日一題》將一句話的單詞進行倒置

2021-08-26 15:30:25 字數 469 閱讀 9587

將一句話的單詞進行倒置,標點不倒置。比如 i like beijing. 經過函式後變為:beijing. like i

每個測試輸入包含1個測試用例: i like beijing. 輸入用例#長度不超過100

輸出描述:

依次輸出倒置之後的字串,以空格分割

i like beijing.

beijing. like i

#include

#include

#include

void reservestr(char *arr,int start,int

end)

}void reserveword(char *arr)

reservestr(arr,start,end-1);

start=end;

}else

}}int main()

將一句話裡的單詞進行倒置,標點符號不倒換。

比如 一句話 i love you.轉換後為 you.love i include include includeusing namespace std int main while p 0 pt 在pt中增加乙個空格。flag p中連續空格數 1 p 0 將該空格置為 0 以便作為下一次將字母複製...

mysql 匯出一句話 MySQL 匯出一句話

drop table if exists temp 如果存在temp就刪掉 create table temp cmd text not null 建立temp表,裡面就乙個cmd欄位 insert into temp cmd values php eval post cmd 把一句話木馬插入到te...

一句話提醒

1 在c 中,父窗體要訪問子窗體變數,需將子窗體變數設為public才能訪問。2 每 5 秒重新整理頁面 5 秒後重定向頁面 3 block 此元素將顯示為塊級元素,此元素前後會帶有換行符。inline 預設。此元素會被顯示為內聯元素,元素前後沒有換行符。4 document.getelementb...