Selbst Programmiert

10/24/2009 20:28 WiiZocker#16
Und der von dem Game-Berater(hoffendlich jetzt Richtig)


Code:
 
#include <iostream>
#include <cstdlib>
#include <conio.h>
#include <string>
#include <cstdio>

//------------------------------------------------------------------------------

using namespace std;

//------------------------------------------------------------------------------

int main()

{





cout << " JJJJJJJJJJJJJJJJ" << endl;
cout << " JJJJJJJJJJJJJJJJ" << endl;
cout << " JJJJ" << endl;
cout << " JJJJ" << endl;
cout << " JJJJ" << endl;
cout << " JJJJ" << endl;
cout << " JJJJJJJJJ JJJJ" << endl;
cout << " JJJJJJJJJ JJJJ" << endl;
cout << " JJJJ JJJJ" << endl;
cout << " JJJJ JJJJ" << endl;
cout << " JJJJJJJJJJJJJJJJ" << endl;
cout << " " << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << " AA" << endl;
cout << " AAAA" << endl;
cout << " AA AA" << endl;
cout << " AA AA" << endl;
cout << " AAA AAA" << endl;
cout << " AAAAAAAAAAAAA" << endl;
cout << " AAAAAAAAAAAAAAA" << endl;
cout << " AAA AAA" << endl;
cout << " AAA AAA" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << " NNNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;
cout << " NNN NNN NNN" << endl;

cout << "" << endl;
cout << "" << endl;
cout << "" << endl;























cout << " Hallo welche genre willst du spielen?" << endl;
cout << " Oben nochmal mein Name^^ " << endl;


char GameSeiten, Spielnamen;

cout << "A = Action, B = Defense, C = (Ego)-Shooter, D = Strategie, E = Multiplayer, F = Meine lieblings games " << endl;
cin >> GameSeiten;
switch (GameSeiten)

{
case 'a':
cout << "Hier die liste der webseiten für Action-Games";
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.action-games.heavygames.com" << endl;
cout << "" << endl;
cout << "www.addictinggames.com/actiongames.html" << endl;
cout << "" << endl;
cout << "www.play.de/actiongames/index.php" << endl;
cout << "" << endl;
cout << "www.agame.com/games/action.html" << endl;
cout << "" << endl;
cout << "www.gamezhero.com/online-games/action-games.html" << endl;
cout << "" << endl;
cout << "www.actionflash.com/directory_action_p1.php" << endl;
cout << "" << endl;
cout << "www.java-gaming.com/c/Action/" << endl;
cout << "" << endl;
cout << "www.onlinespiele.org/rubrik/0/titel/1/Action.html" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Hoffe du hast das gefunden was du suchst" << endl;
cout << "" << endl;
cout << "" << endl;
break;

case 'b':
cout << "Hier ist die Liste der Webseiten mit den Defense-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.playtowerdefensegames.com/categories/2/defense-with-out-tower-games.html" << endl;
cout << "" << endl;
cout << "www.turretdefensegames.com/" << endl;
cout << "" << endl;
cout << "www.newgrounds.com/game/defensegames" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/td.php" << endl;
cout << "" << endl;
cout << "www.gratisspiele-downloads.de/tower-defense-games/spielen.htm" << endl;
cout << "" << endl;
cout << "towerdefencegames.com/" << endl;
cout << "" << endl;
cout << "www.kongregate.com/strategy-defense-games" << endl;
cout << "" << endl;
cout << "www.towerdefensegames247.com/" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Hoffe du hast das gefunden was du suchst" << endl;
break;

case 'c':
cout << "Hier ist die Liste der Webseiten für (Ego)-Shooter-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.flashgames.de/index.php?genre=shooter&typ=onlinespiele&orderby=3 &sortby=1" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/shooter.php" << endl;
cout << "" << endl;
cout << "www.gamenode.com/shooting-games/" << endl;
cout << "" << endl;
cout << "www.2dplay.com/shooting-games.htm" << endl;
cout << "" << endl;
cout << "www.onlinespiele.org/rubrik/0/titel/1/Shooter.html" << endl;
cout << "" << endl;
cout << "www.funny-games.biz/shooting-games.html" << endl;
cout << "" << endl;
cout << "www.fettspielen.de/de/spiele/themen/shooter-spiele" << endl;
cout << "" << endl;
cout << "www.dailyfreegames.com/games/shooting-games/" << endl;
cout << "" << endl;
cout << "www.shootinggames60.com/" << endl;
cout << "" << endl;
cout << "www.sniperaim.com/" << endl;
cout << "" << endl;
break;

case 'd':
cout << "Hier ist die Liste der Webseiten mit den Strategie-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.flashgames.de/index.php?genre=strategiespiele&orderby=3&sortby=1 &typ=onlinespiele" << endl;
cout << "" << endl;
cout << "www.flashtrackz.com/de/categories/35/strategy.html" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/strategy.php" << endl;
cout << "" << endl;
cout << "www.onlinegamesxxl.de/cat-67-p1-Strategie_Spiele.html" << endl;
cout << "" << endl;
cout << "www.addictinggames.com/strategygames.html" << endl;
cout << "" << endl;
cout << "www.blitzgamer.com/games/all/1/strategy.html" << endl;
cout << "" << endl;
cout << "www.shockwave.com/online/strategy-games.jsp" << endl;
cout << "" << endl;
cout << "www.2dplay.com/rpg-strategy-games.htm" << endl;
cout << "" << endl;
cout << "www.fupa.com/flash-games/Strategy.html" << endl;
cout << "" << endl;
cout << "www.candystand.com/play/strategy-games" << endl;
cout << "" << endl;
break;

case 'e':
cout << "Hier ist die Liste der Webseiten mit den Multiplayer-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.spielaffe.de/Kategorie/2spieler/" << endl;
cout << "" << endl;
cout << "www.shegame.com/cat/182/2-Players/flash-games-1" << endl;
cout << "" << endl;
cout << "www.2-player-games.com/" << endl;
cout << "" << endl;
cout << "www.funny-games.biz/multiplayer-games.html" << endl;
cout << "" << endl;
cout << "www.twoplayergames.org/" << endl;
cout << "" << endl;
cout << "www.spielkarussell.de/spiele/mehr-spiele/multiplayerspiele_1.html" << endl;
cout << "" << endl;
cout << "www.dailygames.com/2-playersgames.html" << endl;
cout << "" << endl;
cout << "www.arcade40.com/categories/6/2-player-games.html" << endl;
cout << "" << endl;
cout << "www.playbuz.com/games/2_players/1.html" << endl;
cout << "" << endl;
cout << "www.onlinespiele-1.de/arcade_spiele/2_player_pacman/" << endl;
cout << "" << endl;
break;

case 'f':
cout << "Hier ist die Liste der Webseiten mit mein Lieblingsspielen" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.crazymonkeygames.com/Boxhead-2Play-Rooms.html" << endl;
cout << "" << endl;
cout << "www.bloons-tower-defense.de/" << endl;
cout << "" << endl;
cout << "www.novelconcepts.co.uk/FlashElementTD/" << endl;
cout << "" << endl;
cout << "www.creetor.com/arcade/view/64/2-player-Gold-miner.htm" << endl;
cout << "" << endl;
cout << "www.spielaffe.de/Spiele/Sport/Roter_fahrer" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
break;

case 'A':
cout << "Hier die liste der webseiten für Action-Games";
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.action-games.heavygames.com" << endl;
cout << "" << endl;
cout << "www.addictinggames.com/actiongames.html" << endl;
cout << "" << endl;
cout << "www.play.de/actiongames/index.php" << endl;
cout << "" << endl;
cout << "www.agame.com/games/action.html" << endl;
cout << "" << endl;
cout << "www.gamezhero.com/online-games/action-games.html" << endl;
cout << "" << endl;
cout << "www.actionflash.com/directory_action_p1.php" << endl;
cout << "" << endl;
cout << "www.java-gaming.com/c/Action/" << endl;
cout << "" << endl;
cout << "www.onlinespiele.org/rubrik/0/titel/1/Action.html" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Hoffe du hast das gefunden was du suchst" << endl;
cout << "" << endl;
cout << "" << endl;
break;

case 'B':
cout << "Hier ist die Liste der Webseiten mit den Defense-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.playtowerdefensegames.com/categories/2/defense-with-out-tower-games.html" << endl;
cout << "" << endl;
cout << "www.turretdefensegames.com/" << endl;
cout << "" << endl;
cout << "www.newgrounds.com/game/defensegames" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/td.php" << endl;
cout << "" << endl;
cout << "www.gratisspiele-downloads.de/tower-defense-games/spielen.htm" << endl;
cout << "" << endl;
cout << "towerdefencegames.com/" << endl;
cout << "" << endl;
cout << "www.kongregate.com/strategy-defense-games" << endl;
cout << "" << endl;
cout << "www.towerdefensegames247.com/" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Hoffe du hast das gefunden was du suchst" << endl;
break;

case 'C':
cout << "Hier ist die Liste der Webseiten für (Ego)-Shooter-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.flashgames.de/index.php?genre=shooter&typ=onlinespiele&orderby=3 &sortby=1" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/shooter.php" << endl;
cout << "" << endl;
cout << "www.gamenode.com/shooting-games/" << endl;
cout << "" << endl;
cout << "www.2dplay.com/shooting-games.htm" << endl;
cout << "" << endl;
cout << "www.onlinespiele.org/rubrik/0/titel/1/Shooter.html" << endl;
cout << "" << endl;
cout << "www.funny-games.biz/shooting-games.html" << endl;
cout << "" << endl;
cout << "www.fettspielen.de/de/spiele/themen/shooter-spiele" << endl;
cout << "" << endl;
cout << "www.dailyfreegames.com/games/shooting-games/" << endl;
cout << "" << endl;
cout << "www.shootinggames60.com/" << endl;
cout << "" << endl;
cout << "www.sniperaim.com/" << endl;
cout << "" << endl;
break;

case 'D':
cout << "Hier ist die Liste der Webseiten mit den Strategie-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.flashgames.de/index.php?genre=strategiespiele&orderby=3&sortby=1 &typ=onlinespiele" << endl;
cout << "" << endl;
cout << "www.flashtrackz.com/de/categories/35/strategy.html" << endl;
cout << "" << endl;
cout << "www.online-games-zone.com/pages/strategy.php" << endl;
cout << "" << endl;
cout << "www.onlinegamesxxl.de/cat-67-p1-Strategie_Spiele.html" << endl;
cout << "" << endl;
cout << "www.addictinggames.com/strategygames.html" << endl;
cout << "" << endl;
cout << "www.blitzgamer.com/games/all/1/strategy.html" << endl;
cout << "" << endl;
cout << "www.shockwave.com/online/strategy-games.jsp" << endl;
cout << "" << endl;
cout << "www.2dplay.com/rpg-strategy-games.htm" << endl;
cout << "" << endl;
cout << "www.fupa.com/flash-games/Strategy.html" << endl;
cout << "" << endl;
cout << "www.candystand.com/play/strategy-games" << endl;
cout << "" << endl;
break;

case 'E':
cout << "Hier ist die Liste der Webseiten mit den Multiplayer-Games" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.spielaffe.de/Kategorie/2spieler/" << endl;
cout << "" << endl;
cout << "www.shegame.com/cat/182/2-Players/flash-games-1" << endl;
cout << "" << endl;
cout << "www.2-player-games.com/" << endl;
cout << "" << endl;
cout << "www.funny-games.biz/multiplayer-games.html" << endl;
cout << "" << endl;
cout << "www.twoplayergames.org/" << endl;
cout << "" << endl;
cout << "www.spielkarussell.de/spiele/mehr-spiele/multiplayerspiele_1.html" << endl;
cout << "" << endl;
cout << "www.dailygames.com/2-playersgames.html" << endl;
cout << "" << endl;
cout << "www.arcade40.com/categories/6/2-player-games.html" << endl;
cout << "" << endl;
cout << "www.playbuz.com/games/2_players/1.html" << endl;
cout << "" << endl;
cout << "www.onlinespiele-1.de/arcade_spiele/2_player_pacman/" << endl;
cout << "" << endl;
break;

case 'F':
cout << "Hier ist die Liste der Webseiten mit mein Lieblingsspielen" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "www.crazymonkeygames.com/Boxhead-2Play-Rooms.html" << endl;
cout << "" << endl;
cout << "www.bloons-tower-defense.de/" << endl;
cout << "" << endl;
cout << "www.novelconcepts.co.uk/FlashElementTD/" << endl;
cout << "" << endl;
cout << "www.creetor.com/arcade/view/64/2-player-Gold-miner.htm" << endl;
cout << "" << endl;
cout << "www.spielaffe.de/Spiele/Sport/Roter_fahrer" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
break;

}


cout << "Moechtest du nur Spielnamen haben? schreib J oder N" << endl;
cin >> Spielnamen;
switch (Spielnamen)

{
case 'j':

cout << " Ok hier ein paar Namen " << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Bloons Tower Defense 1" << endl;
cout << "Bloons Tower Defense 2" << endl;
cout << "Bloons Tower Defense 3" << endl;
cout << "Boxhead" << endl;
cout << "Roter Fahrer" << endl;
cout << "Flash Element TD" << endl;
cout << "Flash Element TD 2" << endl;
cout << "Storm The House" << endl;
cout << "Storm The House 2" << endl;
cout << "Storm The House 3" << endl;
cout << "Desktop TD" << endl;
cout << "Big Money" << endl;
cout << "Mahjong" << endl;
cout << "The Hardest Game Of The World" << endl;
cout << "The Hardest Game Of The World 2" << endl;
cout << "The Hardest Game Of The World 3" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
break;

case 'J':

cout << " Ok hier ein paar Namen " << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "Bloons Tower Defense 1" << endl;
cout << "Bloons Tower Defense 2" << endl;
cout << "Bloons Tower Defense 3" << endl;
cout << "Boxhead" << endl;
cout << "Roter Fahrer" << endl;
cout << "Flash Element TD" << endl;
cout << "Flash Element TD 2" << endl;
cout << "Storm The House" << endl;
cout << "Storm The House 2" << endl;
cout << "Storm The House 3" << endl;
cout << "Desktop TD" << endl;
cout << "Big Money" << endl;
cout << "Mahjong" << endl;
cout << "The Hardest Game Of The World" << endl;
cout << "The Hardest Game Of The World 2" << endl;
cout << "The Hardest Game Of The World 3" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;

break;



case 'n':
cout << " Ok dann nicht " << endl;

cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
break;



case 'N':
cout << " Ok dann nicht " << endl;

cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
cout << "" << endl;
break;



}

cout << "Hier nochmal ein geiles Online Game,Nostale...es ist kostenlos," << endl;
cout << "Es gibt nur ein paar Items,Kostueme,usw. die man in einem shopfenster Kaufen kann" << endl;
cout << "Das ist aber keine Pflicht" << endl;

cout << "www.nostale.de" << endl;

cout << "Ok das wars wenn ein Link nicht geht nehm ein anderen ich kann nix dafuer^^,und vieleicht erweitere ich das Programm noch." << endl;

cout << "Dieses Programm wurde Geschrieben von Jan und fertiggestellt am: 24.09.2009" << endl;


getch();
return 0;

}
10/24/2009 20:49 Syc0n#17
Und für sowas macht man c++ - Programme?
10/24/2009 22:23 WiiZocker#18
Wollt das einfach mal ausprobieren so ein kleines prog.Is mir klar das man damit kaum was anfangen kann aber ich wollt nur wissen ob das so gut ist

