Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
1 Commented Post
~9K People Reached
Favorite Tags

19 Posted Topics

Member Avatar for Stealthbird97

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.

Member Avatar for Stealthbird97
0
155
Member Avatar for oomotayo
Member Avatar for noobeyne
Member Avatar for newsguy

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 …

Member Avatar for JackRT
2
592
Member Avatar for gastonci

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* …

Member Avatar for gastonci
0
201
Member Avatar for caribedude

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?

Member Avatar for caribedude
0
103
Member Avatar for gastonci

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]

Member Avatar for gastonci
0
84
Member Avatar for besbis cat

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 …

Member Avatar for wareagleau
-3
162
Member Avatar for .:Pudge:.

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

Member Avatar for programmersbook
0
127
Member Avatar for T-Dogg3030
Member Avatar for T-Dogg3030
0
149
Member Avatar for BobRoss

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

Member Avatar for BobRoss
0
160
Member Avatar for timlo
Member Avatar for moods125

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 …

Member Avatar for moods125
0
201
Member Avatar for miag
Member Avatar for BobRoss
Re: File

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] …

Member Avatar for jonsca
0
111
Member Avatar for gogo000
Re: c++

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

Member Avatar for mrnutty
0
95
Member Avatar for mariusmssj

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.

Member Avatar for mrnutty
0
172
Member Avatar for Dex02

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 …

Member Avatar for Dex02
0
112
Member Avatar for samarth
Member Avatar for gastonci
0
271

The End.