Pair programming based on individual projects

Pair Programming painful two weeks is finally over, why the pain, because the need to do this interface. Personal project I'm using C language, and my partner is using Java. Java has to listen to her own swing can be used to interface to do, so I use Java to start writing. I will not be equal to the basic Java thrown off balance, though, and almost on the C language to write code in general process, but there are a lot of different places small, need attention.

Division I and her teammates are responsible for doing the interface, verification codes, and I was responsible for the function to change the title of the volume. Now think about it, actually, my workload is very small, because I will not be taken into account teammate Java, so most are her to do. Functions can be combined with the topic of personal content items, topics incoming difficulty (elementary, middle, high school), to generate problems. But on the way to change the C language Java can be said is difficult, almost every write two lines of code, there will be an error. Fortunately, with reference to personal projects, I stumbled finished the topic and function, the next step is to calculate mathematical expressions obtained. A start can be said to be completely clueless, many people have used to calculate postfix expression, access to information from the Internet but I found that there is a JavaScript eval () function can be calculated arithmetic parentheses simple calculation formula such this is tantamount to directly address the problem of the subject in primary schools. We do not know can not be used in Java, but I tried it, proved completely. That middle and high school and joined the square, square root, trigonometric functions and other operations, how to do it? My idea is to start with these special operation to extract out of the equation, the calculated results, and then replace the results into account. Speaking quite simple, but in practice it is still quite hard. Ins and Outs spent more than a week, in addressing a variety of after finally being given the run. The biggest problem encountered is the eval () function can not be the result when you call, originally I thought it can not use this function, the back only to find that the topic and replacement process has many problems, such as the denominator is 0, tan90 this expression meaningless. Our SMS verification code is registered to use Ali cloud, or very fast through the application, there are 100 free text messages. Thanks to my teammates powerful, we can complete this project on time. For me, the greatest achievement is learned to do simple interface, familiar with the use of the Java language.

The main function is to call a function of the login screen, the login screen and then connects to register and do problems, inter-related.

The eval () function is the function can be directly calculated primary topic, I forced the final output is the result of type double, we should note here, get a lot of school topics are integers, but to be defined as a double type, otherwise an error .

Interface portion resulting shots are as follows:

              

Guess you like

Origin www.cnblogs.com/kukukiki112/p/11604833.html
Recommended