亂貼小站公告欄
  • 這是一篇加密文章,請輸入密碼
  • 密碼提示:我的手機
  • 請輸入密碼:

夢的第一幕我和另外兩個人看起來都好像過正常生活,然後三個人突然就聚在一起,第一個人說:『你們有沒有感覺到什麼?』第二個人說:『有阿,在那邊的感覺。』,我說:『我們的狗都已經在這種奇怪的感覺出現時跑過去看了說。』,第一個人又說:『那我們要不要去看一下?』,我和第二個人就一起說了:『好!』
接近有異常感覺的地方時,就看到一扇看不透的鐵柵欄,因為鐵的欄杆中間有黑色光,所以看不透。其中一個人就去把門拉開,然後我的狗和其中一個人的狗馬上跑出來,他的狗一出來就蹦出一句人話,牠講的話我忘了,然後牠就快速往遠方跑去。我的狗是在我身邊待著。然後,最後一個人的狗也跟著跑出門,一出來就咬住了我的狗的前腳(哪一邊我忘了),我在夢裡面的記憶好像記得那隻狗常常咬著我的狗的前腳,我把牠制止了以後,牠竟然也說了一句話:『我就說牠前腳一定有什麼。』,然後夢就醒了。


和風信使 發表在 痞客邦 留言(0) 人氣()

最近這幾天,好像睡覺時都會做夢。通常我夢到的東西幾乎醒來之後都會忘光,今天的東西我還記得一點點。

一開始,我好像看到一個女牛仔開著汽車進一個小鎮,在一筆直的路上,她看到人就開槍,幾乎是一槍斃命,可以看到屋子裡原本好像有警察在裡面搜查。她在打死了幾間房子裡了人之後,忽然遇到一個男的一直打不到,然後女牛仔就追著他開槍。後來男的跑到一個下坡草地,女牛仔就下車去追,後來我就醒了。


和風信使 發表在 痞客邦 留言(0) 人氣()

留個紀錄
我終於到30%
成功的拿到了管理員權限
可以亂加題目......嗯........ 應該是加有深度的題目才對
可以笑傑民了

編號:
1100
帳號:
taichunmin SendIMessage
姓名:
和風信使
學校:
彰化高中
來源:
163.23.148.203 ?
分數:
11184

和風信使 發表在 痞客邦 留言(0) 人氣()

C++ String Streams 字串串流

String streams 跟 和 函式庫很相近,不同的地方是,
string streams 可以讓你在 string 的基礎上使用 I/O,而不是利用串流 stream 當基礎
。 函式庫提供和 c 語言裡的 sscanf 和 sprintf 相類似的功能。

在 裡的三個主要類別:

  *stringstream - 允許輸入輸出
  *istringstream - 只允許輸入,類似 cin
  *ostringstream - 只允許輸出,類似 cout

String streams 完全是 iostreams 的從屬類別 subclasses,所以所有在 iostreams 可以
使用的函式也都可以用在 stringstream。請看以下網址以便獲得更多 C++ I/O functions
的資訊。

因此,string streams 也支援以下函式:

變數宣告    創造新的 string streams
 >   利用串流運算子來讀取字串串流
rdbuf()     取得這個 string stream 的緩衝區 buffer 位址
str()       取得或設定 string streamg 的 string

變數宣告:

  語法:
 
    #include

和風信使 發表在 痞客邦 留言(0) 人氣()

str

Syntax:

    #include 
void str( string s );
string str();

The function str() can be used in two ways. First, it can be used to get a copy of the string that is being manipulated by the current stream string. This is most useful with output strings. For example:

    ostringstream stream1;
stream1 "Testing!" cout str();

Second, str() can be used to copy a string into the stream. This is most useful with input strings. For example:

    istringstream stream1;
string string1 = "25";
stream1.str(string1);

str(), along with clear(), is also handy when you need to clear the stream so that it can be reused:

    istringstream stream1;
float num;

// use it once
string string1 = "25 1 3.235\n1111111\n222222";
stream1.str(string1);
while( stream1 >> num ) cout "num: " // displays numbers, one per line

