Jump to content

Need help as soon as possible

- - - - -

  • Please log in to reply
3 replies to this topic

#1
fantasticbag

fantasticbag

    Newbie

  • Members
  • PipPip
  • 10 posts
Hi guys, i am a beginner in assembly and i have to write code wich lets you to input string and print the position of every number. i know how to write code to imput string and check if the symbol is number but i have no idea how to print the position. Can anybody help me?!!replicahandbagsReplica Louis vuitton handbags|Wholesale replica handbags|Designer replica bags|--fantastic-replica.net
many many thanks.

Edited by fantasticbag, 05 January 2010 - 01:57 AM.


#2
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
  • Programming Language:Java, C#, PHP
  • Learning:C, C++, C#, PHP, Transact-SQL, Assembly, Scheme
Gosh, you are asking a lot of questions without making any attempt at all.

I'll be nice and give you a hint this time... look through the string and check if the character is a digit if it is output the position of it. There isn't anything hard about this.

String s ="abc1234bd43";
for (int i=0;i<s.length();i++) {
       if(Character.isDigit(s.charAt(i))) {
             System.out.println(i);
       }
}


#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Don't bother, fantasticbag is just copying and pasting from other forums. Probably just a spammer.
sudo rm -rf /

#4
JewFro297

JewFro297

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 224 posts
yeah one of his questions about assembly had an answer in it...




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users