thephpdev's Profile
Reputation: 9
Worker
- Group:
- Active Members
- Active Posts:
- 59 (0.08 per day)
- Joined:
- 01-July 11
- Profile Views:
- 1,068
- Last Active:
Aug 18 2012 11:54 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Linux
- Favorite Browser:
- FireFox
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- XBox
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: C++ PHP Function Library
Posted 17 Nov 2011
vividexstance, on 17 November 2011 - 09:58 PM, said:You should try to pass strings by const-reference to eliminate unnecessary copies, especially if you're not modifying the string in the function. I would also recommend looking into <algorithm> and <iterator> because you're duplicating functions that have already been done.
I made the const-reference changes in str_replace, strtoupper, strtolower, ucfirst, ucwords, and explode (2nd version). As for the <algorithm> and <iterator> comment, that is good to hear. Although moving forward, if anyone has their own function they would like to send or a function idea I'll happily add that. -
In Topic: Software and Web Developer
Posted 23 Oct 2011
Yeah, and in a way to not promote hacking at all. That's what I'm using. -
In Topic: Software and Web Developer
Posted 21 Oct 2011
Improves security a ton, knowing how to hack your own software gives a new perspective. -
In Topic: Software and Web Developer
Posted 21 Oct 2011
That's cool. I'm learning how to hack so my websites and software are better. -
In Topic: Simple Bruteforce algorithm
Posted 5 Oct 2011
Where I started off before I perfected it to use less lines I just did 3 for loops that constantly incremented until it hit the limit. Kinda like this:
int max = 15; int cols = 3; for (int a = 0; a < max; a++) { for (int b = 0; b < max; b++) { Where I started off before I perfected it to use less lines I just did 3 for loops that constantly incremented until it hit the limit. Kinda like this: [code] int max = 15; int cols = 3; int nums[3] = {0, 0, 0}; for (int a = 0; a < max; a++) { nums[b] = 0; for (int b = 0; b < max; b++) { nums[c] = 0; for (int c = 0; c < max; c++) { nums[c]++; } nums[b]++; } nums[a]++; }
That's the long way, you can create another function when you get farther into it.
My Information
- Member Title:
- D.I.C Head
- Age:
- 16 years old
- Birthday:
- May 28, 1997
- Gender:
-
- Years Programming:
- 7
- Programming Languages:
- c++, php, html, css, javascript
Contact Information
- E-mail:
- Click here to e-mail me
- Skype:
-
joshua-dwlarson
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
thephpdev has no profile comments yet. Why not say hello?