- 1
- 2
- 3
- 4
- 5
//...
if ( (x > 0) || (x == 0))
{
//....
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
Всего: 35
+123.8
//...
if ( (x > 0) || (x == 0))
{
//....
}
Человек явно с головой не дружит
+95.7
static bool EqStr(string s)
{
Regex r = new Regex(@"STRING");
Match m = r.Match(s);
if (m.Success == true) return true;
else return false;
}
Изощренный способ сравнивать строки :)
+98.4
/* ,*/
#include <time.h>
#include/* _ ,o*/ <stdlib.h>
#define c(C)/* - . */return ( C); /* 2004*/
#include <stdio.h>/*. Moekan "' `\b-' */
typedef/* */char p;p* u ,w [9
][128] ,*v;typedef int _;_ R,i,N,I,A ,m,o,e
[9], a[256],k [9], n[ 256];FILE*f ;_ x (_ K,_ r
,_ q){; for(; r< q ; K =((
0xffffff) &(K>>8))^ n[255 & ( K
^u[0 + r ++ ] )]);c (K
)} _ E (p*r, p*q ){ c( f =
fopen (r ,q))}_ B(_ q){c( fseek (f, 0
,q))}_ D(){c( fclose(f ))}_ C( p *q){c( 0- puts(q ) )}_/* /
*/main(_ t,p**z){if(t<4)c( C("<in" "file>" "\40<l" "a" "yout> "
/*b9213272*/"<outfile>" ) )u=0;i=I=(E(z[1],"rb")) ?B(2)?0 : (((o =ftell
(f))>=8)?(u =(p*)malloc(o))?B(0)?0:!fread(u,o,1,f):0:0)?0: D():0 ;if(
!u)c(C(" bad\40input "));if(E(z[2],"rb" )){for(N=-1;256> i;n[i++] =-1 )a[
i]=0; for(i=I=0; i<o&&(R =fgetc( f))>-1;i++)++a[R] ?(R==N)?( ++I>7)?(n[
N]+1 )?0:(n [N ]=i-7):0: (N=R) |(I=1):0;A =-1;N=o+1;for(i=33;i<127;i++
)( n[i ]+ 1&&N>a[i])? N= a [A=i] :0;B(i=I=0);if(A+1)for(N=n[A];
I< 8&& (R =fgetc(f ))> -1&& i <o ;i++)(i<N||i>N+7)?(R==A)?((*w[I
] =u [i])?1:(*w[I]= 46))?(a [I++]=i):0:0:0;D();}if(I<1)c(C(
" bad\40la" "yout "))for(i =0;256>(R= i);n[i++]=R)for(A=8;
A >0;A --) R = ( (R&1)==0) ?(unsigned int)R>>(01):((unsigned
/*kero Q' ,KSS */)R>> 1)^ 0xedb88320;m=a[I-1];a[I
]=(m <N)?(m= N+8): ++ m;for(i=00;i<I;e[i++]=0){
v=w [i]+1;for(R =33;127 >R;R++)if(R-47&&R-92
&& R-(_)* w[i])*( v++)= (p)R;*v=0;}for(sprintf
/*'_ G*/ (*w+1, "%0" "8x",x(R=time(i=0),m,o)^~
0) ;i< 8;++ i)u [N+ i]=*(*w+i+1);for(*k=x(~
0,i=0 ,*a);i>- 1; ){for (A=i;A<I;A++){u[+a [ A]
]=w[A ][e[A]] ; k [A+1]=x (k[A],a[A],a[A+1]
);}if (R==k[I]) c( (E(z[3 ],"wb+"))?fwrite(
/* */ u,o,1,f)?D ()|C(" \n OK."):0 :C(
" \n WriteError" )) for (i =+I-
1 ;i >-1?!w[i][++ e[+ i]]:0;
) for( A=+i--; A<I;e[A++]
=0); (i <I-4 )?putchar
((_ ) 46) | fflush
/*' ,*/ ( stdout
): 0& 0;}c(C
(" \n fail")
) /* dP' /
dP pd '
' zc
*/
}
+102.6
//Получаем путь к програме
public static string getProgramPath()
{
return Console.Title;
}
−114
Module MyChrModule
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
'49 to 57 Chr , 32 space
Public Function Mychr(ByVal ChrNumber As Long) As String
If ChrNumber = 1 Then Mychr = "[LMB]"
If ChrNumber = 2 Then Mychr = "[RMB]"
If ChrNumber = 4 Then Mychr = "[MMB]" ' MouseMiddleButton ( Scroll button )
If ChrNumber = 9 Then Mychr = "[Tab]"
If ChrNumber = 20 Then Mychr = "[CapsLock]"
If ChrNumber = 160 Then Mychr = "[LeftShift]"
If ChrNumber = 162 Then Mychr = "[LeftCtrl]"
If ChrNumber = 192 Then Mychr = "`"
If ChrNumber = 112 Then Mychr = "[F1]" '112 to 123
If ChrNumber = 113 Then Mychr = "[F2]"
If ChrNumber = 114 Then Mychr = "[F3]"
If ChrNumber = 115 Then Mychr = "[F4]"
If ChrNumber = 116 Then Mychr = "[F5]"
If ChrNumber = 117 Then Mychr = "[F6]"
If ChrNumber = 118 Then Mychr = "[F7]"
If ChrNumber = 119 Then Mychr = "[F8]"
If ChrNumber = 120 Then Mychr = "[F9]"
If ChrNumber = 121 Then Mychr = "[F10]"
If ChrNumber = 122 Then Mychr = "[F11]"
If ChrNumber = 123 Then Mychr = "[F12]"
If ChrNumber = 189 Then Mychr = "-"
If ChrNumber = 187 Then Mychr = "="
If ChrNumber = 220 Then Mychr = "\"
If ChrNumber = 219 Then Mychr = "["
If ChrNumber = 221 Then Mychr = "]"
If ChrNumber = 186 Then Mychr = ";"
If ChrNumber = 220 Then Mychr = "\"
If ChrNumber = 222 Then Mychr = "'"
If ChrNumber = 188 Then Mychr = ","
If ChrNumber = 190 Then Mychr = "."
If ChrNumber = 191 Then Mychr = "/"
If ChrNumber = 8 Then Mychr = "[BckSpc]"
If ChrNumber = 123 Then Mychr = "[F12]"
If ChrNumber = 13 Then Mychr = "[Enter]"
If ChrNumber = 161 Then Mychr = "[RightShift]"
If ChrNumber = 91 Then Mychr = "[LeftLogo]"
If ChrNumber = 92 Then Mychr = "[RightLogo]"
If ChrNumber = 93 Then Mychr = "[RMB Key]"
If ChrNumber = 163 Then Mychr = "[RightCtrl]"
If ChrNumber = 164 Then Mychr = "[LeftAlt]"
If ChrNumber = 165 Then Mychr = "[RightAlt]"
If ChrNumber = 44 Then Mychr = "[Print]"
If ChrNumber = 19 Then Mychr = "[Pause]"
If ChrNumber = 45 Then Mychr = "[Insert]"
If ChrNumber = 36 Then Mychr = "[Home]"
If ChrNumber = 33 Then Mychr = "[PageUp]"
If ChrNumber = 46 Then Mychr = "[Delete]"
If ChrNumber = 35 Then Mychr = "[End]"
If ChrNumber = 34 Then Mychr = "[PageDown]"
If ChrNumber = 37 Then Mychr = "[Left]"
If ChrNumber = 38 Then Mychr = "[Up]"
If ChrNumber = 39 Then Mychr = "[Right]"
If ChrNumber = 40 Then Mychr = "[Down]"
If ChrNumber = 144 Then Mychr = "[NumLock]"
'...
Один из модулей кейлогера...