那是什么意思? [英] What does that means ?
本文介绍了那是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在浏览Web上的一些代码,但是我对代码有点困惑,因为我不理解(很难理解)它,并且我希望以简单的形式替换它(如果有的话)奖金!!
我尝试过的事情:
i am running through some code on web but i am little confused about the code that because i dont understand (Difficult To understand )it and i want its alternate in simple form if any also if any explanation about that part it will be bonus !!
What I have tried:
typedef struct node {
int info;
struct node *link;
}NODE;
还有,
also,
NODE* create(NODE *start)//function to create Node
VS
VS
void disp(NODE *start)//function of display
推荐答案
老实说,如果您不理解这一点,则需要返回并重新阅读课程中的适当内容-因为这是非常简单的东西,您应该已经了解并很好理解.
代码的第一位创建一个结构-如果您喜欢,则定义为用户定义的数据类型-包含一个整数和一个指向该结构的另一个实例的指针. 第二位声明一个函数,该函数返回一个指向结构新实例的指针,该实例接受列表开始"指针,因此可以(大概)将该项添加到现有列表中.
最后一位声明一个不返回任何值的函数,但是接受一个指向列表中第一个元素的指针,该指针(可能)将整个列表打印到某个地方.
正如我所说:几乎可以肯定,您现在应该已经了解了一些非常基本的东西.如果您不这样做,那么请务必仔细阅读课程笔记,因为这很重要!
To be honest, if you don;t understand that, you need to go back and re-read the appropriate bits of your course - because this is pretty simple stuff that you should have covered and understood very well.
The first bit of code creates a structure - a user defined datatype if you like - which contains and integer and a pointer to another instance of the structure.
The second bit declares a function returning a pointer to the new instance of the structure that accepts a "start of list" pointer so it can (presumably) add the item into the existing list.
The last bit declares a function that returns no value, but accepts a pointer to the first element in the list that (probably) prints the whole list somewhere.
As I said: pretty basic stuff that you are almost certainly supposed to understand by now. If you don''t, then re-read your course notes very carefully as this stuff is important!
那是简单的表格!
您需要正确学习C/C ++.
这是这些语言的作者有关C和C ++的参考书的链接.请注意,C不是C ++的祖先,因此了解C对于C ++总是有用的.
C编程语言-维基百科,免费的百科全书 [ https://hassanolity.files.wordpress.com/2013/11/the_c_programming_language_2.pdf [ ^ ]
http://www.ime.usp.br/~pf/Kernighan- Ritchie/C-Programming-Ebook.pdf [ C ++编程语言 [
Those are simple form!
You need to learn properly C/C++.
Here is links to references books on C and C++ by the authors of the languages. Note than C is the ancestor of C++, so knowing C is always useful with C++.
The C Programming Language - Wikipedia, the free encyclopedia[^]
https://hassanolity.files.wordpress.com/2013/11/the_c_programming_language_2.pdf[^]
http://www.ime.usp.br/~pf/Kernighan-Ritchie/C-Programming-Ebook.pdf[^]
C++ Programing Language[^]
好吧,您没有指定您不了解的部分,但是看起来像是对" 单链列表 [
Well, you don''t specify what part you don''t understand but that looks like a simple implementation of a "singly linked list[^]".
这篇关于那是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文