help! help! i'am a beginer!

i'am a beginer in Hydropower engineering department in Hohai University of China, i want to use the parmetis routines for the mesh partition,but i can't output the result. so i would like to know if any of you do me favor and provide me a code for mesh partition. C or C++ code are all good

Best regards

Zhang lei