Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

String

4: Adsense

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 Ectara   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 unbird   Members   

8307
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 dave j   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 Khatharr   Members   

8633
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 Bacterius   Members   

13164
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.