Conio Intro
-
hy,
meine idee ist es ein wort von oben reinlaufen zu lassen und wenn es in der mitte ist sollte es sich löschen und das nächste wort sollte reinlaufen (von oben). das mit dem reinlaufen klappt aber ich kreig es nicht hin das es in der mitte stehen bleibt und dann sich löscht. weis nicht wo ich das clrscr() hinschreiben muss.#include <cstdlib>
#include <iostream>
#include "conio2.h"
#include "MM-head.h"using namespace std;
void master ()
{
int xPos, yPos;for (yPos = 5; yPos <= 7; yPos++)
{
for(xPos = 1; xPos < 181; ++yPos)
{
clrscr();
a(xPos, yPos);
_sleep(100);}
}
}// void delline
void a (int xPos, int yPos)
{textcolor(LIGHTRED);
gotoxy(xPos, yPos);
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################" << endl;
// textbackground(WHITE);
// textcolor(WHITE);
cout << "## # ### # ### # ### # # # ## # ### ##" << endl ;
// textbackground(LIGHTRED);
// textcolor(LIGHTRED);
cout << "#### ### ### # ### # ## # ##### # ## # ### # ### ##"<< endl ;
// textbackground(WHITE);
// textcolor(WHITE);
cout<< "#### ### # ### # # # # ## ## # ###### ##"<< endl ;
// textbackground(LIGHTRED);
//textcolor(LIGHTRED);
cout<<"#### ### ### # ### # # # ##### # ### # ### # ### ##"<< endl ;
// textbackground(BLACK);
// textcolor(WHITE);
cout<<"#### ### ### ## ## #### ## ##### # ## ## ### ##"<< endl ;
// textcolor(LIGHTRED);
cout<<"# #"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(LIGHTRED);
cout<<"###################################################################"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(LIGHTRED);
cout<<"###################################################################"<< endl ;
// textcolor(WHITE);
cout<<"###################################################################"<< endl ;
// textcolor(LIGHTRED);
cout<<"";
// textcolor(WHITE);
cout<<"" << endl;
-
EDIT:
Syntax Coloring:
http://c-plusplus.net/forum/viewtopic.php?t=39411
-
http://c-plusplus.net/forum/posting-var-mode-is-editpost-and-p-is-39411.html
den link gibts nicht
-
so ich habe mich nun auch angemldet. qwer123 bin ich sonnenblümchen
kann mir denn jemand helfen?#include <cstdlib> #include <iostream> #include "conio2.h" #include "MM-head.h" using namespace std; void master () { int xPos, yPos; for (yPos = 5; yPos <= 7; yPos++) { for(xPos = 1; xPos < 181; ++yPos) { clrscr(); a(xPos, yPos); _sleep(100); } } } // void delline void a (int xPos, int yPos) {textcolor(LIGHTRED); gotoxy(xPos, yPos); // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(WHITE); cout<<"###################################################################" << endl; // textbackground(WHITE); // textcolor(WHITE); cout << "## # ### # ### # ### # # # ## # ### ##" << endl ; // textbackground(LIGHTRED); // textcolor(LIGHTRED); cout << "#### ### ### # ### # ## # ##### # ## # ### # ### ##"<< endl ; // textbackground(WHITE); // textcolor(WHITE); cout<< "#### ### # ### # # # # ## ## # ###### ##"<< endl ; // textbackground(LIGHTRED); //textcolor(LIGHTRED); cout<<"#### ### ### # ### # # # ##### # ### # ### # ### ##"<< endl ; // textbackground(BLACK); // textcolor(WHITE); cout<<"#### ### ### ## ## #### ## ##### # ## ## ### ##"<< endl ; // textcolor(LIGHTRED); cout<<"# #"<< endl ; // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(LIGHTRED); cout<<"###################################################################"<< endl ; // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(LIGHTRED); cout<<"###################################################################"<< endl ; // textcolor(WHITE); cout<<"###################################################################"<< endl ; // textcolor(LIGHTRED); cout<<""; // textcolor(WHITE); cout<<"" << endl;
-
Dieser Thread wurde von Moderator/in HumeSikkins aus dem Forum C++ in das Forum DOS und Win32-Konsole verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.