943,453 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3264
  • C++ RSS
Jun 5th, 2004
1

help with an easy code

Expand Post »
undefinedundefinedHELP!
could anybody have this kind of code: code that writes numbers from 1 to 10 in a list and then deletes even numbers.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
jennie is offline Offline
1 posts
since Jun 2004
Jun 5th, 2004
1

Re: help with an easy code

I can probably help, you just need to let us know which language you are talking about. Sounds like JavaScript... and you forgot to define a variable. Please post the code.
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Jun 5th, 2004
0

Re: help with an easy code

Note this is in the C++ forum, Arizona Web However, we do need more information. How do you want to write these numbers? Do you want to write them to the screen? To an array? Remember, we can use modular division (%) to pick out even numbers. Mod division is like remainder division. So if we said, check to see if number (n % 2) == 0 it would divide n by 2, and if the remainder was equal to zero, we would know the number was even.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jun 7th, 2004
0

Re: help with an easy code

Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!
Tell me where my beans are!!!!!

Make sense,no?post with more info next time jennie
Reputation Points: 108
Solved Threads: 7
Posting Whiz in Training
FireNet is offline Offline
256 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: I need special stuff in my project like system("cls")
Next Thread in C++ Forum Timeline: Help newb :)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC