我翻譯的《Erlang程式設計》出版了

我翻譯的《Erlang程式設計》出版了

我不太願意在這裡做廣告,所以這只算是資訊的告知。有興趣的讀者,可以去書局翻閱看看。學習Erlang可不像學Java / C# / Ruby / D / Python ... 這些 imperative / oop 語言,學習Erlang一開始通常會讓人相當不適應。不過如果你先熟悉Erlang,接下來接觸像是F#這類的FP語言,也就不會太困難了,這是我的經驗談。

如果你想開發GUI系統,那麼Erlang目前可能不太適合,因為它預定的模組gs其實是Tk,而且「根據網路傳聞」,好像這部分有bug。有人試圖把Erlang接上其他的GUI套件,還有人更妙,居然把Erlang接到REBOL,拿REBOL當作Erlang的GUI。無論如何,這些作法都很克難。所以,似乎目前Erlang還是比較適合做沒有複雜GUI的程式,開發Server程式更是讓Erlang如魚得水。
阅读更多

VB翻譯VC#~~~~~~~~~~~~~~~

07-07

Private Sub WriteDataGrid2Excel2()rn Dim xlsheet As New SpreadsheetClass()rn Dim i As Integer = 0rn Dim j As Integer = 0rn 'Response.End()rn ' 输出标题rn Dim oItem As DataGridColumnrn For Each oItem In DataGrid1.Columnsrn xlsheet.ActiveSheet.Cells(1, i + 1) = oItem.HeaderTextrn 'xlsheet.ActiveSheet.Range(xlsheet.ActiveSheet.Cells(1, 1),_rn xlsheet.ActiveSheet.Cells(1, i + 1)).Font.Bold = Truern '设置格式rn xlsheet.Range(xlsheet.Cells(1, 1), xlsheet.Cells(1, i + 1)).Font.Bold = Truern xlsheet.Range(xlsheet.Cells(1, 1), xlsheet.Cells(1, i + 1)).Font.Color = "red"rn i = i + 1rn Nextrnrn Dim numbercols As Integer = DataGrid1.Items.Item(0).Cells.Countrn ' 输出字段内容rn For j = 0 To DataGrid1.Items.Count - 1rn For i = 0 To numbercols - 1rn xlsheet.Range(xlsheet.Cells(2, 2), xlsheet.Cells(j + 2, i + 1)).Font.Color = "blue"rn 'xlsheet.Range("A2:B14").WrapText = Truern xlsheet.Range(xlsheet.Cells(2, 1), xlsheet.Cells(j + 2, i + 1)).AutoFitColumns()rn xlsheet.ActiveSheet.Cells(j + 2, i + 1) = DataGrid1.Items.Item(j).Cells(i).Text.Replace(" ", " ")rn Nextrn Nextrn Tryrn xlsheet.ActiveSheet.Export(Server.MapPath(".") + "\Images\" + Me.xlfile.Text,_rn OWC.SheetExportActionEnum.ssExportActionNone)rn Catch e As System.Runtime.InteropServices.COMExceptionrn Response.Write("错误:" + e.Message)rn End Tryrn End Subrnrn Private Sub ExportDataGrid2Excel_Click(ByVal sender As Object,_rn ByVal e As System.EventArgs) Handles ExportDataGrid2Excel.Clickrn If (Me.xlfile.Text.Trim() <> "") Thenrn Me.WriteDataGrid2Excel2()rn End Ifrn End Subrn我不懂VB各位誰能幫我將以上VB代碼翻譯成VC#的多謝了

没有更多推荐了,返回首页