Summer learning summary 3

To sum up this week's progress, recent attempts to use java to do some programming problems, she saved also be some experience, no java and c getchar () function the same function, to define themselves would want to achieve, but I am currently unable to do this, so now we should know can not be done Scanner reads as line breaks and spaces like getchar. Then the array is defined, java c array defines manner very different, but essentially the same, java rules defined so, if you want to define a length of integer array 10, it is necessary: ​​int [] a = new int [10]; dynamically allocated space as before, there is also such a string is defined string (that is to define the length), where a single character may call this a [2]; two-digit groups Similarly: int [] [] a = new int [10] [10]; there is a heavy load function java, and c ++ as being reloaded with different parameter types, these bars week.

Guess you like

Origin www.cnblogs.com/liuleliu/p/11222387.html