okay, heres the program:
#include <Fstream.h>
#include <iostream.h>
void main()
{
char name[15],title[15],head[15];
cout << "Enter the name for the HTML document: ";
cin.get(name, 15);
cin.ignore (80,'\n');
cout << "Enter the title for the HTML page: ";
cin.get(title, 15);
cin.ignore (80,'\n');
cout << "Enter the header for the HTML page: ";
cin.get(head, 15);
cin.ignore (80,'\n');
ifstream htmld;
htmld.open("html.html", ios::in);
htmld >> "<html><head><title></title></head><body\n";
htmld >> title;
htmld >> "><center><h1>\n";
htmld >> head;
htmld >> "</h1></font></body></html>\n";
htmld.close();
}
*****************************************************
and heres the error message:
--------------------Configuration: project - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\Program Files\Microsoft Visual Studio\MyProjects\project\project\Debug\project.pch'
Compiling...
project.cpp
c:\program files\microsoft visual studio\myprojects\project\project\project.cpp(51) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
project.obj - 1 error(s), 1 warning(s)
Do you know whats wrong?????
#include <Fstream.h>
#include <iostream.h>
void main()
{
char name[15],title[15],head[15];
cout << "Enter the name for the HTML document: ";
cin.get(name, 15);
cin.ignore (80,'\n');
cout << "Enter the title for the HTML page: ";
cin.get(title, 15);
cin.ignore (80,'\n');
cout << "Enter the header for the HTML page: ";
cin.get(head, 15);
cin.ignore (80,'\n');
ifstream htmld;
htmld.open("html.html", ios::in);
htmld >> "<html><head><title></title></head><body\n";
htmld >> title;
htmld >> "><center><h1>\n";
htmld >> head;
htmld >> "</h1></font></body></html>\n";
htmld.close();
}
*****************************************************
and heres the error message:
--------------------Configuration: project - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\Program Files\Microsoft Visual Studio\MyProjects\project\project\Debug\project.pch'
Compiling...
project.cpp
c:\program files\microsoft visual studio\myprojects\project\project\project.cpp(51) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
project.obj - 1 error(s), 1 warning(s)
Do you know whats wrong?????