Bitcoin Forum
July 17, 2024, 08:38:32 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: ✪Write a simple C++ code for $2✪  (Read 432 times)
Kiilu (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
May 28, 2017, 07:30:57 AM
 #1

Write a full implementation of the narrative

In a world where no same sex marriages are allowed,a man can marry a woman and a woman can likewise marry a man. since both a woman and a man are human beings,each of them has a gender, a name and may have a spouse who must be of the opposite sex.
in this world only the government can effect divorce between a married couple and only the government can effect marriage between a couple.
This,the government does by sending a 'divorce' or a 'marry' message to either party.
the government can only send the divorce to a human who is married and 'marry' to a human who is single.

(Object oriented using C++)
shaw1
Sr. Member
****
Offline Offline

Activity: 504
Merit: 297

CryptoTalk.Org - Get Paid for every Post!


View Profile
May 28, 2017, 02:17:54 PM
 #2

Er, not sure exactly what you are asking for here...

And while the code may be simple, $2 is not likely to get people very interested... You'd lose that just in transaction fees!  Grin

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
CryptoTalk.org| 
MAKE POSTS AND EARN BTC!
🏆
DarkStar_
Legendary
*
Offline Offline

Activity: 2772
Merit: 3282


View Profile WWW
May 28, 2017, 02:29:23 PM
 #3

Your description is very confusing. How are people generated? Does the "government" send a message every x seconds, or randomly? Does it require user input, or a GUI, or can it all be done through the console?

Doesn't seem very hard to code, but your post is very vague on what you need making it very hard for a programmer to get exactly what you need. I'm not very familiar with C++, but if you want to try it yourself, you can try having different people on different arrays, with their name, their gender and who they are married to. Then you just have to run loops where the government randomly selects 2 people, sees if they are married to each other or both single, and than do the command needed.

taking a break - expect delayed responses
@prashant
Hero Member
*****
Offline Offline

Activity: 896
Merit: 505


View Profile
May 28, 2017, 07:31:20 PM
 #4

Your description is very confusing. How are people generated? Does the "government" send a message every x seconds, or randomly? Does it require user input, or a GUI, or can it all be done through the console?

Doesn't seem very hard to code, but your post is very vague on what you need making it very hard for a programmer to get exactly what you need. I'm not very familiar with C++, but if you want to try it yourself, you can try having different people on different arrays, with their name, their gender and who they are married to. Then you just have to run loops where the government randomly selects 2 people, sees if they are married to each other or both single, and than do the command needed.
Plus use that array as an argument in a function.before that make a class and then its object.then call the function to execute result.you can also do it with file handling which is more easy and understandable.
maarx
Hero Member
*****
Offline Offline

Activity: 882
Merit: 517


cloverdex.io


View Profile
May 29, 2017, 02:54:18 AM
 #5

Code:
cout << "In a world where no same sex marriages are allowed,a man can marry a woman and a woman can likewise marry a man. since both a woman and a man are human beings,each of them has a gender, a name and may have a spouse who must be of the opposite sex.
in this world only the government can effect divorce between a married couple and only the government can effect marriage between a couple.
This,the government does by sending a 'divorce' or a 'marry' message to either party.
the government can only send the divorce to a human who is married and 'marry' to a human who is single.";



























.What is Cloverdex platform?.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
ANN Thread | Website
Telegram | Twitter
Whitepaper | Reddit
tobi4255
Full Member
***
Offline Offline

Activity: 350
Merit: 101

Tontogether | Save Smart & Win Big


View Profile
May 29, 2017, 09:07:45 AM
 #6

Write a full implementation of the narrative

In a world where no same sex marriages are allowed,a man can marry a woman and a woman can likewise marry a man. since both a woman and a man are human beings,each of them has a gender, a name and may have a spouse who must be of the opposite sex.
in this world only the government can effect divorce between a married couple and only the government can effect marriage between a couple.
This,the government does by sending a 'divorce' or a 'marry' message to either party.
the government can only send the divorce to a human who is married and 'marry' to a human who is single.

(Object oriented using C++)

I don't see why anyone would bother doing this task for only 2$..

I also fail to see why you are interested in having someone do this for you. If it is an assignment you have been given, say if you are learning object-oriented programming, then you better solve it yourself and not miss out on the knowledge.

If it is not an assignment, if you are just looking for code to learn from then try places such as stackoverflow or a subreddit for c++.

Best of luck with it, in any case. Smiley


|     T o n T o g e t h e r     |     Saving Empowers Winning     |
Join Launchpool  >  Jan 10th - Feb 10th
●      T W I T T E R      ●      T E L E G R A M      ●      M E D I U M      ●
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!