just used basic looping process
just start from scratch . .u cannot understand c++ or c# if you cannot understand basic C language. start to C language and study all about it. and after all of that ,I assure you you can understand the basic function of C ++ even in complex program of it.