what kind of DOM element is debugPut?

try this: http://jsfiddle.net/eT2a4/

I made this so that if you writte "img" it will do your thing.

You can change that for the string you want, or you can even make a switch and have multiple key words.

could you post the HTML?

commented: ok...check the thread i just posted it +0

Sorry I found the problem, how can I close this post?

okey... MUO_char_to() returns 0 when it should return 4

It may be the compiler, but it just doesn't work.
The program it's suppose to return the string "a m".

[CODE]

include <iostream>

include <string>

int main(int argc, char *argv[])
{
std::string x = "hola mundo";
std::cout << fromto(x.c_str(),"l","u") << std::endl;
return 0;
}
[/CODE]

[CODE]
const char fromto(const char str,const char from,const char to,bool include_from_and_to = true)
{
if(!MUO_char_from(str,from,include_from_and_to)){return "\0";}
int x = MUO_char_to(str,from,to,include_from_and_to);
if(x == 0){return "\0";}
if(include_from_and_to){x += strlen(to);}
char res = new char[x];
int y = 0;
for(;y < x;y++){res[y] = str[y];}
res[y] = '\0';
return res;
}
[/CODE]
[CODE]
bool MUO_char_from(const char
&str,const char &from,bool &include_from_and_to)
{
int x;
int y = strlen(from);
while(
str != '\0')
{
x = 0;
while(str[x] == from[x])
{
x++;
if(y == x)
{
if(include_from_and_to){return true;}
else
{
x = 0;
while(x < y)
{
str++;
x++;
}
return true;
}
}
}
str++;
}
return false;
}
[/CODE]
[CODE]
int MUO_char_to(const char &str,const char &from,const char* &to,bool &inlcude_from_and_to)
{
unsigned int x = 0;
if(inlcude_from_and_to){x = strlen(from);}
unsigned int y = x,z = 0;
while(str[y] != '\0')
{
while(str[x] == to[z])
{
if(to[x] == '\0'){return y;}
x++;
z++;
}
y++;
x = y;
z = 0;
}
return 0;
}
[/CODE]

sorry for posting the hole thing, i'm not sure whts the problem.

whell there's something messing with your int right there.

is the operator [] of the class using a reference to int x?? 'cause if it's, the problem might be there.

