I wanted to know where should I start when I wanna create a... let say program by which I can login or create an account... let say on youtube, gmail and so on.
First start off by learning some programming language :)
C++ isn't really suited to those tasks. You need something more web-oriented. To do it in C++ is like building a dog from quarks.