[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 337
Thread images: 50

File: 1480956343871.jpg (675KB, 940x822px) Image search: [Google]
1480956343871.jpg
675KB, 940x822px
What are you working on, /g/?

Old thread: >>58009006
>>
First for developping your own OS
>>
File: akari2.jpg (58KB, 514x524px) Image search: [Google]
akari2.jpg
58KB, 514x524px
First for akari-bbs!
>>
>>58015111
Good OP, right at bump limit. Thanks.

Working on .NET things.

I like C#, and I like .NET.

I am happy.
>>
>>58015111
>>58015158
Fucking weeb pedos kill yourselves
>>
>>58015158
Akari is the worst anime I haven't watched yet.
>>
>>58015159
what about .NET#?
>>
>>58015111
Rewriting the Linux Kernel in Perl
>>
C# > Java
VS > any other IDE
>>
Just finished working out some bugs on a new program I've been fiddling with, currently backing up like 24TB so I might need to suspend operations for now.
>>
File: 1481763028967.jpg (446KB, 843x1034px) Image search: [Google]
1481763028967.jpg
446KB, 843x1034px
>>58015159
>>58015182
>>58015262
>>58015293
>>58015291
Fuck off pajeets, get out of my website.
>>
File: webmtroll.webm (3MB, 1000x414px) Image search: [Google]
webmtroll.webm
3MB, 1000x414px
/dpt/-chan, daisuki~

Ask your favorite programming literate anything (r/IAMA).

>>58015293
>VS > any other IDE
Something like Pharo is better; The language is the programming environment and the programming environment is the language.

>>58015182
Please, don't bully.

>>58015158
Thank you for doing akari-bbs.

>>58015111
Thank you for using an anime image.
>>
>>58015341
Why haven't you killed yourself yet
>>
>>58015341
Why Haskell is superiour language?
>>
>>58015111
I'm learning to code in Rust and I'll try to make a cli libre minimum viable program for my union.
>>
>>58015410
Because Haskell fags know how to code in C# while C# fags don't know how to code in Haskell.
>>
File: 888.jpg (166KB, 1000x1000px) Image search: [Google]
888.jpg
166KB, 1000x1000px
How do I learn JS senpai?
>>
I'm making a personal site as a hobby, and as a way to store all the front ends for my little projects. I'm not sure what frontend framework I want to use. Right now I'm thinking Vue.js, but I've also been told that Angular 2 and React are good. Does the speed and small size of Vue.js make it worth it?
>>
>>58015262
>.NET#
n-nani?
>>
>>58015293
>C# > Java
Absolutely
>VS > any other IDE
Depends on what language you're using. On any VS first-class language, this is true.
>>
>>58015470
It's 2016, you shouldn't really be using frameworks anymore.

Pure JS is the way to go.
>>
File: Screenshot_2016-12-15_21-38-31.png (7KB, 544x144px) Image search: [Google]
Screenshot_2016-12-15_21-38-31.png
7KB, 544x144px
JavaScript knowers, can you explain what is happening?
>>
>>58015111
nice trips
>>
File: 1480781792289.png (288KB, 1000x632px) Image search: [Google]
1480781792289.png
288KB, 1000x632px
>>58015111
I fucked up real bad with this one boyos.
Trying to generate SASL challenge string.

        if (!tallis_get_sasl_password(tallis))
{
char *temp = malloc(strlen(tallis->nick) * 2 +
strlen(tallis->sasl_password) + 3);

memcpy(temp, tallis->nick, strlen(tallis->nick));
temp[strlen(tallis->nick) + 2] = '\0';
memcpy(temp + strlen(tallis->nick) + 1,
tallis->nick, strlen(tallis->nick) + 1);
temp[strlen(tallis->nick) * 2 + 2] = '\0';
memcpy(temp + strlen(tallis->nick) * 2 + 2, tallis->sasl_password,
strlen(tallis->sasl_password));
tallis_base64_encode(temp,
strlen(temp) * 2 + strlen(tallis->sasl_password) + 2,
&tallis->sasl_challenge);

tallis_send(tallis, 1, "CAP REQ :multi-prefix sasl\r\n");
}
else
puts("running with SASL disabled");
>>
Theorizing about data mining and astroturfing /r/the_donald

Going to compile a list of /r/the_donald posters
>>
>>58015505
You can use + to concat strings.

Strings are implicitly converted to an integer if an integer operation is attempted on them.

Thus, + is trying to concat strings, and - is trying to subtract the integer conversion from a string that can be converted to an integer.
>>
File: 1451985974675.png (41KB, 256x702px) Image search: [Google]
1451985974675.png
41KB, 256x702px
>>58015505
>javascript
>programming
lol
>>>/g/wdg/
>>
>>58015500
But more people are using frameworks now than ever before.

So... no.
>>
>>58015505
Weak typing. It's bad.

Weak typing is not the same as dynamic typing, which can be good.
>>
>>58015555
Quads of truth
>>
>>58015626
How does that demonstrate weak typing?
>>
>>58015470
aurelia js
>>
New project idea: An extension that prevents you from accidentally going to a website that tells you to turn off your adblocker. It can remove the links from webpages and Google results.
>>
>>58015679
Implicit coercion. That's weak typing.
>>
>>58015688
Or just use an adblocker-blocker-blocker
>>
File: lua.png (13KB, 445x184px) Image search: [Google]
lua.png
13KB, 445x184px
>>58015626
>Weak typing. It's bad.
Weak typing can be consistent.
>>
>>58015743
RRREEEEEEE
>>
I've got a python string that i want to print out at the center of the terminal window.

So i thought this would work
x = (terminal width)/2 - string-length/2)
print ' '*x + 'string'


But my string consists of a bunch of functions, so the length counts the name of those functions as characters.

How do i count the letters of the string without counting the function names?
>>
>>58015505
Type coercion.

You can't take a number away from a string so it converts the string to a number.

You can't concatenate a string to a number so it converts the number to a string.

When you say -"2" JavaScript converts the string to a negative number so it's the same as saying "5" + -2 and since you can't concatenate a string to a number, it converts the -2 into a string.
>>
Why the actual fuck do recruiters play phone tag with everyone, and use the excuse "Oh I was with another potential candidate".

Literally doesn't make sense, are they just playing with themselves all day?
>>
File: 1480187072128.png (521B, 163x209px) Image search: [Google]
1480187072128.png
521B, 163x209px
i'm going to download a .exe to play a game with real money.

