hello guys i need a real good ideas from u i want to create social networking program for c++ like instagram,facebook etc my general q:
how to implement the coorect DSA structure on building profiles and mangae post comments message from other freinds and user?

Recommended Answers

All 2 Replies

you need to store user profile (user name , password etc) , Comments/posts by that user in classes. the comment/posts class will contan pointer of a user. For example , in case of facebook, create a class of user profile with name , user name , passowrd and other profile info as private members. for messages, create a class with two user pointers and char string for message body.

make class structure and hierarcy, use inheritance and composition to solve your issue. hope you fing this helpfull :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.