|
Software- und Webentwicklung Planung, Programmierung und Administration
UML, JavaScript/DOM, ASP, JSP, PHP, Apache, MySQL, Python, Perl (...) |
|
Themen-Optionen | Ansicht |
26.09.2005, 14:33 | #1 (permalink) |
|
[C] Schach-Quellcode-Problem
Hi,
ich arbeite zur Zeit an einem Schach-Spiel (zunächst nur über Keyboard spielbar) und bekomme beim compilen einen Fehler. Hier der Teil des Codes, den es anscheinend betrifft: Code:
[................] for(float i=0; i<=6;i=i+0.1) { setcolor(12); settextstyle(4,HORIZ_DIR,i); outtextxy(50,120,"WELCOME TO THE CHESS"); delay(30); cleardevice(); } outtextxy(50,120,"WELCOME TO THE CHESS"); settextstyle(1,HORIZ_DIR,3); getch(); cleardevice(); //Displaying Group Members setcolor(CYAN); outtextxy(50,220,"Designed by:"); setcolor(6); outtextxy(50,250,"BoOnZ"); //Displaying Roll Numbers outtextxy(350,250,"L1F01BSCS0144"; getch(); cleardevice(); cleardevice(); settextstyle(1,HORIZ_DIR,2); setcolor(12); outtextxy(50,10,"During the game Press:\n"); outtextxy(50,10,"______________________\n"); setcolor(6); settextstyle(1,HORIZ_DIR,1.5); outtextxy(50,60,"F2 to save file\n"); outtextxy(50,80,"F3 to load file\n"); outtextxy(50,100,"ESC to exit game\n"); outtextxy(50,120,"U to undo selection\n"); outtextxy(50,200,"\nPress any key to play "); getch(); cleardevice(); cleartext(); initialize(); char ch; int x=-1,y=-1,x1=-1,y1=-1; setcolor(9); outtextxy(10,400,"Player 1"); for(;;) { int game; game=gameover(); if(game==0) { break; } FILE *fp; ch=getch(); if(ch==0){ ch=getch(); if(ch=='<'){ [................]
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 16:40 | #3 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Das ist der Fehler
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 16:45 | #5 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Code:
#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <iostream.h> #include <conio.h> #include <ctype.h> #include <dos.h>
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 16:58 | #7 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Erm, "outtextxy" ist eine Funktion, die glaube ich in <ctype.h> enthalten ist, und ganz einfach für eine Ausgabe des in den Paramtern angegebenen Textes an den Koordinaten x,y ausführt....
vergleichbar mit cout -c++ und printf
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 17:27 | #9 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Boah ey, ich könnte die Wände hochgehen
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 19:09 | #11 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Deine Software taugt nichts.
So muss das aussehen:
__________________
https://savetheinternet.info/ |
26.09.2005, 19:17 | #13 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Microsoft Visual Studio 6.0 mit GeShi. Keine Ahnung, was da schief gelaufen is
__________________
o L_ OL "This is Schäuble. Copy Schäuble into your signature to help him on his way to Überwachungsstaat." "Tokio Hotel Fan" -edited by Burns :P • - auch edited by Burns :P |
26.09.2005, 19:27 | #14 (permalink) |
|
AW: [C] Schach-Quellcode-Problem
Das ist aber nicht der Grund warum ich es poste. Mit einer besseren Software wäre der Fehler soffort aufgefallen.
__________________
https://savetheinternet.info/ |
26.09.2005, 19:31 | #15 (permalink) |
Registriert seit: 13.04.2003
Beiträge: 29.761
|
AW: [C] Schach-Quellcode-Problem
ok, das habe ich dann missverstanden, ziehe meinen Scherz zurück
Da ist Java deutlich C/C++ vorraus, mit Eclipse passieren einem solche doofe Fehler nicht! Ich glaube es gibt auch Eclipse für C/C++. |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
Themen-Optionen | |
Ansicht | |
|
|