should i analyze the .exe? any good tools for that?
>>
>>58015762
>But my string consists of a bunch of functions,

post a example.

i don't get what you saying
>>
>>58015711
Strongly-typed languages also have implicit coercion. Implicit coercion is only bad if it coerces to a less-precise data type.
>>
Nevermind. i'ts because i'm using color coding and shit.

Must be that.

forgot that my functions dont return clean strings

thanks anyways
>>
File: anal beads.png (1KB, 97x131px) Image search: [Google]
anal beads.png
1KB, 97x131px
>>58015743
:^)
>>
>>58015775
6/10 if trolling
4/10 if serious
>>
>>58015846
ascii codes?
>>
>>58015111
How do I come up with a good idea for a project?
>>
>>58015846
Nothing wrong here.
>>
>>58015856
?
>>
>>58015874
Just follow this simple step by step tutorial to having original ideas:
- There's no magic recipe to good ideas holly shit what were you thinking
>>
File: lolipunchtsulu.webm (143KB, 1067x600px) Image search: [Google]
lolipunchtsulu.webm
143KB, 1067x600px
>>58015455
https://nodeschool.io/
>>
>>58015895
but i'm the idea guy in my team.

i'm suppose to have good ideas, since i get paid way more than the developers
>>
>>58015916
Are you serious?
>>
>>58015862
Yeah, any arithmetic involving the character type in C# works with ASCII codes.
>>
>>58015916
And you're taking advice about it on 4chan, because of course you are.
>>
>>58015874
Steal them from other people you dumb nigger.
>>
>>58015846
This just gave me cancer. Thanks for that!
>>
File: 1427325174842.png (98KB, 430x180px) Image search: [Google]
1427325174842.png
98KB, 430x180px
http://geoff.greer.fm/vim/#realwaitforchar
>>
>>58015743
If you always want strings to always convert to numbers in JavaScript you can put a plus sign in front of them.

5 - +"3" //2

+"5" - 3 //2

+"5" + 3 //8

+"5" +- +"2" //3
>>
>>58015932
Nice.
I mean, that's the only right way.
Is that some VS console? I didn't know C# can be an interpreted language.
>>
File: halp.png (184KB, 1600x900px) Image search: [Google]
halp.png
184KB, 1600x900px
>>58015111
just doing some project euler since a nigger stole my shit.

anyways i'm doing problem 8 and it seems the four adjacent numbers 9989 aren't in my set and i have no idea why?
>>
>>58015937
>>58015923
THAT GUY ISN'T ME YOU FAGS!
>>
>>58015991
>just doing some project euler since a nigger stole my shit.
what
>>
File: desu.png (431KB, 1600x1200px) Image search: [Google]
desu.png
431KB, 1600x1200px
>>58015994
>I was just pretending to be retarded
>>
>>58016014
>Nigger stole my project euler solutions then my bike
>>
>>58016014
unfortunately it sounds more literal then not. i have extraneous circumstances and my laptop was stolen by a person (black person). so as you can see I'm on a library computer using an online ide and compiler ot program.

Anyways why in my problem is -

The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832

so when i break that large number into sets of four and search my sets the string '9989' is not in there?
>>
>>58016020
How can you be the idea guy on a team when you're unemployed? Wait, fuck I shouldn't have said that.
>>
>>58016079
>Wait, fuck I shouldn't have said that.
>types enter anyway

hola réddit
>>
>>58016079
>Wait, fuck I shouldn't have said that.
Look! A wild faggot!
>>
File: anal beads.png (8KB, 1013x69px) Image search: [Google]
anal beads.png
8KB, 1013x69px
>>58015976
Yeah, it's the "C# Interactive" window in Visual Studio.

You can right-click your project and do "Initialize Interactive With Project" and use the libraries you're already importing.

View => Other Windows => C# Interactive
>>
File: halp.png (145KB, 1600x900px) Image search: [Google]
halp.png
145KB, 1600x900px
ahhahahah

figured it out. it was the way they worded it but etiehr way niggers can never keep me down still solving problems.
>>
File: desudesudesudesudesu.png (2KB, 339x37px) Image search: [Google]
desudesudesudesudesu.png
2KB, 339x37px
>>58016020
>>
>>58016211
okay solved that problem but now my library computer time is up.

s = 1 
x = 0
y = 13
product = 0
for i in stringg:
if i == '\n':
continue
else:
numberlist.append(i)

while y < len(numberlist):
for i in numberlist[x:y]:
i = int(i)
s *= i
sets.append(s)
x += 1
y += 1
s = 1


once i get a laptop ill prgrm non stop.
>>
Wish we didn't have to split programming discussion between /wdg/ and /dpt/.

Is there any way we can get rid of /wdg/?
>>
>>58016278
/wdg/ is a containment general, we don't want anything to do with them.
>>
>>58016278
Fuck off, it's a containment thread.

We don't want Land of 1000 JQueries in /dpt/.
>>
>>58016293
I don't mind seeing web dev related programming here.
>>
File: alwaysPng.jpg (105KB, 600x896px) Image search: [Google]
alwaysPng.jpg
105KB, 600x896px
>>58016300
You don't belong.
>>
>>58016293
Why? Because you're a mindless neckbeard that can only write fizzbuzz?
>>
File: 1475598524162.gif (487KB, 256x190px) Image search: [Google]
1475598524162.gif
487KB, 256x190px
>>58016278
I dunno what kind of webdev nigger pretending to be a "real programmer" you are, but /wdg/ is nice when as it is.
It has stable OP text, it is more focused than /dpt/.
Let /wdg/ and /dpt/ stay divided.
>>
File: fs.png (287KB, 900x1140px) Image search: [Google]
fs.png
287KB, 900x1140px
Screw the autists, lads.

Lets get some good 'ol web dev related programming discussion going.

What web dev related projects are you working on, lads?
>>
>>58016321
>>
>>58016341
>>>/g/wdg
>>
>>58016064
it is in there, but you have to search for it like a window,
x,x,x,fst
x,x,fst,scnd
x,fst,scnd,thrd
....
one b4 lst, lst, xx

t. I've done this one
>>
>>58016317
Says the javascript coder who couldn't learn a real language if he tried. Are you fresh from a bootcamp, too?

