由买买提看人间百态

topics

全部话题 - 话题: pn2
(共0页)
j*****z
发帖数: 11
1
来自主题: Programming版 - Three C/C++ Programming Questions
Can anyone help me to answer the following questions:
1) Given the following code snippet, what does the function DoesWhat() do?
And what, if any, assumptions are made about the input to the function.
struct _tagElement
{
int m_cRef;
unsigned char m_bData[20];
struct _tagElement * m_next;

} NODE, * PNODE;
PNODE DoesWhat (PNODE pn1, PNODE pn2)
{
PNODE * ppnV = &pn1;
PNODE * ppn1 = &pn1;
PNODE * ppn2 = &pn2;
for ( ; *ppn1 || *ppn2; ppn1 = &((
c****w
发帖数: 565
2
来自主题: Mathematics版 - 排列问题里面没太在意的一个量
Pn1+Pn2+Pn3+...+Pnn=?
i.e. n+n*(n-1)+n*(n-1)*(n-2)+...+n*(n-1)*...*2*1
有没有人知道这个和是多少阿?
(共0页)