推介:| Web Hosting | Cloud Server | Server Hosting | Server Colocation | Responsive Web design | Bob嫂Ur pnt瘦身三寶 | Email Hosting Service | English course |

發新話題
打印

有沒有人知道這C++程式錯在那裡

I am not really good in c/c++.. may be wrong

I think the purpose of this exercise is meant to use 'wout' command instead of 'cout'. If this is the case, I think you need to include <stddef.h> lib.

wout is to display wide charcters, which is double size of char.

This is all I know about wout. hhl, do you have any idea? Thx

[ 本帖最後由 d_chu 於 2006-11-23 05:03 AM 編輯 ]

TOP

thanks for the info, hhl..  havn't touch c++ for 5 years. it is already good for me to still remember a command like wout or wcout.

As also mentioned from you that wcout is double of char... so... correct me if I am wrong.. In practically, is it able to store character other than english, such as chinese (2 byte unicode)?

TOP

發新話題


重要聲明:本討論區是以即時上載留言的方式運作,本網站對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。本討論區有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。


Copyright 1997- Xocat. All Right Reserved.