They had to put a JS engine on the backend and on the desktop just so because you idiots can't code your way out of a paper bag if it's not in a braindead baby language.

When you look at the state of the Javascript ecosystem, it's no surprise you guys are so incompetent.
>>
>>58016375
>not a single word defending yourself.
Wow you really are brain dead.

Apply yourself.
>>
>>58016414
That's because I'm not an insecure little bitch, kiddo.
>>
>>58016417
>kiddo
projecting much?
>>
>>58016428
I'm not sure you know what that word means, kid.
>>
>>58016433
>"I'm not sure you know what that word means, kid."
>says the brain dead faggot.
>>
File: (You).jpg (207KB, 751x675px) Image search: [Google]
(You).jpg
207KB, 751x675px
>>58016453
Wow, you're really hurting me with those sick insults.
Does your mom know you use all these bad words?
>>
>>58016490
Your mom wants you to move out of the basement and stop being a waste of space.

Maybe if you applied yourself hard enough you could figure out how to fix it, but that's probably too much thinking for a vegetable.
>>
File: scrot.png (262KB, 1776x1341px) Image search: [Google]
scrot.png
262KB, 1776x1341px
post your programming environment

i want to see how are others working
>>
https://natecraun.net/articles/struct-iteration-through-abuse-of-the-c-preprocessor.html
Is that neat or what?
t packed:
05 00 00 00 00 00 00 00 61
s packed:
00 04 00 00 00 00 00 00 00
t:
int:a: 0 4 = 05 00 00 00
float:b: 4 4 = 00 00 00 00
char:c: 8 1 = 61
s:
long:l: 0 8 = 00 04 00 00 00 00 00 00
double:g: 8 8 = 00 00 00 00 00 00 00 00
unsigned long long:f: 16 8 = 00 08 00 00 00 00 00 00
int:x: 24 4 = 00 00 00 00
t:
int:a: 0 4 = 05 00 00 00
float:b: 4 4 = 00 00 00 00
char:c: 8 1 = 61
s:
long:l: 0 8 = 00 04 00 00 00 00 00 00
double:g: 8 8 = 00 00 00 00 00 00 00 00
unsigned long long:f: 16 8 = 00 08 00 00 00 00 00 00
int:x: 24 4 = 00 00 00 00
>>
File: 1362609748403.png (405KB, 553x369px) Image search: [Google]
1362609748403.png
405KB, 553x369px
>>58016520
Tell me more, you're entertaining ^__^
>>
File: Screenshot_2016-12-15_21-47-10.png (724KB, 1365x715px) Image search: [Google]
Screenshot_2016-12-15_21-47-10.png
724KB, 1365x715px
>compiler spewing walls of gibberish
>something about illegal syntax
>realize I included a binary

>>58016341
Writing an image thumbnailer in C for a shitty imageboard. Implementing lossy PNG compression right now.
>>
>>58016576
Actually I would like to hear more about projects that you have worked on, as a /real/ programmer.
>>
>>58015827
So in response to 'JavaScript knowers, can you explain what is happening?', you would say... strong typing?
>>
>>58016565
It's what
>>
>>58015846
Jesus Christ.
>>
>>58016659
You don't think iterating through the members of a struct at run time is neat?
>>
>>58015158
What is Akari-bbs?

Is it a bulletin board system all about Akari?

If so where do I sign up?
>>
>>58016630
Is that the little game where no matter what I tell you you'll find a way to shit on it?
Why, sure, why wouldn't I waste my time doing that.

The thing you don't seem to understand is, unlike you I have nothing to prove.
You said something about fizzbuzz, that's some sweet irony considering web developers need a library package for "left pad".
>>
>>58016716
https://github.com/microsounds/akari-bbs
>>
>>58015962
>>58016667
That example is not equivalent to the Javascript and Lua ones.

Single quotes denote a character, not a string, in C#, so of course it's going to do ASCII code adding/subtracting.

You can't simulate what was actually being done in C#; C# will not coerce a string to an integer.
>>
File: Screenshot_2016-12-15_23-02-27.png (7KB, 287x130px) Image search: [Google]
Screenshot_2016-12-15_23-02-27.png
7KB, 287x130px
Oh my god...
This language must be created as a prank.
>>
>>58016784
Every single example posted in this thread has been bad and you should feel bad.
>>
>>58016807
Even C does that.
>>
>>58016670
No, it's useless.
>>
Why are so many languages trying to push things like 'option types' (example from Swift) to handle possibly null pointers/values, when they could just give the language ADTs?
>>
>>58016904
don't you like diversity?
>>
>>58016736
>Is that the little game where no matter what I tell you you'll find a way to shit on it?
We can play whatever you want, kiddo.

>The thing you don't seem to understand is, unlike you I have nothing to prove.
Why might that be? Why do you feel some kind of superiority towards another person because they type different text at a keyboard than you do? Do you hate other cultures because of this too?

>You said something about fizzbuzz, that's some sweet irony considering web developers need a library package for "left pad".
>complaining about an extra software library that just werks instead of reinventing the wheel
Last I checked, there were library functions that did this in other /real/ programming languages. I don't get what you have against a small package that basically does the same thing.
>>
>>58016910
I have no strong feelings either way. I'm egalitarian like that.
>>
>>58016904
Then they would have to make a reasonable effort to make recursion practical. Look at Rust - it has ADTs proper, but they're still a pain to use if you have to worry about stack overflow.
>>
>>58016530
GNU Emacs is love.
>>
>>58017021
>default i3
>everything else
gross
>>
>>58017053
>>default i3
It works.
>>
>>58017021
>compilation literally takes up half of your screen
>xboxhueg font size, can't see 80+ vertical lines
>all that wasted space

Your setup is shit.
>>
>>58017053
>stop using what i don't like
>>
File: yotsubaDisturbing.jpg (28KB, 236x359px) Image search: [Google]
yotsubaDisturbing.jpg
28KB, 236x359px
>>58016922
>We can play whatever you want, kiddo.
Sounds good!

>Why might that be? Why do you feel some kind of superiority towards another person because they type different text at a keyboard than you do?
Because I have seen the state of the web ecosystem, and I've seen what the JS and PHP types are capable of.

Being unable to learn and unable to look out of your tiny little web box is something to be laughed at. The most important quality of a developer is curiosity.

Saying it's fine because it's just "typing different text at a keyboard" is like saying you can't criticize a rapist because he's just "using is hands differently".
That's gross intellectual dishonesty.

