This is a CPP code.
//************************************** // Name: Completley Customizable Webpage Maker(!updated!) // Description:a Webpage Maker made from a beginner for beginners in html... Simple To use... and as always COMPLETLEY CUSTOMIZABLE!!!! Feedback is GREATLY appreciated... Votes Would be nice :) Thanks ~kc~ // By: theMayor // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //This code is copyrighted and has limited warranties. //Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.2169/lngWId.3/qx/vb/scripts/ShowCode.htm //for details. //************************************** #include <iostream.h> #include <string> #include <stdlib.h> #include <conio.h> #include <fstream.h> #include <stdio.h> void menu() { system("cls"); cout << "******************************\n"; cout << "1.) Insert an Image\n"; cout << "2.) Insert an Image Link\n"; cout << "3.) Insert Text\n"; cout << "4.) Insert Text Link\n"; cout << "5.) Change Font\n"; cout << "6.) Change Font Size\n"; cout << "7.) Change Font Color\n"; cout << "8.) Insert Horizontal Line\n"; cout << "9.) Insert a Break\n"; cout << "10.) Exit WebpageMakerv.1.1\n"; cout << "******************************\n"; } int main() { string font="Default"; string fontsize="Default"; string fontcolor="Default"; string text; string hrcolor; string align; string address; string alink; string vlink; string link; string path; string color; string name; string title; string meta; cout << "$!$!$!Welcome to Kc's Webpage Makerv.1.1$!$!$!\n"; cout << "\nPlease enter a filename.html: "; getline(cin, name); ofstream kcout(name.c_str()); kcout << "<html>\n<head>\n" <<""; cout << "Please Enter The Key words That Search Engines Will use to Describe Your page:\n"; getline(cin,meta); kcout<<"\n\n"; cout <<"\n\nPlease input a Description of you website:\n"; getline(cin, meta); kcout << "\n"; cout << "\n\nWhat is your Name: (Who is the author of this page)\n"; getline(cin,meta); kcout << "\n"; cout << "Press any key to continue...\n"; system("cls"); kcout << "\n\n"; cout << "What is the title of your WebPage: "; getline(cin ,title); kcout << title<<"\n\n</head>\n"; cout << "Press any key to continue...\n"; getch(); system("cls"); cout << "Do you wish to have a picture or color for your background?\n"; cout << "Type p or c here: "; string background; getline (cin ,background); cout << "Press any key to continue...\n"; getch(); system("cls"); if (background=="p") { cout << "Type the path in which the picture is located: "; getline (cin, path); cout << "Press any key to continue...\n"; getch(); system("cls"); kcout << "<body BACKGROUND=\""<<path<<"\" "; } else { cout << "Type in the Color or the number: "; getline (cin, color); cout << "Press any key to continue...\n"; getch(); system("cls"); kcout << "<body bgcolor=\"" << color << "\" "; } cout << "Link Color: "; getline (cin, link); cout << "Alink Color: "; getline (cin, alink); cout << "Vlink Color: "; getline (cin, vlink); cout << "Press any key to continue...\n"; getch(); system("cls"); kcout << "link=\"" << link <<"\" alink=\"" << alink<< "\" vlink=\""<< vlink << "\">\n"; for (;;) { menu(); cout << "Your Choice Number: "; string choice; getline (cin,choice); if (choice=="1") { system("cls"); cout << "Where is your Picture Located: "; getline (cin, path); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "How do you wish your picture to be aligned?\n"; cout << "Type center, right, left, here: "; getline (cin, align); kcout << "<p align=\"" << align << "\"><img src=\"" << path << "\"></p>\n"; } else if (choice=="2") { system("cls"); cout << "Where is your Picture Located: "; getline (cin, path); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "Please type in where it is to be linked: http://"; getline (cin, address); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "How do you wish your picture to be aligned?\n"; cout << "Type center, right, left, here: "; getline (cin, align); kcout << "<p align=\"" << align << "\"><a href=\"http://"<< address<< "\"><img src=\"" << path << "\" border=0></a></p>\n"; } else if (choice=="3") { system("cls"); cout << "Type your text here: "; getline (cin, text); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "How do you wish your text to be aligned?\n"; cout << "Type center, right, left, here: "; getline (cin, align); kcout << "<p align=\"" << align << "\">" << text << "</p>\n"; } else if (choice=="4") { system("cls"); cout << "What do you want your link to say? :"; getline (cin, text); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "Please type in where it is to be linked: http://"; getline (cin, address); cout << "Press any key to continue...\n"; getch(); system ("cls"); cout << "How do you wish your link to be aligned?\n"; cout << "Type center, right, left, here: "; getline (cin, align); kcout << "<p align=\"" << align << "\"><a href=\"http://" << address << "\">"<< text << "</a></p>\n"; } else if (choice=="5") { system ("cls"); cout << "Your Current font is: " << font << endl; cout << "Please Type in your new font: "; getline (cin, font); kcout << "<font face=\""<< font << "\">\n"; } else if (choice=="7") { system ("cls"); cout << "Your Current font color is: " << fontcolor<< endl; cout << "Please Type in your new font color: "; getline (cin, fontcolor); kcout << "<font color=\"" << fontcolor<< "\">\n"; } else if (choice=="6") { system ("cls"); cout << "Your Current font size is: " << fontsize <<endl; cout << "Please Type in your new font size: "; getline (cin, fontsize); kcout << "<font color=\""<<fontcolor<< "\">\n"; } else if (choice=="8") { system ("cls"); cout << "Do you want your line colored?\n"; cout << "Type y or n: "; string yesno; getline (cin, yesno); if (yesno=="y") { cout << "What color do you want your line to be: "; getline (cin, hrcolor); kcout << "<hr color=\""<< hrcolor << "\">\n"; } else { kcout << "<hr>\n"; } } else if (choice=="9") { system ("cls"); cout << "A break has been added!!\n"; cout << "Press any key to continue...\n"; getch(); kcout << "<br>\n"; } else if (choice=="10") { cout << "You have chosen To Exit, Are you Sure?\n"; string answer; cout << "Type y or n: "; getline (cin, answer); if (answer=="y") { system ("cls"); cout << "$!$!$!Thank you for using Kc's Webpage Makerv.1.1$!$!$!\n"; cout << "You new webpage is named " << name<< endl; kcout << "</body>\n</html>\n</NOSCRIPT>\n"; break; } } } return 0; }