巨型水母出沒 35公斤好嚇人
How do I cast a string to an int, float, double, etc? - The C# Team - Site Home - MSDN Blogs近日,英國康沃爾海岸發現了一隻重達35公斤的巨型水母,而導致這麼大水母出現的原因是海水變暖。浮游生物聚集形成水華現象,吸引了本應只在深海區出現的巨型桶水母(barrel jellyfish)。潛水攝影師查爾斯-胡德在彭贊斯拍攝到了這一場景。 其實還滿可愛的嘛~~~好想跟他做朋友喔! 文章來源: 新浪MSDN article: "How to: Determine Whether a String Represents a Numeric Value (C# Programming Guide)". msdn.microsoft.com/.../bb384043(v=VS.90).aspx In short, this is what Microsoft suggests: int i = 0; string s = "108"; bool result = int.TryParse(s, out i...
全文閱讀