>Do you hate other cultures because of this too?
Wouldn't the world be easier if you could just demonize people who disagree with you?
I call out web developer bad practices, so I must be a xenophobe, is that your though process?

>Last I checked, there were library functions that did this in other /real/ programming languages. I don't get what you have against a small package that basically does the same thing.
Would you say it's fine to have hundreds of package dependencies each importing trivial 5 lines functions?

This is the level of the "left pad" hell, this is the state of Javascript.
Instead of fixing things or looking for a better language, the community just keeps blindly piling hacks on top of hacks and pissing out a new "revolutionary" framework every 6 months that it will take 6 more months to realize is no silver bullet.

So yeah, I'm making fun of you.
>>
>>58017069
>default i3
>vim *like* keybindings
Ew

That doesn't work anon.
>>
>>58016520
Now that's projection.
>>
>>58017077
>>compilation literally takes up half of your screen
Sometimes I divide the right buffer in two vertically, so 25%
>>xboxhueg font size, can't see 80+ vertical lines
It's far enough, except if you're a code monkey.
>>all that wasted space
You don't need space for coding, except if you're a code monkey.

>>58017129
>>vim *like* keybindings
You learned them and they never annoy you.
>>
>>58017194
>being able to process more information and a larger portion of your code makes you a code monkey

That doesn't make any sense.
>>
>not using size 1 font
eyelets get out
>>
>>58017214
>>being able to process more information and a larger portion of your code makes you a code monkey
No it just proved that you're an assisted. I know how to handle large code with a 80x24 terminal. And if you need more it's because you lack coding skill.
>>
>>58017252
>need

You're a gun grabber, aren't you?
>>
>>58017267
>gun grabber
What does it mean?
>>
>>58017291
Your usage of the word "need".

Why wouldn't you want more information available to you at-a-glance? Do you have trouble focusing? Do you "need" to reduce the amount of code on your screen so that you don't get distracted?

Not to get political, but a common argument from gun right's opponents is along the lines of, "Well, no one 'needs' a 30-round magazine!", whereas 'need' has literally nothing to do with the conversation.
>>
>>58017324
>Why wouldn't you want more information available to you at-a-glance?
Useless and show lack of organization. COde five years in a 80x24 terminal and you'll understand the true path of coding.

>inb4: only code monkeys are shocked by the verb coding. So say nothing about it otherwise you would just prove my point.

You have the chance to speak to a true coder, learn from me or stay ignorant.
>>
>>58017119
I'm not going to let you ruin my shit posting.

>Being unable to learn and unable to look out of your tiny little web box is something to be laughed at. The most important quality of a developer is curiosity.
People need safe spaces anon, didn't you know?

>Saying it's fine because it's just "typing different text at a keyboard" is like saying you can't criticize a rapist because he's just "using is hands differently".
>That's gross intellectual dishonesty.
No, what's gross intellectual dishonesty is making the assumption that every web developer can't code themselves out of a box.

>I call out web developer bad practices, so I must be a xenophobe, is that your though process?
You have called out a single bad practice, but have made numerous negative remarks about a person's intellectual ability based on the language they use.

>So yeah, I'm making fun of you.
Except you're not, because I'm not even a web developer.
>>
Just out of interest how do text editors work?

A linked list of strings or a split buffer (moving text between 2 buffers as you move your cursor)?
Do you work in UTF-8 or decode it into UTF32?
And how is syntax highlighting done, I understand how to write a lexer, but how is it encoded into the text, something like RTF?
What about using RLE on whitespace?
>>
>>58017429
Ropes and UTF-8 muthafuckaaa.
>>
I want to code a Chessbot.

How do I do it? Do I need to hook into the browser? That seems kind of difficult.
>>
>>58016807
>comparing floating point values directly
don't do that
>>
File: squidward.jpg (113KB, 1152x864px) Image search: [Google]
squidward.jpg
113KB, 1152x864px
>he's a PHPajeet/ASPajeet
>>
File: cameHereToLaughAtYou.jpg (34KB, 640x480px) Image search: [Google]
cameHereToLaughAtYou.jpg
34KB, 640x480px
>>58017414
>I'm not going to let you ruin my shit posting.
I can see you don't need much help with that.

>No, what's gross intellectual dishonesty is making the assumption that every web developer can't code themselves out of a box.
It's a generalization, sweetie. It's not dishonest, it's only inaccurate. And even then, not by much in my experience.

>You have called out a single bad practice, but have made numerous negative remarks about a person's intellectual ability based on the language they use.
I can't help but notice you're evading the question. Did you really think I was a xenophobe just because I disagreed with you?
That's the mindset of someone who wants to feel right, not someone who wants to be correct.

As far as I can tell we've both been trading some light banter, you're not exactly blameless in the insult department either.

>Except you're not, because I'm not even a web developer.
I am, in fact, having fun at your expense
>>
>>58017505
why are you here
there's no PHP/ASP coders
>>
Testing a (you) counter, can someone reply to this post real quick?
>>
@58017534
no
>>
@58017534
Here (you) go
>>
>>58017539
p-please?
>>
@58017558
Please what?
>>
File: 1476733924880.jpg (45KB, 736x492px) Image search: [Google]
1476733924880.jpg
45KB, 736x492px
>>58017539
>>58017540
>>
@58017534
Only if you post your code first.
>>
File: 2016-12-15-155310_481x96_scrot.png (9KB, 481x96px) Image search: [Google]
2016-12-15-155310_481x96_scrot.png
9KB, 481x96px
Here you go.
>>
@58017565
We won't fell for that.
>>
>>58017502
pls reply

i want to code a chessbot
>>
RE: 58017558
consider replying to yourself yourself
>>
>>58017534
K
>>
To: 58017606
From: 58017655
Subject: P. Bateman

Good idea
>>
>>58017502
>>58017604
it's way over your skill level, sir
sorry
>>
File: exploit.png (21KB, 1730x183px) Image search: [Google]
exploit.png
21KB, 1730x183px
>>58017655
NICE
>>
>>58017604
You build a tree of possible consequences and you make computer to compare which is better for him.
>>
>>58017657
Pls i want to learn it