mfg jan
10/24/2009 22:26 MrSm!th#19
-.-" und da sag ich doch extra [php] tags
naja auch egal da es ja ziemlich einseitig ist.
also den sinn des ersten programms verstehe ich nicht und beim zweiten verstehe ich die ganzen couts am anfang nicht
wie schon ein vorposter geschrieben hat ist es unnötig
Code:
case "J":
case "j" :
zu schreiben sondern einfach
Code:
tolower(AUSWAHL)
case "j":
^^
da das ja ziemlich einseitige und einfache programme sind gibts auch nicht viel zu korrigieren^^
10/25/2009 02:12 WiiZocker#20
Die couts am anfang sollen ein namen bilden also von oben nach unten J A N hat sich aber leider verschoben und der sinn von dem anderen prog...hab mir eig. nix dabei gedacht wollt einfach mal irgendwas Proggen^^

und die tolower habe ich mit eingebaut ist jetzt viel kürzer^^ THX
10/25/2009 02:15 MrSm!th#21
Das Gefühl kenn ich, aber wenn man keine Idee für was sinnvolles hat sollte man es doch vorerst lassen und weiterlernen^^
Da fällt einem dann genug sinnvolles ein
10/25/2009 04:10 Kazaaa#22
Oder man fragt im Forum nach mit was man als Nächstes weiter machen könnte. (Gibt ja genug Leute die auch mal "klein" angefangen haben ;) )
10/25/2009 08:24 buFFy!#23
Gewöhn dir lieber an statt cout gleich printf zu verwenden !
10/25/2009 11:29 MrSm!th#24
omg
klar bring nem c++ lernenden C funktionen bei
darf ich fragen warum er sich printf angewöhnen soll?
das interessiert mich jetzt aber; ich hab den tipp noch nie gehört^^
10/25/2009 12:06 WiiZocker#25
Ahm was ist printf?naja ich muss ersmal wirklich weiter lernen...

