單項選擇題為了將字符串:str=“123456”轉換成整數(shù)123456應該使用以下哪條語句?()
A. int Num = (int)str
B. int Num = str.Parse(int)
C. int Num = str.ToInt()
D. int Num = int.Parse(str)
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題
為了得到以下語句的支持,類MyClass至少應實現(xiàn)()接口
A. IComparablefQIComparer
B. IList
C. IEnumerable
D. IEnumerator和IEnumerable
2.單項選擇題
執(zhí)行以下語句后,控制臺的輸出是什么?()
A. "hello world"
B. "HELLO WORLD"
C. "STR"
D. "Hello World"

最新試題
在WinForm窗體中,ComboBox有三種下拉樣式,其中不包括()
題型:單項選擇題
在WinForms中,已知在一個叫imgListBook的ImageList控件中有一張圖片,為了設置一個名為picBook的PictureBox控件的Image屬性,下列代碼正確的是()
題型:單項選擇題
在ADO.NET中,下列能夠提供與SQL Server數(shù)據(jù)庫連接的對象是()
題型:單項選擇題
在WinForms高級控件中,使用工具條控件可以創(chuàng)建功能非常強大的工具欄,工具欄上可以包含以下控件中除了()控件。
題型:單項選擇題
在DataSet 中,若修改某一DataRow 對象的任何一列的值,該行的DataRowState 屬性的值將變?yōu)椋ǎ?/p>
題型:單項選擇題