salazar's Profile User Rating: -----

Reputation: 105 Stalwart
Active Members
Active Posts:
640 (0.62 per day)
26-June 13
Profile Views:
Last Active:
User is offline Apr 17 2016 02:25 AM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   salazar has not set their status

Posts I've Made

  1. In Topic: Why are my checkboxes/radio buttons on their own line?

    Posted 16 Apr 2016

    Your setting the input elements to display as 'block' elements, instead of the default for inputs, which are 'inline' elements. The main distinction, between block and inline is that blocks take the whole line that that they appear on, basically forcing all other elements to appear on a new line. That is what is happening here. Sure enough, in your css, you have the following
    input, textarea{display : block;margin-bottom : 1em;}

    You also have another instance of the same definition. I guess you were on the right tracke. Try removing the other one, that still has the 'display : block'.
    input, textarea{/*display : block*/;margin-bottom : 1em;}
  2. In Topic: Zeroing out array using memset

    Posted 16 Apr 2016

    Okay, that's what I figured. Thanks.
  3. In Topic: Soccer Goals Program

    Posted 16 Apr 2016

    What output do you get when you run it?
  4. In Topic: Zeroing out array using memset

    Posted 16 Apr 2016

    View Post#define, on 13 April 2016 - 01:48 AM, said:

    Hi, memset is working but only on part of the array that you are not displaying.

    memset takes the number of bytes - not just the number of elements:

        memset(a, 0, 'z' * sizeof(int));

    Thanks, I actually figured it out soon after. Anyone should always look at the params when first debugging.

    View Postkaa, on 13 April 2016 - 06:03 AM, said:

    But why create a 122 int array when all you need is 26?

    Then you could use memset(a, 0, 26 * sizeof(int)); but if you only want to initialize the array to 0s you don't really need memset.

    Yeah definitely could be rewritten to account for that. So I guess using an initializer list will zero out the entire array?
  5. In Topic: navs function

    Posted 6 Apr 2016

    I actually ran the script in a debugger and traced it back to an external script. So it doesn't appear to be related to jquery. Funny thing is that I swore I saw a similar function. That was probably from a plugin. Or maybe come to think of it, I think it was boostrap. That is what is getting be jumbled. Thanks for the suggestions.

My Information

Member Title:
D.I.C Addict
24 years old
November 12, 1991
Software Development
Years Programming:
Programming Languages:
Specialty: C/C++, Java
Others: Php, Bash, Perl, Prolog, Sql, UML, Javascipt, Html/CSS

Contact Information

Click here to e-mail me


salazar hasn't added any friends yet.


Page 1 of 1
  1. Photo

    JA94 Icon

    04 Nov 2013 - 11:36
    how do you pm someone on this site?
  2. Photo

    salazar Icon

    03 Sep 2013 - 18:27
    Hello me.
Page 1 of 1