这是代码。我知道C++和++ c之间的区别。
public class sample {
public static void main(String[] b){
int count = 0,a=0;
for (int i = 0; i < 3; i++){
count=count++;
System.out.println(count);
}
但是我期待是
count=count;count=count+1;//output has to be 1 2 3
但输出是0 0 0
+1哎哟,这是你有的讨厌的东西。 –
我想了解不实施的概念... – freshDroid