107 Topics

Member Avatar for mrnutty

What do you guys think of this new daniweb design? Personally, I'm not very fond of it. The simpler the better. I just don't like the design. It needs more "flavor" or something. Idk, what do you guys think?

Member Avatar for jwenting
1
189
Member Avatar for mrnutty

Why would they ever [URL="http://www.youtube.com/watch?v=o_psomRhMOQ"] ban this sport[/URL]. Its so easy to play. You can play with your families. You can play with friends. Hell, you can even play with a random stranger walking down the street.

Member Avatar for Lardmeister
1
67
Member Avatar for mrnutty

The objective is to make it last long as possible. The rules is that I say ONE word, and another person has to say ONE word which will be a part of a sentence when more word comes. A sample run : [ICODE]Post# The word posted --------------------------------- 1 Hello 2 …

Member Avatar for maydhyam
0
109
Member Avatar for mrnutty

We are all tired of from our daily lives. So I suggest to sit back and play this game. I present here a hangman game( text version ) for your enjoyment. There might be some bugs as I haven't throughly tested it, so sorry if you find it( I'm sure …

Member Avatar for mrnutty
1
290
Member Avatar for mrnutty

[URL="http://www.codinghorror.com/blog/archives/000781.html"] This [/URL] is a little hard for me to believe. Thankfully, I am not one of those applicants, nor ever will be.

Member Avatar for vaultdweller123
0
1K
Member Avatar for mrnutty

You know you are a geek you find it more natural to count numbers in the power of 2 then decimal.

Member Avatar for mrnutty
1
329
Member Avatar for mrnutty

Some background. We all used the string class, but some of you might not know that string is just a typedef of basic_string. In fact here is the typedef you might find when looking in the XString library. [code] typedef basic_string<char, char_traits<char>, allocator<char> > string; [/code] This code snippet shows …

Member Avatar for Dave Sinkula
2
3K
Member Avatar for mrnutty

My friend passed it onto me and its only right I pass it onto [URL="http://www.maniacworld.com/maze_game.htm"] you [/URL]. Its the most simple game. Can you pass all 4 levels?

Member Avatar for Will Gresham
0
62
Member Avatar for mrnutty

In this challenge there are 3 question, beginner, intermediate, and others. Beginner: [b] [ICODE]1) Find the sum of all Natural numbers that are a multiple of 3 or 11, from 1 to 100,000. [/ICODE][/b] Intermediate: [b] [ICODE]The prime factors of 13195 are 5, 7, 13 and 29. What is the …

Member Avatar for mrnutty
0
146
Member Avatar for mrnutty

More bullshit, what does it really matter? A new [URL="http://news.nationalgeographic.com/news/2009/10/091001-oldest-human-skeleton-ardi-missing-link-chimps-ardipithecus-ramidus.html"]Missing Link[/URL] has been found. If what they say is true then all that I have been taught by be anthropology teacher and alike has been bUllShit. Its all crap. What does it really matter if we "come" from moneys or …

Member Avatar for VernonDozier
-1
269
Member Avatar for mrnutty

So I was thinking, we should have a challenge of the day or week, for a specific language, that poses a unique problem. This way people can practice, and others can learn maybe something new from someone else's idea. What do you guys think ? For example in our C++ …

Member Avatar for cwarn23
1
283
Member Avatar for mrnutty

Some of us were having some discussion about posting some challenge question for the community to participate in. This way people could learn from the more experienced person's solution. Here is the question that : Intro : [b] [ICODE]A multiplied Sum Of digits is the sum of the digits of …

Member Avatar for mrnutty
0
148
Member Avatar for mrnutty

Just wondering what other programmer do in their free time. This is basically what I do in my free time : 1) Procrastinate ( of course ) 2) Try to learn more things about programming 3) Practice programing 4) Play NBA2k9 and/or Call of Duty : modern warfare 2 (awesome …

Member Avatar for ddanbe
1
309
Member Avatar for mrnutty

[URL="http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918"] O M G[/URL]

Member Avatar for ddanbe
0
246
Member Avatar for mrnutty

[URL="http://www.horstmann.com/cpp/pitfalls.html"]This [/URL] is a good read. Read it and learn from it.

Member Avatar for zortec
1
78
Member Avatar for mrnutty

[URL="http://thedailywtf.com/Articles/Vector_Oriented_Programming.aspx"]This is too hilarious.[/URL]

1
42
Member Avatar for mrnutty

I use netbeans but was wondering if anyone knew how to add a Java compiler to visual studio 2008?

Member Avatar for mrnutty
0
150
Member Avatar for mrnutty

Since thanksgiving is soon here, I thought we would have our own daniweb feast, specifically an obscure feast. Remember that only obscure code is valid in our obscure table. I'll start : [code] #include<iostream> #include<string> using namespace std; ostream& ____ = cout; string _____ = "hello";string ______ ("world"); string _______ …

Member Avatar for Ene Uran
4
113
Member Avatar for mrnutty

[B]If yu wer strnded in a is_land ten wat wud u brin , u gt at mst fiv tings and no triky buzzness, understand?[/B] I would bring (1)Angelina Jolie, then my (2)laptop (with infinite battery life, that catches wifi from earth to outerspace), a (3)knife, an a (4)manual on how …

Member Avatar for Grn Xtrm
-2
127
Member Avatar for mrnutty

The function adds two large numeric string together, like "12345667" + "12345678" = ? It does not have complete error checking, I'll leave that up to you. It should work but I am prone to bugs, so do advise if bugs are found. Included are also helper function that helps …

Member Avatar for mrnutty
4
618
Member Avatar for mrnutty

It uses the idea of Seive of Eratosthenes. The code is basically does the following to find Prime Numbers : 1) Populate Array from 0 - > MAX 2) Find 1st Prime, which is 2 3) Delete all Multiple of 2, i.e set it to false 4) Find next prime, …

