a simple problem......
Posted: Wed Dec 16, 2009 6:02 am
i use the <form method=post action=file.php>
<textarea................
submit the below textfile ,then $fp = fopen( "$time_start.c", "w" );
and fwrite the text to the file ,but why " -> \" ,,,,
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
cout << "Welcome to C++ Programming" << endl;
}
#include <iostream>
using namespace std;
void main()
{
cout << \"Hello World!\" << endl;
cout << \"Welcome to C++ Programming\" << endl;
}
<textarea................
submit the below textfile ,then $fp = fopen( "$time_start.c", "w" );
and fwrite the text to the file ,but why " -> \" ,,,,
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
cout << "Welcome to C++ Programming" << endl;
}
#include <iostream>
using namespace std;
void main()
{
cout << \"Hello World!\" << endl;
cout << \"Welcome to C++ Programming\" << endl;
}