d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Need A C Programmer's Help > Don't Know Where To Start
123Next
Add Reply New Topic New Poll
Member
Posts: 23,500
Joined: Aug 3 2011
Gold: 6,921.00
Apr 20 2016 11:45am
Alright so I'll be paying fg per requirement completed:

I don't know where to begin or how to do it. If you want to show me how to do it or do it yourself and make the fg lmk!

Just name your price and we'll agree on something!
Member
Posts: 769
Joined: Apr 1 2016
Gold: 0.00
Apr 20 2016 11:55am
I could help. Not interested in writing it for you ATM though
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 20 2016 12:41pm
Requirement 1.

Code
#include <libmill.h>
#include <stdio.h>

coroutine void consumer(chan channel) {
while(1)
printf("%d\n", chr(channel,int));
}

int main() {
chan channel = chmake(int, 0);

go(consumer(channel));

while(1)
chs(channel, int, rand()%256+1);

return 0;
}


1138fg.

This post was edited by AbDuCt on Apr 20 2016 12:42pm
Member
Posts: 23,500
Joined: Aug 3 2011
Gold: 6,921.00
Apr 20 2016 01:38pm
I realized I can do all of this in C++, and have no idea why I tried C, thanks though, please close thread.

This post was edited by Cocoo on Apr 20 2016 01:38pm
Member
Posts: 3,028
Joined: Mar 23 2016
Gold: 7,568.50
Apr 20 2016 02:30pm
Quote (Cocoo @ Apr 20 2016 08:38pm)
I realized I can do all of this in C++, and have no idea why I tried C, thanks though, please close thread.


So what, you're not gonna give him anything after he used his own free time to complete requirement 1 for you?
Member
Posts: 23,500
Joined: Aug 3 2011
Gold: 6,921.00
Apr 20 2016 06:05pm
Quote (annexusquam @ Apr 20 2016 01:30pm)
So what, you're not gonna give him anything after he used his own free time to complete requirement 1 for you?


Just name your price and we'll agree on something!

I didn't agree to it and I changed to C++, that's like saying go support Trump because he tells you to and expecting him to pay you because he has money but you did it on your own accord.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Apr 21 2016 08:19am
Quote (annexusquam @ Apr 20 2016 04:30pm)
So what, you're not gonna give him anything after he used his own free time to complete requirement 1 for you?


Took 2 minutes so I don't care.

It was mostly a troll post because I doubt this guy has even learned about concurrency, channels, or pipe. Let alone know what libmill is.
Member
Posts: 23,500
Joined: Aug 3 2011
Gold: 6,921.00
Apr 21 2016 09:34am
Quote (AbDuCt @ Apr 21 2016 07:19am)
Took 2 minutes so I don't care.

It was mostly a troll post because I doubt this guy has even learned about concurrency, channels, or pipe. Let alone know what libmill is.


Ding ding ding winner! You know me so well, are you part of the NSA? xD and yeah, I was told this was easiest to do in C but I realized I can do it in C++...
Member
Posts: 3,939
Joined: Feb 1 2013
Gold: 2,749.09
Warn: 20%
Jul 13 2016 11:03pm
Quote (Cocoo @ Apr 21 2016 08:34am)
Ding ding ding winner! You know me so well, are you part of the NSA? xD and yeah, I was told this was easiest to do in C but I realized I can do it in C++...

If it's easier to do in C, an objectively superior language, why would you choose C++?
Member
Posts: 9,803
Joined: Jun 28 2005
Gold: 6.67
Jul 14 2016 04:07am
How is C objectively superior?
Go Back To Programming & Development Topic List
123Next
Add Reply New Topic New Poll