So you can think of a new line as being rolling the paper up so you're on a new line but a carriage return moves the cursor or moves that writing head all the way back to the left.
你们可以把换行想象成翻纸,把回车当做是将光标,移动到最左边。
You should see that the blue line is better than the pink line because, for any expected return, the blue line is to the left of the pink line, right?
可以看到蓝线比粉线好,原因是对于任意的预期收益率,蓝线都在粉线的左边,对吧?
So, after the second line for code here char * s1 gets the return value of get string this is what the state of our world looks like.
在第二行之后,这个代码char,*s1,等于GetSting的返回值,这就是它看起来的状态。
So this line or these lines of code up here are arguably constant time steps to say if N is less than 2 in return, that it will always take maybe one step, maybe two steps, some number of fixed CPU cycles.
如果N小于2并返回,那么这些行所对应的代码,通常只需要执行一步,或者两步,具体数字与CPU周期有关。
应用推荐