Mistři v programování na #hovnokod


Anonymous,

Top security

$values = $this->form->getValues();

$salt = 'dig11t5y';
//$sha512_Pass = hash('sha512', $values['newPass']) . $salt;
$sha512_Pass = md5($values['newPass']) . $salt;

Anonymous,

zadanie bolo V jednom cykle načítať písmená do poľa typu char, v druhom cykle ich vypísať bez medzier tak, aby po vypísaní tvorili slovo. SPSE K.Adlera 2 rocnik :D

int main()
{
    char a,b,c;
    int x[10];
    for (i=0;i<10;i++)
{
    scanf ("%c", a);
}
    for (i=0;i<10;i++)
    {
        scanf ("%c", b)
    }
    for (i=0;i<10;i++)
    {
        scanf ("%d", c);
    }
    printf ("%c,%c,%c", a,b,c);
}

Anonymous,

{
	...
} catch (Exception e) {
	throw new MySystemException(MyException.getStackTrace(e));
}

public static String getStackTrace(Throwable theCausedByException) {
	String myStackTrace = null;

	if (theCausedByException != null) {
		ByteArrayOutputStream myOutputStream = new ByteArrayOutputStream();
		PrintStream myPrintStream = new PrintStream(myOutputStream);
		theCausedByException.printStackTrace(myPrintStream);
		myStackTrace = myOutputStream.toString();
	}

	return myStackTrace;
}

Deii David Vana,

Made in India

public static final Integer ZERO = 0;
public static final Integer TEN = 10;
public static final Integer THIRTY = 30;

Anonymous,