Thread: Need help with code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2020
    Posts
    18

    Question Need help with code

    So I'm practicing structures and passing parameters in functions, and I'm trying to make a simple program where you choose between Mage, Warrior, and Healer classes. After choosing one, you enter your level, then if you are equal to or over lvl 15, you can choose to buy a weapon specially designed for each class. Then you enter the amount of gold you have, which the program then converts to in game gold (which I named PD), and if you have sufficient funds, you can buy it.

    I've only done Mage, and I wanted to test run it, and it first asks me to choose a class. Then when I do, the program just exits.
    What did I do wrong? (Sorry, it's kinda long)

    Need help with code-1-jpg
    Need help with code-2-jpg
    Need help with code-3-jpg
    Need help with code-screen-shot-2020-11-30-10-20-12-pm-jpg
    Last edited by leopoldo100; 12-01-2020 at 12:22 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-10-2010, 11:28 AM
  2. Replies: 14
    Last Post: 04-01-2008, 02:23 AM
  3. producing c/c++ code from flowcharts,pseudo code , algorithims
    By rohit83.ken in forum C++ Programming
    Replies: 3
    Last Post: 02-20-2008, 07:09 AM
  4. Having trouble translating psudeo-code to real-code.
    By Lithorien in forum C++ Programming
    Replies: 13
    Last Post: 10-05-2004, 07:51 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

Tags for this Thread