thorbinger
05.08.2007, 16:33
Halli Hallöchen :)
Ich möchte gerne einen (ersteinmal) kurzen Strich Film in C++ machen.
Das soll heißen es soll ein Strichmännchen zu sehen sein, das die Arme bewegt. So:
0 \0/
/|\ |
/ \ / \
Dann habe ich das hier geschrieben:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
getchar();
getchar();
return 0;
}
Beim Compilen kommt schon immer der Fehler: "[Warning] ´\040´"
Beim öffnen der .exe "verschlingt" das "\" sozusagen alles was hinter ihm steht.:(
Wie kann ich das verhindern?
Ich möchte gerne einen (ersteinmal) kurzen Strich Film in C++ machen.
Das soll heißen es soll ein Strichmännchen zu sehen sein, das die Arme bewegt. So:
0 \0/
/|\ |
/ \ / \
Dann habe ich das hier geschrieben:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " 0 " << endl;
cout << " /|\ " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
cout << " \0/ " << endl;
cout << " | " << endl;
cout << " / \ " << endl;
Sleep(1000);
system("cls");
getchar();
getchar();
return 0;
}
Beim Compilen kommt schon immer der Fehler: "[Warning] ´\040´"
Beim öffnen der .exe "verschlingt" das "\" sozusagen alles was hinter ihm steht.:(
Wie kann ich das verhindern?