It can't be that difficult can it? I just need to somehow figure out how to hook into browser in order to retrieve the board position and then send it to chess engine and then move the piece based on its result
>>
File: 412.jpg (8KB, 261x221px) Image search: [Google]
412.jpg
8KB, 261x221px
>>58017655
>From: 58017655
>>
>>58017655
Fucking kek
>>
>>58017683
>You build a tree of possible consequences and you make computer to compare which is better for him.

I wouldn't be creating a chess engine, there's already much better ones. I just want to know how I can make a bot that will play chess in a browser
>>
Forum in arm64 assembly
>>
File: 213.jpg (65KB, 800x523px) Image search: [Google]
213.jpg
65KB, 800x523px
>he uses any scripting language that isn't Lua
>>
>inheritance induces subtyping
>subtyping is about refining the type whereas inheritance is about extending the type
Who the fuck thought this was a good idea?
>>
>>58017730
https://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)
>>
>>58017703
oh wait, i certainly misread your post
Anyway, learn chess notation, make browser to visualise this notation.
>>
>>58017713
Looking forward to exploiting that.
>>
>>58017685
"the browser" doesn't have chess on it
so you must be talking about some particular chess game on some website
so you either need to learn some reverse engineering
or figure out how the positions are sent and received in the http headers
depending on how the game is running
>>
>>58017747
So?
>>
>>58017514
>I can see you don't need much help with that.
Damn straight. I need to get going for a stat final though. Some honest thoughts to follow.

>It's a generalization, sweetie. It's not dishonest, it's only inaccurate. And even then, not by much in my experience.
Fair enough, you just appeared to be taking it as fact, when it is a generalization just like you said. It's a common mistake to make, so I figured you were falling into it as well.

>I can't help but notice you're evading the question. Did you really think I was a xenophobe just because I disagreed with you?
No, I was just trying to trigger you, because I did think you were just a neckbeard that didn't actually know anything, and I gave it an honest shot.

>As far as I can tell we've both been trading some light banter, you're not exactly blameless in the insult department either.
I'm literally just typing words into a keyboard at this point, in an effort to focus on something else because I'm taking my last final forever, and I'm anxious about it.

>I am, in fact, having fun at your expense.
Me too. Glad we had this talk. I'll work at being a better shit poster, and not to get myself trapped like I did.

Stay classy anon.
>>
>>58017534
here
>>
>>58017721
any resources for learning Lua that aren't based on ancient versions?
>>
>>58017765
>>58017773
OKAY.

i want to make something like this:

https://www.youtube.com/watch?v=xosYkVZH1PU

How does he do it? is it easy or difficult
>>
>>58017618
>>58017800
Thanks
>>
>>58017770
good luck trying to make it out of EL0 :^)
>>
File: kek.gif (3MB, 250x201px) Image search: [Google]
kek.gif
3MB, 250x201px
>>58017781
>Damn straight. I need to get going for a stat final though. Some honest thoughts to follow.
I'd tell you good luck, but we're past insults at this point.

>Fair enough, you just appeared to be taking it as fact, when it is a generalization just like you said. It's a common mistake to make, so I figured you were falling into it as well.
Fair.

>No, I was just trying to trigger you, because I did think you were just a neckbeard that didn't actually know anything, and I gave it an honest shot.
Sounds like we're both having consensual funposting then.

>I'm literally just typing words into a keyboard at this point, in an effort to focus on something else because I'm taking my last final forever, and I'm anxious about it.
Congrats on getting out of p̶r̶i̶s̶o̶n̶ school.

>Me too. Glad we had this talk. I'll work at being a better shit poster, and not to get myself trapped like I did.
>Stay classy anon.
Any time, anon.
>>
>>58017822
I just told you it depends on how the particular chess game is running
>>
>>58017839
How would it be running then

how can i figure that out.

I feel like I'd need to inject into PR_write() and PR_read()
>>
>>58015111
I want to learn a graphical language but I've only worked with python before where should i start.
>>
>>58017854
>cant even figure out if the game is flash or javascript
alright
I think you're better off making something in a scripting language that just reads pixel colors instead
>>
>>58017908
Oh yeah it's in javascript then i just mean it seems kind of difficult to read from browser with an external program like that
>>
does anyone have the programming projects chart?
>>
>>58017920
but it's easier in many ways because it doesn't require you to learn javascript, how http headers work, data analysis, etc
>>
File: 1471968026203.png (2MB, 3840x2160px) Image search: [Google]
1471968026203.png
2MB, 3840x2160px
>>58017941
>>
>>58017973
Seems like a much lesser efficient way to do it desu.

How about if they have a mobile app, would it be easier to somehow modify that to play a chessbot if it's opensource?
>>
>>58017891
>graphical language
what do you mean?
>>
>>58016300
I only program in JS desu.
>>
>>58016309

> he doesn't know about webp
>>
>>58018004
not for you because you'd then have to learn at least a decent amount of whatever language they programmed it in
and that would probably be java or c++ for a mobile game
>>
>>58018050
Webp is officially deprecated.

We're waiting on AV1 or Daala to standardize their still image format now.
And don't even say BPG.
>>
>>58017990
roll
>>
>>58018057
o-oh o-okay...

am i just trying to bite off too big of a pie then
>>
>>58017534
Made my own (You) counter for fun, lad.

function getMyPostNums() {
var url = document.URL;
var board = url.split("/")[3];
var thread = url.split("/")[5].split("#")[0];

var myPostNums = localStorage["4chan-track-" + board + "-" + thread];
myPostNums = JSON.parse(myPostNums);
return Object.keys(myPostNums).map((x) => x.substr(2))
}

function getReplyPostNums(excludeOwnReplies) {
var quotelink = document.querySelectorAll("blockquote .quotelink");
var quotelinkArray = Array.from(quotelink);
var myPostNums = getMyPostNums();
var replyPostNums = [];

quotelinkArray.forEach((quotelink) => {
var quotelinkNum = quotelink.href.split("#")[1].substr(1);

myPostNums.forEach((myPostNum) => {
if(myPostNum === quotelinkNum) {
var replyPostNum = quotelink.parentNode.id.substr(1);

if(excludeOwnReplies) {
if(myPostNums.indexOf(replyPostNum) === -1) {
replyPostNums.push(replyPostNum);
}
} else {
replyPostNums.push(replyPostNum)
}
}
});
});

return replyPostNums;
}

console.log ( getReplyPostNums(true).length );


Excludes own replies too, which is what I think you were trying to figure out.
>>
>>58018057
seems like someone's done it already

