current color

after a use texture to an object, the current color is changed to some kind color of the texture(I don’t know how come). can I change the current color back?

the state of the drawing color stays the same as long as you do not change it, if you want to make a green cube:
//draw cube

set the color you want before drawing.

A little correction: glColor4f may mean not only diffuse or ambient color, it depends on last state of color-material, if GL_COLOR_MATERIAL is enabled, surely.
If you wanna change whole material with all properties use glMaterial functions.

cause gl retains the last state something was set to u need to make sure the colour is the apporopiate one for what u need (most likely white in your case huangzl)
colour is now white