thanks but it still has problem//
1>------ Build started: Project: fab arry, Configuration: Debug Win32 ------
1> fab.cpp
1>c:\users\danny\documents\visual studio 2010\projects\fab arry\fab arry\fab.cpp(16): error C2082: redefinition of formal parameter 'i'
1>c:\users\danny\documents\visual studio 2010\projects\fab arry\fab arry\fab.cpp(20): error C2106: '=' : left operand must be l-value
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========