# Gink

Member

295

100 Neutral

• Rank
Banned
1. ## Kazgoroth and Fruny are retards

yeah keep using acronyms that you make up stupid fuck
2. ## My farewell

I agree with the poster, there are many idiot moderators who are just hypocrits and dont enforce the rules for their buddies. They acn go fuck themselevs and their shitty elitist attitudes. (The elitist newbies Kazgoroth and Fruny who sit around and do nothing except be faggots)
3. ## consec. int. proof troubles

if I got 5k at the end, would I just divide it by 5 and be done?
4. ## consec. int. proof troubles

Quote:Original post by pinacolada All you have to do to prove that N is divisible by D is to prove that when you divide N by D, you get an integer. In other words, prove there exists an integer X such that N/D = X. Or better yet, prove there exists an integer X such that N = DX. I think I've already made it too easy. How so? It cant even be factored so that it can be divided. The only way I could think of is assuming one of them is a multiple of 5 then proving that but i doubt that's acceptable.
5. ## consec. int. proof troubles

Quote:Original post by jjd Try writing the integers as: 5n, 5n+1, 5n+2, 5n+3, 5n+4, where n = 0,1,... -Josh Why would you write it as that?
6. ## Recursion in games

Quote:Original post by TommySauder Just wondering if there's an actual use to recursion in games... seems kinda pointless and a complete waste of memory+cpu power. Recursion can simplify code, making hundred line algorithms into 20 line algorithms. Sometimes(not too often) it's the recursive algorithms that run faster than non-recursive due to less instruction generation
7. ## Prime Proofs

Thanks for the link, but I already wrote my own program and solved it but I havent been able to really disprove it. Not sure how I would do this because the equation can contain a variable that can be any number really.. no clue how to approach it without using something like induction.
8. ## Help with snake clone

you could just write a struct that maintains the current tiles coordinate then every x milliseconds you update all the other coordinates so that they're where the previous tile was then you can redraw the head of the snake. You can use most data structures for it imo, queues, deques, vectors,linked lists, whatever
9. ## How would I go about making a file menu bar?

You're basically screwed unless you buy microsofts 2000 dollar ide. Too much of that stuff is automated my VS and it's really hard to find out how to go around their rip-off ide(since all their books etc rely on their IDE and so do many tutorials)

12. ## help on linked list example

The one in main needs to be malloc'd too I think. Also make sure you dont have memory leaks by using free
13. ## Alpha value?

Here is some java applet I did a while ago that uses it, so you can see it in action if you want to compile it etc. import javax.swing.*; import java.awt.*; public class BallApplet extends JApplet{ BallThread b[] = new BallThread[20]; Color array[] = new Color[20]; public BouncingBallApplet(){ for(int x=0; x < b.length; ++x){ array[x] = new Color((int)(Math.random()*250),(int)(Math.random()*255),(int)(Math.random()*255),(int)(Math.random()*255)); b[x] = new BallThread((int)(Math.random()*800),(int)(Math.random()*60)); b[x].start(); } this.setSize(800,600); } public void paint(Graphics g){ g.setColor(array[(int)(Math.random()*array.length)]); g.fillOval(b[(int)(Math.random()*20)].xLoc,b[(int)(Math.random()*20)].yLoc,40,40); this.repaint(40); } public static void main(String args[]){ new BallApplet(); } public class BallThread extends Thread{ private int xLoc; private int yLoc; public BallThread(int x, int y){ xLoc = x; yLoc = y; } public void run(){ for(;;){ xLoc = (int)(Math.random()*800); yLoc = (int)(Math.random()*600); try{ this.sleep((long)(Math.random()*200)); }catch(InterruptedException e){ System.out.println(e.toString()); } } } } }
14. ## help on linked list example

Yeah, use malloc(sizeof(struct node))
15. ## somthing you dont hear to often

Quote:Original post by atomic_west Thank-you for describing to me the same process that I use the only difrence is the results, I get an error, you get a .com file. My question is why and can you help me to make this work? Im not stupid and I have spent 3 hrs a day and 5 days trying to find a solution so I can learn assembler and am getting tired of landing at square one. Once you download nasmide, go to the directory and type nasmide and it should open up. All you do is go to options/assembler, and set it to COM executable binary file. Also use ALINK as the linker for when you decide to use real mode.