<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'String error on simple text game' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'String error on simple text game' posted on the 'C#' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 20:07:25 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 20:07:25 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>String error on simple text game</title>
      <link>http://www.programmersheaven.com/mb/csharp/391264/391264/string-error-on-simple-text-game/</link>
      <description>Take a look at the program bellow.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextAdventureGame
{
    class adventure
    {
        static void Main()
        {
            string person;
            string occupation;
            string seaCreature;
            string animal;
            string friend;
            string tool;
            string problem;

            Console.WriteLine("Simple Adventure Game");

            Console.Write("What is your name? ");
            person = Console.ReadLine();

            Console.Write("What is your occupation? ");
            occupation = Console.ReadLine();

            Console.Write("Please tell me your favorite animal: ");
            animal = Console.ReadLine();

            Console.Write("What is the name of your friend? ");
            friend = Console.ReadLine();

            Console.Write("Name a problem you might face: ");
            problem = Console.ReadLine();

            Console.Write("Name a tool: ");
            tool = Console.ReadLine();

            Console.Write("Please give me the name of a sea creature: ");
            seaCreature = Console.ReadLine();

            Console.WriteLine();
            Console.WriteLine();
            
            //write the story
            Console.WriteLine("One day there was a person named {0}. Now, {0} was usually ", person);
            Console.WriteLine("very content to work as a {0}, but sometimes the job", occupation);
            Console.WriteLine("was very difficult.");
            Console.WriteLine("One day, {0} discovered that the heardbreak of {1} had ", person, problem);
            Console.WriteLine("occured just one time to often. \"I can't stand being a ");
            Console.WriteLine("{0} any more!\" yelled {1}, as he hurled away his ", occupation, person);
            Console.WriteLine("{0} in anger, No {1} will keep me from fulfilling", tool, problem);
            Console.WriteLine("My dreams! What I really want, said {0}, is to be just like ", person);
            Console.WriteLine("{0). Now THAT'S somebody to admire. So {1} put away the ", friend, person);
            Console.WriteLine("{0} forever, and followed {1} into the pastoral", tool, friend);
            Console.WriteLine("world of {0}-ranching. Eventually, {1} was able to ", animal, person);
            Console.WriteLine("retire, as happy as {0}", seaCreature);

            Console.WriteLine();
            Console.WriteLine();

            //Ask for Enter to quite
            Console.Write("Press Enter to continue!");
            Console.ReadLine();

        } //end Main
    } //end class
} //end namespace
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
When I compile the program in MS Visual C# 2008 it runs the program until it gets to the line&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Console.WriteLine("{0). Now THAT'S somebody to admire. So {1} put away the ", friend, person);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The program does not run after that point and the compiler says that somethings wrong with my string formating. I got this program from the book "Microsoft C# Programming for the absolute beginner"&lt;br /&gt;
&lt;br /&gt;
Can someone please help me out I would really appreciate it. Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/391264/391264/string-error-on-simple-text-game/</guid>
      <pubDate>Wed, 20 May 2009 14:20:00 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: String error on simple text game</title>
      <link>http://www.programmersheaven.com/mb/csharp/391264/391312/re-string-error-on-simple-text-game/#391312</link>
      <description>you have a close paran ')' instead of a close bracket '}' for your 0 variable in your format string.&lt;br /&gt;
&amp;gt;&amp;lt;/\/~Psightoplasm`~</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/391264/391312/re-string-error-on-simple-text-game/#391312</guid>
      <pubDate>Thu, 21 May 2009 12:53:22 -0700</pubDate>
      <category>C#</category>
    </item>
    <item>
      <title>Re: String error on simple text game</title>
      <link>http://www.programmersheaven.com/mb/csharp/391264/391318/re-string-error-on-simple-text-game/#391318</link>
      <description>Thanks for the help.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/391264/391318/re-string-error-on-simple-text-game/#391318</guid>
      <pubDate>Thu, 21 May 2009 13:48:30 -0700</pubDate>
      <category>C#</category>
    </item>
  </channel>
</rss>