Sometimes, thinking out of the box helps a lot.
christina>you commented: The key to success is never to give up. But whenever I am close to finding it, some bastard changes the lock... (there's some profanity for you.) +0
Sometimes, thinking out of the box helps a lot.
If money is no issue, I actually found a book named "How to C++ program - Second Edition" by Deitel & Deitel
Too much spoon feeding. Text not on par with other professional books out there. The only thing good about those books are the practice problems. They are fun while they last.
I've never heard of Accelerated C++
Its a good book, with good ratings. Short, concise, terse and to the point.
Hey there buddy, welcome to Daniweb. :D
Hope you have a great time here..
synapse -> snap
sin(0) + cos (0) + 665 => 666
Thanks for the nudge in the right direction!
You are welcome..... ;)
I thought it was Some One Special... but I'm a girl. So yeah.
Hm... not bad, why didn't I think of it before... ;)
That's fine, but you ask ~sos~ what my name "VISHESH" means, he would tell you, and then you decide
But I really don't know... :twisted:
Nothing Is sound -> Switchfoot
punishment -> spanking
(how many?)
No personal questions please....:D
You are late for the meeting.
I put in a coffee mug.
Deal ? I don't gamble.
(just a question, are you male/female?)
Male with lot of kids....;)
You get your car thoroughly washed.
I put in some vinegar.
Right here right Now -> Fatboy Slim
Happiness is in our mind, the way we look at things.
Satan -> hell
I get to dance with the beautiful girls there.
I put in a drum stick.
drugs -> evil
till
Children are a funny lot, doing things no one would imagine.
reality as compared
that the moment
You get to see a cow eating the grass.
I put in a glass of water.
(I assume this is the continuation of the game
Oh yes, it sure is... Now, why would someone think otherwise...;)
Science is rad.
RAD in software development context basically stands for Rapid Application Development.
Over-worked compilers and lazy INTERPRETERS transformed code while enhancing a killer app.
It boils down
the way things
dod -> dodo
1) Codeblocks IDE integrated with MINGW compiler can be downloaded at http://www.codeblocks.org/downloads.shtml
2) Bloodshed Dev C++ IDE with MINGW port of GCC as its compiler at
http://www.bloodshed.net/devcpp.html
3) Visual Studio Express Edition
http://msdn.microsoft.com/vstudio/express/visualc/download/
I personally recommend the first one i.e. Code::Blocks.
Your problem area is:
strcpy (rstring, string);
rstring = (char*)malloc (sizeof (char) *strlen(string) + 1);
You need to first allocate the memory and then perform string copy and not the other way around.
Also, you don't need a temporary for this purpose. You can always do in place swapping.
char* reverse_string ( char* my_str )
{
char tmp = '\0' ;
int i, j ;
int str_length = strlen (my_str) ;
for ( i = 0, j = str_length - 1; i < j ; ++i, --j )
{
tmp = my_str [i] ;
my_str [i] = my_str [j] ;
my_str [j] = tmp ;
}
return my_str ;
}
Hey there lady, welcome to Daniweb. :D
Hello there buddy, welcome to Daniweb.
I don't have a clue what question you are asking.
function ch_in_string() -- there's a lot easier way to do that. std::string has a find method
bool ch_in_string(char ch, string s) { return s.find(ch) == string::npos) ? true : false; }
I guess that should be :
bool char_in_strin (string s, char ch)
{
// return true if char is found in string
return ( s.find (ch) != string::npos ? true : false ) ;
}
or in a simple way:
if ( my_string.find (my_char) != string::npos )
{
std::cout << "Character was found in the string \n" ;
}
else
{
std::cout << "Character NOT found in the string \n" ;
}
Blazing souls and morbid machines killed humanity while creating a KILLER submarine.
wicked conscience which
through with you.
You get to play golf.
I put in a squid.
critter`
css -> cia
You kids can think what you want. Enjoy while the candy machine is still working.
span -> div
Here without you - Three Doors Down
Bingo, your turn.
someone mention profanity?
http://www.daniweb.com/techtalkforums/thread5.html
That thread is 5 years old. Daniweb policies have changed a lot since then.
I have given you a warning.
You even posted 3 - 4 consecutive posts in the SPAM thread, without any reason just to increase post count.
I don't see anything wrong...
You get a neutron bomb.
I put in tidal wave.
'Motha' + *profanity was a phrase coined in my generation to insult someone by indicting their Mother (along with the person) as less-than-upstanding or respected.
This profanity.
Word to ya motha!
Christina, we would really appreciate if you could cut out the profanity. Such things are generally not tolerated, Daniweb being a global message board.
Love Hurts - Incubus