Forum: Programmieren allgemein
by 3_of_8,
8. Feb 2006
Aha. Ich checke das zwar immer noch ned so ganz, aber egal.
Forum: Programmieren allgemein
by 3_of_8,
8. Feb 2006
Teste ich wann anderes mal, heute habe ich irgendwie keine Lust mehr...
Forum: Programmieren allgemein
by 3_of_8,
8. Feb 2006
OK, hier mal mein ganzer Code, funzt nämlich immer noch nicht. Und == hat Vorrang vor ||.
#include <iostream.h>
#include <stdio.h>
int main(void){
char op;
int oprnd1, oprnd2, result;
while(true){
Forum: Programmieren allgemein
by 3_of_8,
8. Feb 2006
Morgen.
Ich hab einen char op; und will den mit Stringkonstanten vergleichen.
Der Compiler meckert aber dort:
if(op=="+"||op=="-"||op=="*"||op=="/") break;
Die Fehlermeldung: ISO C++ forbids comparison between pointer and integer