hello there, i have no idea how to check if a directory in linux already exist, can someone point me an example..pls..thanks

You can use stat or diropen..
See man pages..

how do i use it?? T_T im new in c++ dude...

how do i use it??

Goto your command prompt and type "man stat" and press enter. Then something will happen and you'll some new information on your screen, now read this. If you still don't understand write here which part didn't you understand n I'll tell you..
If you don't have access to man pages, just google the same words you'll get it.

T_T im new in c++ dude...

So??!! I'll say that's all the more reason to be reading up.. !