you got it all wrong I mean realy
[CODE]for (int x=0;[/CODE]
can't you declare it outside the loop??
and second what exactly does Paso::clear() do?

thanks for both replys... I think I''ll go with
[CODE]int intX = 0;
while (intX != intSize)
{
array[ intX ] = array[ intX + 1 ];
++intX;
}
[/CODE]

very simple, is there any speed or memory diference beetwen this two whiles?
[CODE]
int x = 0, y = 0;
while(x < size)
{
y++;
array[x] = array[y];
x++;
}
[/CODE]
and
[CODE]
int x = 0;
while(x < size)
{
array[x] = array[x++];
}
[/CODE]

in line 80 try
[CODE]strcpy (strfinal, line.c_str());[/CODE]
instead of
[CODE]getline (myfile,line);[/CODE]

[CODE]#include <iostream>

include <fstream>

using namespace std;
int main()
{
char c;
int i;
int newstar[26]={0};
int sum[26]={0};
do
{
c=cin.get();
if(if(!isspace))
{
if(isalpha(c))
c=tolower(c);
{
for (i=97;i<123;i++)
{
if (c==(char)i)
{
sum[c-97]++;
goto start;
}
}
}
for(int x=97;x<123;x++)
{
newstar[x-97]=sum[x-97]80/389;
cout<<(char)x<<" "<<sum[x-97];
for (int star=0; star<newstar[x-97]; star++)
{
cout<<"
";
}//8e
cout<<endl;
}//7e
}//3e
}//end do 2e
while (c != EOF);
}[/CODE]

sorry I edit my comment while you reply
and sorry for saying that i was i bit sleepy

have you try
[CODE]if(!isspace)[/CODE]
between line 18 & 19?

do your own homework

whele your problem is that when does this
[QUOTE]while (getline(plainText, plainLine)){[/QUOTE]
thats where your first paragraph goes... change for
[CODE]while (!plainText.eof())[/CODE]
and it will work

[QUOTE]i think the problem is in line 31 bcause after the first time the pointer points at null [/QUOTE]
you could use an intregrer comparation instead... while(intr <= size)

shouldn't use pFront = node_name.front()??
show the hole code

whats the first while for??

I didn't try to compile the code but...
First you did not change the [B]while[/B] as narue said
[QUOTE]while ( getline ( plainText, plainLine ) ) {[/QUOTE] instead of [QUOTE]while (getline(plainText, plainLine)){[/QUOTE]
Second should try
[CODE]string plainLine, inputPath, outputPath;//all in one [/CODE]
And third:
[QUOTE]
[CODE]ofstream cipherText(outputPath.c_str());
ofstream cipherText(outputPath.c_str());[/CODE]
[/QUOTE]
No ios::in nor ios::out... I belive your stream does nothing

[[QUOTE]
string sentence = "";
string aWord = "";
[/QUOTE]
no need to empty the string... the are already empty.
And by the way isn't [B]3[/B] the prime number of 123456789??

i just assumed you were a windows user... this time I'm the one who apology.

just erase the [B]system("PAUSE")[/B]
what attachments???? blank spaces???

if this doesn't work i give up
[CODE]#include <iostream>

include <iomanip>

using namespace std;

//global constants
const int SIZE = 12;
double rainfall[SIZE];
double averages[SIZE];
//function prototypes
bool getAverageRainFall(const char test);
bool getExactRainFall(const char
working);
void displayResults(const char* got_it);
int printMonth(int month);
// PRECONDITION: month holds an integer 1-12
// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
// printed to the standard output.

int main()
{
getAverageRainFall("test");
getExactRainFall("working");
displayResults("got_IT");
return 0;
}

bool getAverageRainFall(const char* test)
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the average rainfall: ";
printMonth(x);
cin >> averages[x];
}
}

bool getExactRainFall(const char* working)
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the actual rainfall: ";
printMonth(x);
cin >> rainfall[x];
}
}

void displayResults(const char* got_it)
{
double difference;
difference = rainfall - averages;
cout << "Month Actual Average Difference";
for(int n=0; n<SIZE; n++)
{
cout << endl << setw(7) << printMonth(n) << setw(8) << rainfall << setw(9) << averages << setw(10) << difference << endl;
system("pause");
}
}

int printMonth(int month)
{
cout.width(8);
switch(month)
{
case 0:
cout << "Jan ";
break;
case 1:
cout << "Feb ";
break;
case 2:
cout << "March ";
break;
case 3:
cout << "April ";
break;
case 4:
cout << "May ";
break;
case 5:
cout << "June ";
break;
case 6:
cout << "July ";
break;
case 7:
cout << "Aug ";
break;
case 8:
cout << "Sept ";
break;
case 9:
cout << "Oct ";
break;
case 10:
cout << "Nov ...

pufff i got this so far
[CODE]#include <iostream>

include <iomanip>

using namespace std;

//global constants
const int SIZE = 12;

//function prototypes
bool getAverageRainFall(double rain[SIZE]);
bool getExactRainFall(double rain[SIZE]);
void displayResults(const double actual[SIZE], const double average[SIZE]);
int printMonth(int month);
// PRECONDITION: month holds an integer 1-12
// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
// printed to the standard output.

int main()
{
double rainfall[SIZE];
double averages[SIZE];
getAverageRainFall(averages);
getExactRainFall(rainfall);
displayResults(rainfall, averages);
return 0;
}

bool getAverageRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the average rainfall: ";
printMonth(x);
cin >> rain[x];
}
}

bool getExactRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the actual rainfall: ";
printMonth(x);
cin >> rain[x];
}
}

void displayResults(const double actual[SIZE], const double average[SIZE])
{
double difference;
difference = actual - average;
cout << "Month Actual Average Difference";
for(int n=0; n<SIZE; n++)
{
cout << endl << setw(7) << printMonth(n) << setw(8) << actual << setw(9) << average << setw(10) << difference << endl;
system("pause");
}
}

int printMonth(int month)
{
cout.width(8);
switch(month)
{
case 0:
cout << "Jan ";
break;
case 1:
cout << "Feb ";
break;
case 2:
cout << "March ";
break;
case 3:
cout << "April ";
break;
case 4:
cout << "May ";
break;
case 5:
cout << "June ";
break;
case 6:
cout << "July ";
break;
case 7:
cout << "Aug ";
break;
case 8:
cout << "Sept ";
break;
case 9:
cout << "Oct ";
break;
case 10:
cout ...

[QUOTE=moods125;1065225]now i cant get my table to work correctly it still complies and i can enter in the rain falls but it doesn't show up in my table i am getting some weird things coming up so if someone can compile this and run it and see what the problem is this time and can tell me that would be great[/QUOTE]
jaja okey but it will take a while

Are you sure??? i just compile it
here
[CODE]#include <iostream>

include <iomanip>

using namespace std;

//global constants
const int SIZE = 12;

//function prototypes
bool getAverageRainFall(double rain[SIZE]);
bool getExactRainFall(double rain[SIZE]);
void displayResults(const double actual[SIZE], const double average[SIZE]);
int printMonth(int month);
// PRECONDITION: month holds an integer 1-12
// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
// printed to the standard output.

int main()
{
double rainfall[SIZE];
double averages[SIZE];
getAverageRainFall(averages);
getExactRainFall(rainfall);
displayResults(rainfall, averages);
return 0;
}

bool getAverageRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the average rainfall: ";
printMonth(x);
cin >> rain[x];
}
}

bool getExactRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the actual rainfall: ";
printMonth(x);
cin >> rain[x];
}

}

void displayResults(const double actual[SIZE], const double average[SIZE])
{
double difference;
difference = actual - average;
cout << "Month Actual Average Difference";
for(int n=0; n<SIZE; n++)
{
cout << setw(7) << printMonth(n) << setw(8) << actual << setw(9) << average << setw(10)
<< difference;
}
}

int printMonth(int month)
{
cout.width(8);
switch(month)
{
case 0:
cout << "Jan";
break;
case 1:
cout << "Feb";
break;
case 2:
cout << "March";
break;
case 3:
cout << "April";
break;
case 4:
cout << "May";
break;
case 5:
cout << "June";
break;
case 6:
cout << "July";
break;
case 7:
cout << "Aug";
break;
case 8:
cout << "Sept";
break;
case 9:
cout << "Oct";
break;
case 10:
cout << "Nov";
break;
case 11:
cout << "Dec";
break;
}
}
[/CODE]

[QUOTE=besbis cat;1065188]hmmm, sorry bt seems itz not write answer..[/QUOTE]
:angry::angry::angry: Yea well how about this
[CODE]#include <iostream>
using namespace std;

int main()
{
string name;
double money;
int age;
double pay;
cout << "Please enter your name: ";
getline(cin,name);
cout << "Enter your age: ";
cin >> age;
cout << "Enter the amount of money that you have: ";
cin >> money;
cout << "Enter how much money you earn by year: ";
cin >> pay;
for(true;age <= 65; age++)
{
pay = pay + (pay * 0.05);
money = money + pay;
}
cout << "The calculated money is: " << money << endl;
system("PAUSE");
return 0;
}[/CODE]

You can use the ctype lib.
mmm... you might check this out [url]http://cplusplus.com/reference/clibrary/cctype/[/url]