Jump to content

  • Log In with Google      Sign In   
  • Create Account

String


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • This topic is locked This topic is locked
5 replies to this topic

#1 / chrispitt   Banned   

34
Like
-4Likes
Like

Posted 03 May 2013 - 01:18 AM

Write a method which will remove any given character from string?



#2   Members   

3097
Like
3Likes
Like

Posted 03 May 2013 - 01:34 AM

We cannot do your homework for you. However, if you provide what you have so far, and explain where you are having trouble, we would be happy to help.



#3   Members   

8298
Like
0Likes
Like

Posted 03 May 2013 - 04:23 AM

Even lmgtfy has grown old. Really, this very question gives me perfect first hit.

Edited by unbird, 03 May 2013 - 04:25 AM.


#4   Members   

681
Like
0Likes
Like

Posted 03 May 2013 - 04:33 AM

We cannot do your homework for you. However, if you provide what you have so far, and explain where you are having trouble, we would be happy to help.


Yes we can - we can give them wrong answers. :) Maybe then they'll attempt to do their homework for themselves.

#5   Members   

8229
Like
0Likes
Like

Posted 03 May 2013 - 07:56 PM

Well, the correct answer is, "No."

Does that help?
void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

#6   Members   

13127
Like
2Likes
Like

Posted 03 May 2013 - 08:35 PM

You didn't even specify the language, lol. But here is a template for you:

 

 

/* insert return type here */ stripChar(/* insert params here */)
{
    /* insert code here */
}

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.