前些时候做过的一份面试试题[7]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 keminlau 的 blog

         //完成类似于vbleft函数的功能(返回字符串ssource的左ilength位的字符串)。

         console.writeline("please enter a string to treaded:");

         string s = console.readline();

         int i = 0;

         bool binputvalid = false;

         while(!binputvalid){

                   try{

                            console.writeline("please enter the length from left most:");

                            i = convert.toint32(console.readline());

                            if(i > s.length) throw new exception("");

本文关键:前些时候做过的一份面试试题
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top