请问 ~i 是否等价于 i!=-1?
~i
i!=-1
例如
for(int i=head[u];~i;i=edge[i].next) // 链式前向星 ...
是否等于
for(int i=head[u];i!=-1;i=edge[i].next) ...