博客园代码自定义高亮—测试

1)记得要设置默认编辑器Markdown
2)在写代码前后需要 添加 ```

void insert(int data)
{
	Node *newNode = new Node;
	newNode->data = data;
	newNode->pNext = nullptr;
	
	Node *p = head;
	if (head == nullptr)
	{
		head = newNode;
	}
	else
	{
		while (p->pNext != nullptr)
		{
			p = p->pNext;
		}
		p->pNext = newNode;
	}
}

posted on 2019-05-24 16:38  天道酬勤、  阅读(120)  评论(0编辑  收藏  举报

导航