Skip to main content
GameDev.net gamedev.net
🔒 Locked

need some help

Started by Fragala Aug 1, 2006 at 10:04 PM 2 replies 400+ views
Original Post
Fragala
Fragala
i was wondering if some 1 could post the coe of a text game they hav made in C++ i would like to make my own and i would like to use 1 as a refrence
Fragala
Fragala
yes sry does any 1 have a text for a rpg game sry
Aardvajk
Aardvajk
Fragala - since this is now your fourth post asking for the code for a text game, I feel I should point out that looking at other people's code when you have little foundation in programming in the language is not a good way to learn.

I would re-ask the questions asked of you in your other threads - at what stage with programming are you? What are you capable of writing at the moment? Are there specific problems you are having that people here can advise you on?

If you have not programmed at all, before you attempt a text rpg or any kind of game, I'd suggest starting far more simply.

The following code will ask you your name, then say hello to you. I hope it may get you started. You will find these forums far more helpful when you ask more specific questions. There is ample amounts of example code available on the internet if you google a bit.

#include <iostream>#include <string>using namespace std;int main(){    string name;    cout << "What is your name?\n";    getline(cin,name);    cout << "Hello " << name << ".\n";}


HTH Paul

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.