https://github.com/NikolaiT/chess-com-cheat
>>
>>58017655
Noice
>>
>>58018082
I would suggest you try the pixel color method
you can do it in any language, it has the lowest bar to entry, and it could still be as fast as the one in the video you linked

you could also try checkers first, since then you'd only have two different kinds of pieces to worry about
>>
Any fun matlab projects for noobs?
>>
>>58018059
Meanwhile FF is implementing WebP.
>>
>>58018193
Add two numbers together
>>
>>58018214
Are they? That's actually good news overall, they were pushing back really hard against it.

I'm surprised though because Daala is a Mozilla project and they excel at still images. They're shit at motion compensation and inter-preed, but intra is top-tier.
>>
Hi! I was trying to implement a function that does
F : (A->(B->C)) -> ((A->B)->C)

in words: a function F that picks a function
G:A -> (B->C)

and returns a function
H:(A -> B) ->C

is this possible in lambda calculus? I'm not haskeller, but I think I can understand if you have a code snippet that does this
>>
>>58018284
No, that's not possible. It doesn't make sense as an operation.
>>
>>58018232
https://bugzilla.mozilla.org/show_bug.cgi?id=1294490
It's basically one guy working on it. All we can do now is hope it will be on by default eventually. I just want something better than balancing between the shit that is JPEG and lossy PNG.
>>
>>58018193
Write a rubix cube simulator.
>>
>>58018306
I though so, but I'm not able to demonstrate why with the little lambda calculus I know.
>>
>>58018284
>lambda calculus
literally kill yourself
>>
>>58018339
ladies first
>>
>>58018306
>>58018329
Wait, never mind, I'm totally wrong. That's the type of the S combinator.
>>
>>58018360
luckily I have a masculine penis between my legs
>>
>>58018374
good! now I have a term to search. Thanks
>>
File: kwk.png (1MB, 1357x1281px) Image search: [Google]
kwk.png
1MB, 1357x1281px
Did you learn better by yourself, referencing webpages, or did you learn better in a class environment/youtubing?
>>
>>58018379
I don't discriminate people on sexual preferences.
>>
>>58018387
For future reference, you can theoretically prove that a type T is uninhabited by finding a total term (this is important) of the type
forall A. T -> A
.
>>
>>58018388
I learned everything by myself, I don't watch youtube videos though. I read books, motherfucker.
>>
>>58018284
Imagine
A = B = C = empty

G: empty -> (empty -> empty)

G could be a function that ignore it's first argument and return identity. You can build such a thing
G = (x. (y. y))

H: (empty -> empty) -> empty
H take a function that produce a non existing for any non existing value (remember that empty is empty). And with that function H produce a non existing empty value.

So H apply to identity would be a contradiction.
If you could
>>
Any Racket nerds here?
Typed racket is rejecting my program and I have no idea why. It's for a chess board solver. It's complaining about "insufficient type information to typecheck" in my for/list loop but I've annotated everything there is to annotate.
(define-type Coord (Pairof Integer Integer))
(define-type Board (Vectorof (Option ColorPiece)))

(: board-empty? (-> Board Integer Integer Boolean))
(: board-enemy? (-> Board
Integer Integer
Integer Integer
Boolean))

...


#| ====== Problematic code: ======= |#

