Hello, I'm new...
And this is my first code display.

[code=Language]
#include <iostream.h>
#include <iomanip.h>
#include <ctype.h>
#include <stdio.h>
main()
{
struct figure_info
{
int a = 1;
int who = 2;
int where = 3;
int when = 4;
int how = 5;
int why = 7;
return;
}
struct run_figure  (figure_info)
{
    cout << "This is the figuartion table.";
    cout << "\nFor the figure, of moving named dimensions, choose one, then enter the assigned number.";
    cout << "\n1: What \n2: Who \n3: Where \n4: When \n5: Why \n7: How ";
    cout << "\nWhat is your decision? ";
    return;
}
//return 0;
//}
struct do_figure1 (run_figure int ans)
{
    do
        cin >> ans;
        if (ans = 1) {
            cout << "\nThis is the first Dimension. ";
            cout << "\nWould you like to choose again? ";
        }
        else
            {
                return (run_figure);
        }
    return;
}
struct do_figure2 (run_figure int ans)
{
    do
        cin >> ans;
    if (ans = 2) {
        cout << "\nThis is the second Dimension. ";
        cout << "\nWould you like to choose again? ";
    }
    else
        {
            return (run_figure);
    }
    return;
}
struct do_figure3 (run_figure int ans)
{
    do
        cin >> ans;
    if (ans = 3) {
        cout << "\nThis is the third Dimension. ";
        cout << "\nWould you like to chosse again ";
    }
    else
        {
            return (run-figure);
    }
    return;
}
struct do_figure4 (run_figure int ans)
{
    do
        cin >> ans;
    if (ans = 4) {
        cout << "\nThis is the fourth Dimension. ";
        cout << "\nWould you like to choose again? ";
    }
    else
        {
            return (run_figure);
    }
    return;
}
struct do_figure5 (run_figure int ans)
{
    do
        cin >> ans;
    if (ans = 5) {
        cout << "\nThis is the fifth Dimension. ";
        cout << "\nWould you like to choose again? ";
    }
    else
        {
            return (run_figure);
    }
    return;
}
struct last_figure (run_figure int ans)
{
    do
        cin >> ans;
    if (ans = 7) {
        cout << "This is the last Dimension. ";
        cout << "Choose again or stand aside! ";
    }
    else 
        {
            return (run_figure);
    }
    return;
}
struct run_response ((do_figure1),(do_figure2), (do_figure3), (do_figure4), (do_figure5), (last_figure))
{
    goto main;
    return;
}
int main(run_response) {
    return (0);
}

This was my first honest crack at my own "brainstorm code", after what I've learned and practiced.
Evidently the compiler has failed me, and I'm not drunk enough to start fighting with a compiler. haha giddywho anyways...

I'm still failry new at this, and here is where I'm starting my attempt to dice down.
For extra insight, my sole source of learning is from Turbo C++ from 1992, so please keep all ostricization to an appropriate scope.:lol:
Sorry if this seems bone jarring, and thanks for any help.

I don't know where you got this code from... but it's bascailly wrong in every way..

First to start you off... <iostream.h> is an incorrect #include. You only need <iostream>.

Second, functions need a return type, your main function lacks any return type. So you'll need int main().

Third, you should definitely read some tutorials online about basics of C++ before writting functions that return structs etc...

Hi mariocatch,
First off, thank you for the reply,
I didn't get this code anywhere except in my mind.
This was just a stab at trying to write something, anything to compile and do as I instructed to my desired aims.

I figured as much about the isotream header, however I have an unfortunate dillemma.
The computer I'm using is a WIN2K OS, and when my father downloaded and installed the netbeans IDE, he also had to get other kinds of plugins and specific modifiers, like shell, and interpreters for the compiler.
THe IDE I use isn't fully up to date I'm thinking, as much of my potential to use C++ is limited, I tested this theory in attempting to compile correctly written code by a few different people in the places where I found the code.

For instance, the IDE doesn't recognize the directory of conio(Which is a significent problem I think).

I'm not sure what I'm going to do on that side. THough since I've been browsing this, and other forums, I've been rehashing the appearance of styles and methods of others.
I'm just still trying to hit my stride before I really get into any heavily decided code desires. I guess I'm just in for the practice righ now.

Thanks for the reply. I'll see what I can do.

If you want IDE's specifically aimed for C++, you can read this. Oh and btw, conio.h is not a standard header, so no point in searching for one.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.