Liebes Forum!
Ich kann mir einfach nicht helfen…
if(true)
{
printf("lol");
}
if(false)
{
printf("lol");
}
if(0==1)
{
printf("lol");
}
In allen Fällen wird in der Console lol ausgegeben. Nicht dass mein Programm jetzt lol ausgeben soll, aber mit
case VK\_LEFT:
{
if(this-\>cursorpos \> 0);
{
this-\>cursorpos -= 1;
}
break;
}
will ich nur dann den cursor bewegen, wenn cursorpos größer als 0 ist. Der Cursor wird aber IMMER bewegt, egal welchen Wert cursorpos hat.
Ich habe schon an einen Compilerbug gedacht. Weiß jemand wie man an sowas rangehen soll?
Verwende Code::Blocks mit MinGW.
mfg dixxi