0
378
Member Avatar for mrnutty

Does anyone know how to correctly add a 3rd party library to NetBeans? I have NetBeans 6.7.1 The library is from this site : [URL="http://wps.aw.com/aw_sanders_oopjava_1/36/9390/2403930.cw/index.html"]Link[/URL]. Its called wheels, and its for my class. It comes in a zip file. What I tried was this : 1) Set the zip file …

Member Avatar for masijade
0
896
Member Avatar for mrnutty

I haven't ever used CLA so I had to ask. For simplicity sake, Say I have a program that takes in at most 5 arguments. The arguments from args[1] - args[4] has to be some numbers. These number will be used for something, say to calculate its average. How could …

Member Avatar for mrnutty
0
173
Member Avatar for mrnutty
0
333
Member Avatar for mrnutty

Random number generator under its own namespace. Its a sample program.

0
301
Member Avatar for mrnutty

Can someone help me out. I haven't dealt with pointer function much. Here is the class definition for which it resides, although its only part of it. [code] template<typename Type> class vec2D { private: bool (*drawFunc)(unsigned int ID); unsigned int Col_id; public: //Enables each object member to have its own …

Member Avatar for mrnutty
0
142
Member Avatar for mrnutty

Forgive me Admin. Now that I got your attention. I just wanted to say one thing. PLEASE put meaningful titles on your thread. No, [U]Help[/U], [U]Urgent!![/U], I[U] HATE C++[/U], or even worse "[U]UNTITLED[/U]". Instead, put titles, like [U]help creating a recursive add function[/U], or [U]help I don't understand this homework …

Member Avatar for John A
0
161
Member Avatar for mrnutty

I tried to install the devil library but I am getting some errors. Here are the steps that I am taking to install it : [code] Let me see if I did this correctly : Steps : 1) download DevIL 1.7.8 for windows 32 bit 2) extract the info to …

Member Avatar for AlbertPi
0
402
Member Avatar for mrnutty

I am using c++/opengl. Can someone help me with a wrapper for a 2d ball representation. I have one but its not complete. I need other stuff like momentum and collision response. Can you help me implement this?

Member Avatar for MattEvans
0
139
Member Avatar for mrnutty

How could one share a .exe that loads textures. I am using c++ and openGL. I want to share the .exe that I made using rapidshare.

Member Avatar for tux4life
0
84
Member Avatar for mrnutty
Member Avatar for mrnutty

I know that it returns the remainder but what happens when say : x% y, where x,y is int and x<y. I see that results in x; For example, 3% 101232 = 3 and similarly 3%y, where y is greater than 3 yields 3. Why is that> Just wonder the …

Member Avatar for chaines51
0
283
Member Avatar for mrnutty

I just started a few days ago. I am troubled with the input in c#, even though I got it to work. Any comment would be helpful. Its a Number Guessing game and a tic-tac-toe game. [code] using System; namespace GAME { #region NUMBER GUESSING GAME public class Number_Guess { …

Member Avatar for skatamatic
0
399
Member Avatar for mrnutty

I am trying to rotate the object by a input of key. I dont know why the object is not rotating. I used glRotatef(x,0,0,1); //where x is declared as float : here is my code : [code] #include<GL/glut.h> GLfloat x = 10; void initGL() { glEnable(GL_DEPTH); glDepthFunc(GL_LEQUAL); glClearDepth(1.0f); } void …

Member Avatar for MattEvans
0
118
Member Avatar for mrnutty

how would you seperate a character in a string. For example : string ="2x^2+8" how would i seperate the string into '2' 'x' '^' '2' '8'. so I could find its derivative.