// use the same string stream again with clear() and str()
string string2 = "1 2 3 4 5 6 7 8 9 10";
stream1.clear();

和風信使 發表在 痞客邦 留言(0) 人氣()

String Stream Operators

Syntax:

    #include 
operator operator>>

Like C++_I/O_Streams, the simplest way to use string streams is to take advantage of the overloaded « and » operators. The « operator inserts data into the stream. For example:

    stream1 "hello" 

This example inserts the string “hello” and the variable i into stream1. In contrast, the » operator extracts data out of a string stream:
    stream1 >> i;

This code reads a value from stream1 and assigns the variable i that value.
Related Topics: C++ I/O Streams

和風信使 發表在 痞客邦 留言(0) 人氣()

String Stream Constructors

Syntax:

    #include 
stringstream()
stringstream( openmode mode )
stringstream( string s, openmode mode )
ostringstream()
ostringstream( openmode mode )
ostringstream( string s, openmode mode )
istringstream()
istringstream( openmode mode )
istringstream( string s, openmode mode )

The stringstream, ostringstream, and istringstream objects are used for input and output to a string. They behave in a manner similar to fstream, ofstream and ifstream objects. The optional mode parameter defines how the file is to be opened, according to the io_stream_mode_flags. An ostringstream object can be used to write to a string. This is similar to the C sprintf() function. For example:

    ostringstream s1;
int i = 22;
s1 "Hello " string s2 = s1.str();
cout
An istringstream object can be used to read from a string. This is similar to the C sscanf() function. For example:

和風信使 發表在 痞客邦 留言(0) 人氣()

C++ String Streams

String streams are similar to the and libraries, except that string streams allow you to perform I/O on strings instead of streams. The library provides functionality similar to sscanf and sprintf in the standard C library.

Three main classes are available in :

  • stringstream - allows input and output
  • istringstream - allows input only
  • ostringstream - allows output only

String streams are actually subclasses of iostreams, so all of the functions available for iostreams are also available for stringstream. See the C++ I/O functions for more information.

In addition, string streams also supply the following functions:

Constructors create new string streams
Operators read from and write to string streams
rdbuf get the buffer for a string stream
str get or set the stream's string

和風信使 發表在 痞客邦 留言(0) 人氣()

本文引用自 http://pcuser.pixnet.net/blog/post/22495811

Q:

我想要建立一個受保護的資料夾,讓別人看的到卻進不去。但是由於我很健忘,有沒有什麼辦法是可以不用建立密碼,又可以達到這個效果的?

A:一般我們想要加密某個檔案或資料夾的時候,通常都是用軟體來加上密碼,這樣即使別人用你的帳號登入,也無法開啟該資料夾。不過其實在Windows中有個小密技,可以建立一個平常人進不去的資料夾喔!這樣的資料夾因為知道如何進入的人不多,因此也成為一種另類的「加密」小撇步囉!

1.
首先按下【開始】→【執行】,在對話盒中填入「cmd」,然後按下〔確定〕,叫出命令提示字元視窗。開啟後,假設我們要將這個加密資料夾建在D槽,就輸入「D:」指令並按下〔Enter〕,切換到目標磁碟機。
02-86.png

 

2.
再來要用「md」指令建立新資料夾。假設資料夾名稱想取為「pcuser」,那麼在建立資料夾時,要在名稱後面緊接著加上「..\」。例如輸入「md pcuser..\」,再按下〔Enter〕。
02-87.png

 

3.
回到檔案總管中,找到剛才建立的資料夾。咦?剛才不是取名為「pcuser..\」,怎麼看到的資料夾後面只剩一個點,變成「pcuser.」了?不管了,按兩下這個資料夾進入看看。

02-88.png


4.
真是神奇!從檔案總管沒辦法進入這個資料夾耶?而即使跑到命令提示字元視窗下,利用DOS指令輸入「cd pcuser.」或「cd pcuser..\」,也是無法進入喔!
02-89.png 02-90.png

 

和風信使 發表在 痞客邦 留言(2) 人氣()