The more the number of stage-variables and state-variables in water resources optimal allocation computation,the more complicated the computation will be.It is very difficult to use manual computation.Based on dynamic plan method,the article developed the water resources optimal allocation program by using the software of visunl Basic.This program has friendly interface and is convenient to use,also it greatly increase the computing speed.This paper using the program has given the practical application for ...