mfg jan
10/25/2009 12:34 MrSm!th#26
das ist eine ausgabefunktion wie cout
nur ist es C und kein C++
bleib bei cout ;)
10/25/2009 13:04 Ende!#27
printf benutze ich eig nur, wenn ich eine Ausgabe mit sehr vielen Variablen mache, weil es dann übersichtlicher wird ;)
10/25/2009 15:34 Akorn#28
Quote:
Originally Posted by MrSm!th View Post
omg
klar bring nem c++ lernenden C funktionen bei
darf ich fragen warum er sich printf angewöhnen soll?
das interessiert mich jetzt aber; ich hab den tipp noch nie gehört^^
Die ausgabe mit Printf ist in etwa doppelt so schnell wie mit cout. Sonst fällt mir jetzt aber auch kein weiterer vorteil ein.
10/25/2009 15:43 Gianotti#29
Quote:
Originally Posted by Akorn View Post
Die ausgabe mit Printf ist in etwa doppelt so schnell wie mit cout. Sonst fällt mir jetzt aber auch kein weiterer vorteil ein.
seit wann das?
10/25/2009 17:17 Akorn#30
Quote:
Originally Posted by Gianotti View Post
seit wann das?
Musst nur nen bisschen googlen, es haben einige dafür nen paar beispielanwendungen zum testen geschrieben.Mit dem Ergebniss das printf schneller ist.