关于的++问题?
for(int k=0;k<intstash.count();k++)
printf("intstash.fetch(%d)=%d\n",k,
*(int*)intstash.fetch(k));
for(int i=0;i<stringstash.count();i++)
printf("stringstash.fetch(%d)=%s),i,
(char*)stringstash.fetch(i++));
putchar('\n');
此处出于thinking in c++,page 63,
我想知道为什么在instash.fetch(k)是K,
而到了stringstash.fetch(i++)中就变成了I++,
是不是错了?
如果代个数到底下的那个for中I=0如时,将打印出
stringstash.fetch(0)='(char*)stringstash.fetch(0)',
但执行这次后I=1再进行FOR中的第三项I++,然后I=2,
将跳过I=1时的打印,所以我想是不是书在此处写错了?