Hi freakysid,
I really HAAAAAAAAATE the posts being too wide. What a blunder in the coding.
By the way....what is wrong with this code?
!!@#$@$.php.java.html.cpp
PHP Code:
<?php
$pattern2="^" . $var . "[\.,:]";
$pattern3=$var . "[\.,:]$";
//$pattern4=$var . " ";
echo "$pattern1|$pattern2|$pattern3" . "....";
$new_paragraph=eregi_replace("$pattern1|$pattern2|$pattern3", $replace, $paragraph);
echo $new_paragraph;
public class Dates
{
public static void main(String[] args)
{
String[] dates = {"10/39/99", "02/28/00"};
StringBuffer[] fdates = new StringBuffer[10];
String[][] sections = new String[10][3];
int index = 0;
int[] count = new int[3];
}
}
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Title</title>
</head>
<body>
<table>
<tr><td style="background-color:blue;">test</td><td style="background-color:yellow;">test</td></tr>
<tr><td style="background-color:yellow;">test</td><td style="background-color:blue;">test</td></tr>
</table>
</body>
</html>
#include <iostream>
using namespace std;
int main()
{
int number = 0u;
cout << endl
<< "Enter an integer which you want the last bit switched: "
<< endl;
cin >> number;
int mask = 1;
int switched = 0;
switched = number^mask;
cout << "Your number with the last bit switched is: "
<< switched
<< endl;
return 0;
}
for (int i=0; i< 2; i++)
{
for (int j=0; j< 3; i++)
{
if (dates[i].indexOf('/') != -1)
{
sections[i][j] = dates[i].substring(index, dates[i].indexOf('/');
index = dates[i].indexOf('/') + 1;
count[j]++;
}
else if (dates[i].indexOf('/') == -1 & count[j] < 3)
{
System.out.println("Error in data. Must be in this format: month/day/year");
}
}
}
for (int i=0; i< 2; i++)
{
switch (sections[i][1])
{
case "01":
case "1":
fdates[i] = "1st ";
break;
case "02":
case "2":
fdates[i] = "2nd ";
break;
case "03":
case "3":
fdates[i] = "3rd ";
case "04":
case "4":
fdates[i] = "4th ";
}
switch (dates[i].substring(0, 2)
{
case "01":
fdate[i] = "January"
}
}
}
}
?>
Bookmarks