Houp, hep, was a long time i go, didn't saw it, thx :)
But, i will publish this code in a new thread to make it better and faster :)
Of course, i will mention its creator ;) (malo1992)
Will have to look through the code. But seems people are finding it interesting.
Mar 29, 2015 03:33 PM
(This post was last modified: Mar 29, 2015 03:35 PM by _Wozniak_.)
My personal opinion is to never use boost. I hate it.
On the other hand, I have never used any libs that dont come with VS.
I've never downloaded anything to use in my programs.
I feel like its cheating. I mean if you want to use threading, then spare the user of the 3 boost dll's that they will have to deal with (in the bin) and just learn to thread it yourself.
But again, completely my own opinion.
(Mar 29, 2015 04:32 AM)TomKeen Wrote: Thanks for the share , Hope you don't mind if I modify the code a bit...
Omg. I <3 your name.
Assuming its a reference to my fav show The Blacklist
Awesome!
Mar 29, 2015 04:15 PM
(This post was last modified: Mar 29, 2015 04:18 PM by 0xDEAD10CC.)
(Mar 29, 2015 03:33 PM)_Wozniak_ Wrote: My personal opinion is to never use boost. I hate it.
On the other hand, I have never used any libs that dont come with VS.
I've never downloaded anything to use in my programs.
I feel like its cheating. I mean if you want to use threading, then spare the user of the 3 boost dll's that they will have to deal with (in the bin) and just learn to thread it yourself.
But again, completely my own opinion.
Omg. I <3 your name.
Assuming its a reference to my fav show The Blacklist
Awesome!
How can you have an opinion about BOOST if you don't use third party libraries? If you want to waste your time writing something that may be better written in some third party library then go ahead.. There's nothing cheating about avoiding having to reinvent the wheel, and unless you are really concerned about preserving the output binary size, there's no need to be concerned about using libraries, whether you compile with their source, or link to them statically or dynamically in the case of a shared library.
(Mar 29, 2015 04:32 AM)TomKeen Wrote: Thanks for the share , Hope you don't mind if I modify the code a bit... Of course not.
You won't even have to mention my "name" anywhere, or whatever. Just do your thing, mate
(Mar 29, 2015 07:06 AM)Meeting Wrote: Not the best code ever Of course not.
(Mar 29, 2015 07:14 AM)CreativeHD Wrote: I'm just wondering if char arrays are faster than strings ? Of course not.
(Mar 29, 2015 07:14 AM)CreativeHD Wrote: Hey, why don't you use string, instead of all those char array ? [...]
And, i don't think you need to initialize tour strings,
You did like that : string bruteword = "";
But, i think this is a better way: string bruteword; You're absolutely right. Today, I would probably do it right that way. Mostly.
(Mar 29, 2015 08:23 AM)CreativeHD Wrote: But, i will publish this code in a new thread to make it better and faster :) Nice, I am curious! PM me on release if you want, so I can check it out 🙂 I still may learn from it, for sure 🙂
(Jun 29, 2014 03:40 AM)Niely Wrote: But why two times cin.get()? Well, that one is a bit embarrassing 😖 used it to force ESC as keyboard input. But it worked so I didn't care further, anyway it's probably preferable to have higher standards than this 😝
(Mar 29, 2015 03:33 PM)_Wozniak_ Wrote: never use boost. I hate it.
I have never used any libs that dont come with VS.
I've never downloaded anything to use in my programs.
I feel like its cheating.
completely my own opinion. Last statement gets the point.
But seriously, "cheating"?? Oh boy. You then would have to rewrite iostream, stdlib and stuff as well in order to avoid plagiarizing and being a legit coder. I mean, where's the ethical difference between including boost or deflibs, actually?
Anyway, under those circumstances you mention, I'd choose cheating without hesitation. 🤐 ____
(Jun 28, 2011 12:55 PM)malo1992 Wrote: MESSAGE WAS TOO LONG; LOOK https://hackforums.net/showthread.php?tid=1426822 TOO SEE THE NEW SOURCECODE!!! Nah, don't look. It only re-directs to this thread, due to me being stupid or whatever.
Here's the actual link: https://hackforums.net/showthread.php?tid=1430580
Thanks for any other feedback so far! 😉
Cheers
(Apr 13, 2015 05:30 AM)malo1992 Wrote: Quote: why two times cin.get();?
used it to force ESC as keyboard input. But it worked so I didn't care further, anyway it's probably preferable to have higher standards than this 😝 Completion: I didn't clear my cin steam, therefore the 1st cin.get(); have not needed an "ENTER"/newline ("ESC" was a typo, ofc), as it was supposed to (program pause, you know). But the second one then did what I wanted - sorry, I know this code was disgusting haha
cin.clear(), *.sync(), and preferably *.ignore() instead of *.get() solves this, as you may already know.
Good info everyone! Will take these things into consideration!
|