链表添加汇总元素并在末尾插入函数

时间:2019-02-23 12:25:46

标签: c

你好,我从老师那儿得到了一个链表,我需要添加2个函数,第一个函数应该汇总元素,第二个函数应该在末尾插入一个新节点。 现在我可以轻松地执行第一个功能,但是我不能执行第二个功能。 我认为只要指针显示为NULL,您就需要使用指针,然后在那里创建一个新节点,但是我在编码时遇到了问题,我不知道该如何在主函数中调用该函数。 忽略它们是德语解释的评论 这是代码,以及我如何尝试第二个代码:

Sub DownloadDataCompleted(sender As Object, e As DownloadDataCompletedEventArgs)
    '  If the request was not canceled and did not throw
    '  an exception, display the resource.
    If e.Cancelled = False AndAlso e.Error Is Nothing Then

        PictureBox1.Image =  New Bitmap(New IO.MemoryStream(e.Result))
    End If
End Sub

Sub DownloadProgressChanged(sender As Object, e As DownloadProgressChangedEventArgs)
    ' show progress using : 
    ' Percent = e.ProgressPercentage
    ' Text = $"{e.BytesReceived} of {e.TotalBytesToReceive}"
End Sub

0 个答案:

没有答案
相关问题