Posted by Bo0mer Sat 20th Jan 2007 14:39 - Syntax is PHP - 18 views
Download | New Post | Modify | Diff | Hide line numbers
Download | New Post | Modify | Diff | Hide line numbers
PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected T_STRING in post on line 3
Parse error: syntax error, unexpected T_STRING in post on line 3
-
#include
-
#include
-
using namespace std;
-
int index(char from[32767], int code, int startpos)
-
{
-
int i, j = 0;
-
if (startpos != 0)
-
int k = startpos;
-
{
-
if ((int)from[i] == code)
-
{
-
i = j; break;
-
}
-
}
-
return j;
-
}
-
-
int main()
-
{
-
char from[32767];
-
char find[1];
-
cin >> from;
-
cin >> find;
-
int startpos = 0;
-
//cin >> startpos;
-
cout << index(from, (int)find[0], startpos);
-
-
return 0;
-
}
-
PermaLink to this entry https://pastebin.co.uk/9364
The following amendments have been posted:
-
Bo0mer (Sat 20th Jan 2007 14:39)
Posted by Bo0mer Sat 20th Jan 2007 14:39 - Syntax is PHP - 18 views
Download | New Post | Modify | Diff | Hide line numbers
Download | New Post | Modify | Diff | Hide line numbers