Jump to content
  • Advertisement
Sign in to follow this  
vioxx_1

very tricky or am i just stupid?

This topic is 4631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to write a code that will form part of a bigger code. I want to be able to enter these numbers (just random ones i chucked in): (1 2 3) (1 2) And then do this: (1 + 1) (2 + 2) (3 + 1) So I want to be able to apply the second list to the first list. And when the second list runs out, I want it to restart. But i'm unsure how? :( Please help.

Share this post


Link to post
Share on other sites
Advertisement
something like this

for int i = 0, j = 0; i < list1.size; i++, j++
if j >= list2.size
j = list2.size
list1 + list2[j]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
homework?

Share this post


Link to post
Share on other sites
Quote:
Original post by vioxx_1
yes. and stuck on it.
any one know scheme?


I do, but how would doing your homework for you benefit you?

Share this post


Link to post
Share on other sites
We didn't get a solution for this one because it was a challenge question.
So there is no answer.
Thats why i want to know it
i've been trying to figure it out for 3 hours

Share this post


Link to post
Share on other sites
plus it is part of a bigger code i'm writing.
if i know this it will benefit the rest of the code i have written.
all i need to know is this and the rest will work.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You're just stupid.

Share this post


Link to post
Share on other sites

This topic is 4631 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!