Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- //struct Input_Facebook_Friend // Facebook Frined Taken Input And Stored
- //void Sorting_Friend(); // Sorting Facebook User Based On Number Of Friends
- //void Recommending_Friends(); // Recommending The Friends Based On Set Rules
- //void Condition_Check(); // Check For Same Number Of Friends and Also Check If Friend Already
- struct Input_FB_User // FAcebook User Taken As Input
- {
- char Facebook_User[100];
- };
- void Print_Objects(struct Input_FB_User ob)
- {
- printf("hu");
- printf("User Are As Follow : %s", ob.Facebook_User);
- }
- int assign(struct Input_FB_User obj, int Count)
- {
- printf("\nEnter %i Facebook User\n", Count);
- fgets(obj.Facebook_User, 10, stdin);
- return 0;
- }
- int main()
- {
- struct Input_FB_User User1,User2,User3,User4,User5,User6;
- printf("\n*** Going Into Assign Function : ***\n");
- int Count=1;
- /*THIS COUNT IS RESPONIBLE FOR INCREATING USER COUNT; I.E USER 1, USER 2 ETC. */
- /*THIS PEICE OF CODE IS RESPONSIBEL FOR ASSIGNING NAMES/USER NAME VALUES TO DIFFERENT OBJECT ; EACH FOR INDIVIDUAL USER */
- assign(User1,Count);
- Count++;
- assign(User2,Count);
- Count++;
- assign(User3,Count);
- Count++;
- assign(User4,Count);
- Count++;
- assign(User5,Count);
- Count++;
- assign(User6,Count);
- Count++;
- printf("User3 %s\n", Count,User3.Facebook_User);
- /***************************************************************************************************************************/
- Print_Objects(User1);
- Print_Objects(User2);
- Print_Objects(User3);
- Print_Objects(User4);
- Print_Objects(User5);
- Print_Objects(User6);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement