- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
19 Posted Topics
Re: 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. | |
Re: could you post the HTML? | |
| |
Re: hey i'm a gamer myself, and I have to say that just because I once I start playing a game and can't stop till got it, doest'n mean I'm not in shape, in fact, I go to the GYM most of the week. Ah... and by the way, sorry about … | |
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* … | |
Re: 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? | |
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] | |
Re: you know that 5% its [I]integrer[/I] * 0.05 right? just make a [B]for[/B] for it. kind of like. [CODE]for(age = input_age;till 65 or else(age < final_age);age++) { year_money = money * 0.05; money = money + year_money; //you can do this one and the one above // in the same … | |
Re: in line 80 try [CODE]strcpy (strfinal, line.c_str());[/CODE] instead of [CODE]getline (myfile,line);[/CODE] | |
Re: have you try [CODE]if(!isspace)[/CODE] between line 18 & 19? | |
Re: 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 | |
Re: do your own homework | |
Re: First (line 32) error maide cause you close your cout on the line above, chek that out. Same mistake Line 43; And last mistake: function lastmouth should be an[B] int [/B]not a [B]void[/B] Edit the first two erros I was wrong you dou in fact print them out inside the … | |
Re: whats the first while for?? | |
Re: 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] … | |
Re: You can use the ctype lib. mmm... you might check this out [url]http://cplusplus.com/reference/clibrary/cctype/[/url] | |
Re: jaja i actualy did that the other day. what you need to do is a [B]for[/B] [I]bucle[/I] that compares the [B]string[/B] or [B]const char*[/B] looking for chars. I belive [B]if[/B](!ispace) should do the trick. | |
Re: what does your [B]for[/B] suposed to do? I don't think you get how the for works [B]for[/B](statement; condition; statement2) [B]for[/B] bucle will do the first statement at the begining. Then it will do the inside function (the code inside the [B]for[/B] till the condition returns [B]false[/B]. at the end of … | |
Re: The problem may be in the bits of the stream. Have you try file.clear()? |
The End.