Search found 53 matches
- Sun Feb 15, 2009 5:15 pm
- Forum: Programming Discussion
- Topic: Look at this javascript code please!!!!!!
- Replies: 12
- Views: 2403
Re: Look at this javascript code please!!!!!!
I dont know if I got it right.... you want the answer for this question? First of all, I read your post about not being able to figure out programming and stuff, and I have to tell you that looks like you are not REALLY trying. You should get more out of yourself, dedicate more, even if it is not in...
- Fri Feb 13, 2009 9:14 pm
- Forum: Programming Discussion
- Topic: First programming class project... help me!
- Replies: 9
- Views: 1167
Re: First programming class project... help me!
Now all I need to know is how to make this file an exe like when I install games and stuff... You said you are using Microsoft Visual C#? I am using the Microsoft Visual Studio 2008 so it should look alike (I guess), here is how I do it... (I believe it doesnt have this feature in the express editi...
- Fri Feb 13, 2009 9:11 am
- Forum: General/Off-Topic
- Topic: Career decisions...
- Replies: 25
- Views: 2070
Re: Career decisions...
Screw Blizzard. Okay, I only say that because I'm a WoW hater.. I hate WoW too and all its sick fans, but I love Diablo, so I can't hate Blizzard xD Trufun, I think you should stick with your job now, think carefully about the options and choose one of them... then in the free time you keep looking...
- Fri Feb 13, 2009 7:18 am
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
:lol: OK then, with recursion: #include <iostream> #include <conio.h> using namespace std; void divisible(int number, int max) { bool divBy3 = ((number % 3) == 0); bool divBy5 = ((number % 5) == 0); if(divBy3 && !divBy5) cout << "foo\n"; else if(!divBy3 && divBy5) cout << ...
- Thu Feb 12, 2009 6:08 pm
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
Hey Arce.. have you tried my code yet?? ... it is there on the first page!!
BTW, can you pm me your solution for the coin problem written in C/C++ ??
thanks in advance
BTW, can you pm me your solution for the coin problem written in C/C++ ??
thanks in advance
- Thu Feb 12, 2009 4:23 pm
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
Your first attempt was a total fail :( It printed "FooBar" before 1 and your app stopped at 99 which is an off by one error. This make it a fail. You second attempt much better you successfully did a recursive version and no off by one error. So 10 points for the recursive and I gonna ass...
- Thu Feb 12, 2009 3:59 pm
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
Nice... thanks to this problem and Ginto8's answers I got to know about the modulus operator '%' and how to implement it O.o :) Now, what was the grade of my first trial ?? and the grade of this trial now?? xD Here it is: P.S.: I dont know if this is a "recursion" but I have tried, and loo...
- Thu Feb 12, 2009 9:35 am
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
I tried to work it out real quick and here is what I got :) #include <stdio.h> int number = 1; int divided3 = 0; int divided5 = 0; int main() { for(int a = 1; a < 101; a++) { divided3 = number / 3; divided5 = number / 5; if(number == divided3 * 3 && number == divided5 * 5) { printf("Foo...
- Thu Feb 12, 2009 9:07 am
- Forum: Programming Discussion
- Topic: Simple Algebra Problem
- Replies: 7
- Views: 688
Re: Simple Algebra Problem
It's simple linear equations (Edit: BTW this is crap they're teaching the high math class in MY school -_-'); the equation is: y = 35 - 5x Haha thanks Ginto works perfectly :P y = -5x + 35 I knew I had to use a negative since they have an inverse relationship.. just didn't know where, how did you d...
- Wed Feb 11, 2009 5:24 pm
- Forum: Programming Discussion
- Topic: Simple Algebra Problem
- Replies: 7
- Views: 688
Re: Simple Algebra Problem
If the equation you want to simplify is "y = (25x - 25) - (5x - 10)", then you have: y = 25x - 25 - 5x + 10 //after distributing the - sign on the second parenthesis, then y = 20x - 15 To check it is right... x = 2 give y = 25 y =( 20 * 2) - 15 y = 40 - 15 y = 25 So the simplified equation...
- Wed Feb 11, 2009 11:04 am
- Forum: General/Off-Topic
- Topic: Youtube tomfoolery
- Replies: 24
- Views: 2313
Re: Youtube tomfoolery
Ah noooo .... I did it wrong... I watched your video first, and thought "WTH, this guys has serious mental problems lol" ... then I watched the original video and got the joke lol ...
it was funny after all !!
What can I say!? you would be a good actor lol xD
it was funny after all !!
What can I say!? you would be a good actor lol xD
- Wed Feb 11, 2009 8:21 am
- Forum: Programming Discussion
- Topic: Programming Practice
- Replies: 56
- Views: 5854
Re: Programming Practice
Hey Arce, Very nice idea of yours ... I got pretty excited about it and with how I could improve my programming with those excercises!! I have done the "coin handler" one, it works and shows every possibility, but it is not effective I guess, since I made it divided in several functions......
- Tue Feb 10, 2009 5:43 pm
- Forum: Programming Discussion
- Topic: Problems with my engine!!
- Replies: 10
- Views: 865
Re: Problems with my engine!!
Ok... because of so many edits, here it goes the solution... The surfaces, both "source" and "destination" must be a member of the struct Engine ... so now that I declared them there, I can load and render and flip any way I want and the program will work and not crash! Sorry for...
- Tue Feb 10, 2009 5:09 pm
- Forum: Programming Discussion
- Topic: Problems with my engine!!
- Replies: 10
- Views: 865
Re: Problems with my engine!!
Now, can someone explain to me... why does the program crash when I try flipping a 'static surface'?? If I put all that engine code in the same source file, and take out all the 'static' things, the rendering will be done fine... why that? EDIT: It seems that the problem is not the 'static', because...
- Tue Feb 10, 2009 5:06 pm
- Forum: Programming Discussion
- Topic: Problems with my engine!!
- Replies: 10
- Views: 865
Re: Problems with my engine!!
That is weird, because I went to check my other project code and look what I have (working fine): tileSheet = IMG_Load("Assets/tile_sheet02.png"); ninja = IMG_Load("Assets/ninja_sprite.png"); square = IMG_Load("Assets/square.png"); I have the image named "interface...