Member Avatar for Comatose
0
105
Member Avatar for mrnutty

hi, I am confused on why my texture came out a different color? I have a bmp file of a cloud, skyblue color on the background and white clouds. BUt when i load it on a square the color becomes pinkish for background and cloud is white? Why pink-ish? here …

0
54
Member Avatar for mrnutty

hi, I am trying to draw a circle without using cos,sin; Mainly by the formula x^2+y^2 = r^2; this is my code , but for some reason its not working. any help? note: I thought this code would draw the upper halve fo the portion. float xCor,yCor; xCor=yCor =0.0; float …

Member Avatar for MattEvans
0
154
Member Avatar for mrnutty

hey, I am just learning textures in OpenGl, from a certain tutorial site : [URL="http://www.spacesimulator.net/tut3_texturemapping.html"]http://www.spacesimulator.net/tut3_texturemapping.html[/URL] the site had a good tutorial for texture, but after loading the .bmp picture, it goes to create its own function for vertex3f and such ( I think). In any matter, I have not learned …

Member Avatar for mrnutty
0
292
Member Avatar for mrnutty

i am writing a code that will rotate the polygon but it seem as if it is not working any help? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; GLfloat fPent = 0.0; // for rotating pentagon; GLfloat fSqr = 0.0; // for rotating square; void handleKeyPress(unsigned char key, int x, …

Member Avatar for sciwizeh
0
130
Member Avatar for mrnutty

I am practicing lighting and smooth shading. THe problem is that this code only shines the light for front and the right side , but when the objected is rotated, it shines at constant position (the front and right) and not to the side that are on the positioned light. …

Member Avatar for MattEvans
0
108
Member Avatar for mrnutty

hi, I started learning openGl yesterday. I made a simple program that supposed to create a triangle and a square, but its not working properly, any help please? [code] #include<iostream> #include<Gl/glut.h> #include<cstdlib> using namespace std; void handleKeyPress(unsigned char key, int x, int y) { if(key == 26) exit(1); } int …

Member Avatar for mrnutty
0
118
Member Avatar for mrnutty

What is the first term in the Fibonacci sequence to contain 1000 digits? so i made a program that finds the fibonocci's sequence (fs). I tried to do it recursively but it takes too long for big numbers. so i made a manual one. BUt as i count how many …

Member Avatar for aryansmit3754
0
141
Member Avatar for mrnutty

I am just curious, just how much of math do one really needs in order to make, say space invaderes, or pacman....WOW,..NBA LIVE 2009? It's not that i am bad at math or anything, in fact I am pretty good at it and still learning, calc.II. BUt i am curious, …

Member Avatar for mrnutty
0
143
Member Avatar for mrnutty

#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; /* 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? */ //my logic is to export 2^1000 into a text …

Member Avatar for Rashakil Fol
0
141
Member Avatar for mrnutty

hi, I am curious, how can I read a int from a text file( ex. num.txt). but this text file contains numbers without spacing (ex.1212132132313... 23156897984969.. 583852935792...) The problem is that this file has no spaces between numbers and when i try to read it into an arry, the result …

Member Avatar for VernonDozier
0
151
Member Avatar for mrnutty

how would I check how long a program takes for it to be completed. (i.e the time it takes for the program to be finished doing its calculation)) Thanks

Member Avatar for stonerain
0
111
Member Avatar for mrnutty

[code]#include<iostream> #include<fstream> #include<cmath> #include<iomanip> using namespace std; unsigned __int64 Fact(unsigned __int64 x ); int main(){ /*n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100!*/ cout<<Fact(100); } unsigned __int64 Fact(unsigned __int64 x ) { __int64 num(0); if(x==0) return 1; else { …

Member Avatar for grumpier
0
117
Member Avatar for mrnutty

I made a program that computes a factorial of a number. [code] #include<iostream> #include<fstream> #include<cmath> #include<iomanip> #include<string> using namespace std; //unsigned __int64 Fact(unsigned __int64 x ); int main(){ unsigned __int64 num = 100; unsigned long double fact(1); for(unsigned __int64 i=1;i<=num;i++) { fact *=i; cout<<setprecision(50)<<"i is : "<<i<<" fact is : …

Member Avatar for MosaicFuneral
0
148
Member Avatar for mrnutty

hi, I was trying to implement the sieve of eroathoses (I know I spelt this wrong) and it works. But i was trying to find all prime under 2 million. The .cmd for visual studio just corrupts if I try to find all prime under 2million. I am guessing It's …

Member Avatar for Freaky_Chris
0
365
Member Avatar for mrnutty

Can i call a class on another class. ex. class a { public: void add (int,int) ... //maybe call class b here.../// }; class b{ public : void mult(int,int)... };

Member Avatar for ArkM
0
89

The End.