[ create a new paste ] login | about

Link: http://codepad.org/9g4VAEqb    [ raw code | output | fork ]

C, pasted on Jan 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void ProcessList(LIST l)
{
	NODE* p;
	p = l.pHead;
	while(p != NULL)
	{
		ProcessNode(p);
		p = p->pNext;
	}
}

// Cách viết khác

void ProcessList(LIST l)
{
	for(NODE* p = l.pHead; p != NULL; p = p->pNext)
	{
		ProcessNode(p);
	}
}


Output:
1
2
Line 1: error: expected ')' before 'l'
Line 14: error: expected ')' before 'l'


Create a new paste based on this one


Comments: