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.