Story Builder

I just spent about an hour making this story builder to create book and short story outlines. It is written in C. If anyone has suggestions, please reply to this, PM or email me. Anyway, here is the code and .cpp, as well as the exe in a zip file. (This program is written in Ansi C)

EDIT: This was written several years ago, when I was a C newbie. It sucks.

#include <stdio.h>
#include <string.h>
int main()
{
char name[50];
char age[50];
char character[50];
char stat1[3000];
char stat2[3000];
char stat3[200];
char stat4[300];
char stat5[30];
char stat6[30];
char stat7[30];
char stat8[250];
char stat9[250];
char stat10[250];
char stat11[250];
char s1[10];
char exit[50];
printf("Welcome to book/short story engine 1.1.\nThis program was made to assist\nusers in coming up with outlines/ideas for books.\nWhat is your name?\n");
gets(name);
printf("\nSo, %s, what will the name of your main character be?\n",name);
gets(character);
printf("\nSo your main characters name is %s.\nHow old will your main character be in years?\n",character);
gets(age);
printf("\nSeeing as your character is %s years old,\nWhat do you think they will look like? Be descriptive.\n",age);
gets(stat1);
printf("\nNow you know what your character looks like.\nWhat kind of personality do they have?\nWrite a paragraph that describes their personality,\nand could easily be cut and pasted into a story.\n");
gets(stat2);
printf("\nNow you have you characters information.\nList two characters that help them,\nwith a brief description of each,\npressing enter after each name.\n");
gets(stat3);
gets(stat4);
printf("\nGood. Now make up the name of three bad guys,\npressing enter in between names.\nInclude brief descriptions.\n");
gets(stat5);
gets(stat6);
gets(stat7);
printf("\nGreat! Now, type up a list of the four main events in your story.\nAgain, press enter after each event.\nBe detailed, but not too detailed.\n");
gets(stat8);
gets(stat9);
gets(stat10);
gets(stat11);
printf("Great job!\a You,%s,have just created a basic outline\nfor your book or short story.\n An outline by: %s \n %s \n %s : \n %s \n Good Guys:\n %s \n %s \n %s \nPress enter to scroll down.\nYou cannot scroll back up!",name,name,character,age,stat1,stat2,stat3,stat4);
gets(s1);
printf("Part Two:\n Bad Guys:\n %s \n %s \n %s \n Story plot: \n %s \n %s \n %s \n %s \n---Press Enter to Exit Program---\n\a",stat5,stat6,stat7,stat8,stat9,stat10,stat11);
gets(exit);
return 0;
}

1

Contributor

0

Replies

1

Views

Have something to contribute to this discussion?
Please be thoughtful, detailed and courteous, and
be sure to adhere to our posting rules.