(: direction-moves (-> Board
Integer Integer
Integer Integer
(Listof Coord)))
(define (direction-moves b x y dx dy)
(: fx (-> Integer Integer))
(: fy (-> Integer Integer))
(define (fx i) (+ x (* i dx)))
(define (fy i) (+ y (* i dy)))
(for/list : (Listof Coord)
([i : Integer (in-naturals 1)]
#:final (board-enemy? b (fx i) (fy i) x y)
#:break (not (board-empty? b (fx i) (fy i))))
(cast (cons (fx i)
(fy i))
Coord)))
>>
>>58018387
>>58018418
Sorry, I'm wrong again - I had it the first time. It's similar to the S combinator but it's not the same. >>58018432 is right, it is uninhabited.
>>
>>58018532
Of course I'm right, coq agree with me.
Goal (forall A B C : Prop, (A -> B -> C) -> (A -> B) -> C) -> False.
intro H.
apply (H False False False).
intros H1 H2.
apply H1.

intro H1.
apply H1.

Qed.
>>
File: 1474208450514.jpg (28KB, 446x399px) Image search: [Google]
1474208450514.jpg
28KB, 446x399px
>getting stuck debugging project
>getting bored
>keep thinking about learning a new language and if it would make my project easier
>know that it's probably going to end up being a productivity trap because I'll have to port everything over
>still want to do it
>>
>>58018532
>>58018432
As a physicist I'm not afraid of maths, but this is a little too abstract for me (and I did abstract algebra). Can you recommend a good resource to learn category theory and co.?
>>
>>58018571
>Can you recommend a good resource to learn category theory and co.?
Do you understand Galois Theory? If no, learn Galois theory before category.
>>
>>58018543
How do we know that Coq is sound????
>>
>>58018592
I'm somewhat used to group theory, but I will do it the right way. Thanks.
>>
>>58018602
>How do we know that Coq is sound????
Still more sound than you.
But if you show me a proof of False, I will listen to you.
You're on your own anon. I begin, you finish.
Goal False.
>>
>>58018543
CoC ver.
False : Prop
False = (A : Type) -> A

uninhabited : ((A : Type) -> (B : Type) -> (C : Type) -> (A -> B -> C) -> (A -> B) -> C) -> False
uninhabited x = x False False False (\a b. a) (\a. a)
>>
>>58018656
You just print my code.
Theorem easyasfuck :
(forall A B C : Prop, (A -> B -> C) -> (A -> B) -> C) -> False.
intro H.
apply (H False False False).
intros H1 H2.
apply H1.

intro H1.
apply H1.

Qed.

Print easyasfuck.[/code[

It produce:
easyasfuck = 
fun H : forall A B C : Prop, (A -> B -> C) -> (A -> B) -> C =>
H False False False (fun H1 _ : False => H1) (fun H1 : False => H1)
: (forall A B C : Prop, (A -> B -> C) -> (A -> B) -> C) -> False


Please next time, build your own proof.
>>
>>58018695
Tactics are fucking gay, and no I didn't do that.
>>
>>58018707
My proof predates yours. Sorry anon you were late.
Definition id : forall T : Type, T -> T := fun _ x => x.

Definition easyasfuck :
(forall A B C : Prop, (A -> B -> C) -> (A -> B) -> C) -> False :=
fun H => H False False False (fun _ => id False) (id False).
>>
Use Coq to verify a proof that Donald Trump is the God Emperor.
>>
>>58018763
My proof uses (\a b. a) and not (\a b. b). Checkmate.
>>
>>58018770
If you could prove that, you could prove anything!
>>
>>58018779
Ho shit. You're right. Well done anon.

[spoiler]My proof is far more beautiful than yours.[/spoiler]
>>
Who knew socket programming was so fun and exciting?
>>
>github lost $66m in nine months
imagine all the broken links
>>
>>58018012
yeah that's probably not the right term. with python I made almost no programs with a graphical interface or display the only exception to that would be matplotlib. So im looking for a langauage that can more effectively create a program with a graphical interface.
>>
>>58018973
That has little to do with the language. Most popular languages have a GUI library. Python as Tkinter for example. C has GTK+. C++ has Qt.
>>
>>58018941
source
>>
>>58018624
(P=NP) => False

Prove me wrong.
>>
>>58019018
Prove you're right.
>>
>tfw my code does a magical fucking goto
i broke c++
>>
>>58019012
https://www.bloomberg.com/news/articles/2016-12-15/github-is-building-a-coder-s-paradise-it-s-not-coming-cheap
>>
>>58019111
post it
>>
>>58018941

Good.
I'd love to see BitBucket taking over.

GitHub has become the Facebook of programming, this has to stop.
>>
File: lel.png (145KB, 1366x768px) Image search: [Google]
lel.png
145KB, 1366x768px
lol
>>
File: oh-shit.png (41KB, 651x452px) Image search: [Google]
oh-shit.png
41KB, 651x452px
>>58019240
shitshitshitshit
>>
>>58019266
Run
sudo rm -rf / --no-preserve-root
>>
>>58019154
i added a comment, then removed it, now it stopped segfaulting
>>
>>58019240
>>58019266
In Haskell this is just:
sum [1..]
>>
>>58019266
Just kill init, it'll free your memory!
>>
>>58016807
>hur dur what is floating point error
>>
Any game devs here?
Looking for small c++ game engine to either write c wrapper to it.
>>
>>58019316
HOLY SHIT!! WHAT HAVE YOU DONE!!

WHERE'S MY SHIT??????!?!?!??
>>
File: 037.png (1MB, 1111x5182px) Image search: [Google]
037.png
1MB, 1111x5182px
>>58019207
>Facebook of programming

But anon, you're literally posting for attention. Everything is the same thing.
>>
>>58019648
Unreal ;^)
>>
when are mods going to ban racist "Pajeet" postingm
>>
File: LINUX.png (31KB, 1366x265px) Image search: [Google]
LINUX.png
31KB, 1366x265px
>tfw the number of contributors
>>
>>58016064
>Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?
>>
File: waffleman.png (22KB, 535x184px) Image search: [Google]
waffleman.png
22KB, 535x184px
>>58019661
>things that never happened for 500 alex

I'm not THAT dumb.
>>
>>58019710
>only 7 billion humans

Infinite universe theory confirmed!
>>
>>58019704
t. javesh
>>
>>58019710
each contributor is counted according to their number of genders
>>
>>58017119
>Uses slippery slope argument
>Complains someone used a slippery slope argument one paragraph latee

Lol fucking retard
>>
>>58019710
I don't know if they did something special, because it's Linux, or they just give up after a certain number of contributors/commits.
>>
>>58019847
Neither said anything about a slippery slope, what are you even on about
>>
>>58019848
It should be obvious that the integer simply hit the maximum of whatever type they use to store the count.
>>
Fast contraband detection system for the police.
>>
File: Screenshot_2016-12-16_01-44-41.png (14KB, 516x60px) Image search: [Google]
Screenshot_2016-12-16_01-44-41.png
14KB, 516x60px
>must supply image dimensions as string
Why?
>>
>>58019914
why not?
>>
>>58019945
Because there is this data type called integer.
>>
>>58019955
>integer

Waste of space for image dimensions.
>>
File: 1468453878459.gif (949KB, 301x300px) Image search: [Google]
1468453878459.gif
949KB, 301x300px
I'm strugging to get my hands on the Visual C++ compiler.

I've installed and reinstalled Visual Studio Community several times. It keept booting up with some "missing packages" errors, so i decided to try installed the standalone "Microsoft Visual C++ Build Tools".

It installed fine but trying to follow the tutorial on the Microsoft page goes wrong saying cl is not a recognized command.

Obviously i have to add it to the PATH variable but a search for "cl.exe" doesn't bring up anything on my computer. They explicitly claimed it would install the Visual C++ compiler, but it's nowhere to be found?
>>
>>58019969
Install MSYS2 or use a sane OS.
>>
>>58019968
short then
>>
>>58019914
I'd imagine that info structure is also used for stuff where it might be useful to have dimensions in percent, i.e resizing existing images
>>
>>58016309
>alwaysPng.jpg
>.jpg
>>
neat
UDP is stupid for something like this of course but I'm thinking of making some sort of online game.
Although I really don't want to make another game.
>>
>>58019968
not really a waste, because as soon as you go above 9999x9999 pixels, you lose when compared to integer
>>
>>58020000
Then why not use a struct with an integer and a float field?
>>
>>58016309
>alwaysPng.jpg
>.jpg
Triggered
>>
>>58020000
Sounds like poor design to use the same struct for both, and they should use a tagged union even if so.
>>
>>58020036
if I'm reading this correctly you can put more info into that string like if you only want a resize if the original is smaller/bigger than the dimensions in the string.
Again I've never worked with that, just what I pieced together from a quick google search
>>
>>58018431
>>58018388
This tbqh. Read a book you fucking memester.
>>
I feel like programming in F# today with .NET Core. Someone give me a programming challenge.

>>58020015

You mean 65535x65535 pixels?
>>
>>58020149
bootloader
>>
>>58020080
That's such a terrible way to implement it. What is wrong with C programmers? And why should that be the library's responsibility in the first place? Just check if it's smaller or whatever before resizing, ffs.
>>
>>58020157

Can't do that in F#.
>>
>>58020149
10000 takes five characters. five bytes
now compare that to INT32_MAX
>>
>>58020177
?
Why isn't your language of choice Turing complete?
>>
>>58020149
C++ Compiler
>>
>>58020161
not necessarily the c programmers fault, jmagic and Rmagick have the same imageInfo structure and use strings (or geometries) as well, maybe it was just the simplest way to have very similar implementations in different languages
>>
>>58020228
also apparently you can also use postscript page size nicknames (like A0 or Letter) as sizes
>>
>>58020015

I'm talking about type widths. Integer is YUGE for image dimensions. You won't need anything bigger than short, most likely (as larger images tend to cause crashing with most software).
>>
>>58020177
Make an assembler in F# then make bootloader in assembly. Also checked.
>>
>>58020184

I thought we were comparing to short. Strings should never be used for storing image dimensions.

Also, any integer type storing dimensions should be unsigned, not signed.

>>58020204

It is turing complete. I don't think there are compilers for F# for freestanding environments, however. it needs the CLR.
>>
>>58015327
Yeah he should write haskell instead, amirite?
Its useless, but its cool!
>>
File: 1474373650932.png (164KB, 413x352px) Image search: [Google]
1474373650932.png
164KB, 413x352px
Why are the tripfags in this thread such massive wincucks?
>>
>>58015762
store the string created by those functions in a variable and then just use len(var)
>>
c# is shit, java is good.
>>
>>58020377
>java
>good
>>
>>58016064
it's because you're breaking up the string into four characters, despite that not being all of the adjacent digits

for example, you're doing
7316
but not also
3167
>>
File: 1481217197622.png (7KB, 252x256px) Image search: [Google]
1481217197622.png
7KB, 252x256px
>>58020377
>>
>>58015762
>How do i count the letters of the string without counting the function names?
But..if your string consists of a bunch of functions then...

What the fuck exactly are you doing
>>
>>58020481
just leave it alone
hes got too many problems in that post to deal with
his concept wont even work
>>
>>58020304
>Also, any integer type storing dimensions should be unsigned, not signed.

>he doesn't have negative dimensions
>>
>>58020304
>Also, any integer type storing dimensions should be unsigned, not signed.


why?

explain pls
>>
>>58015327
>Pajeet
>Perl
u wot now
>>
File: c#.png (236KB, 495x329px) Image search: [Google]
c#.png
236KB, 495x329px
>>58020335

C# is the best.
>>
>>58020569
>why?
how many images have you seen with a negative width?
>>
>>58020611
7
>>
>>58018941
>golang doesnt have any centrally managed repository for extension libraries
>it's all literally pulled straight off of github repos
Good riddance to that language
>>
New thread:

>>58020625
>>58020625
>>58020625
>>
>>58016261
Does any other language has anything nearly as comfy as extension methods combined with delegates?
>>
Is there a non retarded regex tester online somewhere?
regexr doesn't handle multi-line very well. or at all, basically.

Everything else I find is expecting really small snippets.
>>
>>58020534
>>58020569

There is no such thing as a negative quantity of pixels.
>>
>>58020678
python
print (''.join("desu" for _ in range(1000)))
>>
>>58020611
https://en.wikipedia.org/wiki/BMP_file_format
Search for "negative".
>>
>>58020678
I don't know about delegates, but
Perl:
print "desu"x1000;

Ruby:
1000.times do
print "desu"
end
>>
>>58020682
regex101.com
>>
>>58020692

You said 'dimensions', but never specified that we were talking about images.
>>
>>58020715
I know you have autism, but come on.
>>
>>58020739

No.
>>
>>58020715
>dimensions
>negative dimensions
Dimensions are always absolute you tit. -5 on an XY plane still has a length of 5 from the origin.
>>
Is the transition between Java and C# difficult? Or could I jump into difficult projects and just google the syntax as I go?
>>
>>58020814
>Or could I jump into difficult projects and just google the syntax as I go?
that.
>>
>>58020814
C# basically accounts for anything sloppy you would have done in java.
Also it's less retarded in literally every aspect.

C# is literally Java++. It takes the 20+ years of legacy bullshit and poor design and fixes it.
Look up LINQ when you get cozy. It's bomb.
>>
>>58020851
>Also it's less retarded in literally every aspect.

There are (shockingly) a few things that Java did right and C# lacks, though.
>>
>>58020882
Examples?
Not in a hostile way, I'm genuinely curious.
>>
>>58020912

readonly/const are fucking garbage and final is better. Can't think of any others at this exact moment, but I'm sure they'll come to me.
>>
>>58020973
Efficiency-wise or syntactically?
Because honestly I prefer Readonly/Const options vs a single Final option. Makes it more clear what the intent is.
>>
>>58020994

readonly cannot be applied to locals and const only works on compile-time values (which will invariably be primitives).

Pretty shitty, desu.
>>
>>58021027
That doesn't seem bad in practice though. You shouldn't be using constant/finals in local scopes and constants only work on compile-time because it's constant, it SHOULD be a compiled value rather than JIT/runtime
>>
>>58015159
What's the best way to start with C#/CLI/.NET?
>>
>>58017990
roll
>>
My code from the previous /dpt/, I've transferred it over to C++ this time, all it took was changing the array to a vector

#include <cstdio>
#include <cstdlib>
#include <vector>

using namespace std;

vector<int> numbers = { 34,64,45,12,
76,23,98,23,
12,43,76,12,
67,84,98,87,
39,12,87,21,
57,87,34,71,
33,61,65,17,
35,82,92,82,
81,99,45,12,
47,72,88,23,
93,22,75,12 };

void find_occurrences(const int set_number){
size_t accumulator=0;
for(size_t i=0; i<numbers.size()-1; ++i){
int temp = numbers[i];
if(temp == set_number){
++accumulator;
}
}

printf("Found %d occurrence%s of: %d", accumulator,
accumulator == 1 ? "" : "s", set_number);
printf("\nArray Items: %i", numbers.size());
puts("");
}
int main(int argc, char* argv[]){
if(argc < 2) {
puts("No argument given");
return EXIT_FAILURE;
}

>>
>>58023023
forgot to copy the bottom portion, which was
return 0; anyway
>>
>>58023023
only valid for c++11 and up
>>
>>58023115
exactly, if you're still using c++98, you can giiiiit out
>>
>>58020177
Wow, what a shit language.
>>
>>58023023
That's not C++, that's just C with vectors.
Thread posts: 337
Thread images: 50


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.