- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 74
- Posts with Upvotes
- 65
- Upvoting Members
- 41
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
I think I finally understand what makes an individual a great programmer. It's not the degree, and it's not the job... ...it's the discipline that makes an individual a great programmer. I know of many people at Daniweb that did not go to college and…
- Interests
- Reading[w/ Percent read]-- -Design Patterns (The original)[2%] -Effective C++[5%] -More Effective C++[0%]…
- PC Specs
- I'm so terribad at explaining hardware #_# >_> <_<
Re: I think I recall my professor saying-- "The way search engines work is through Hash-indexing. All you have to do to search is Hash-it-up!" Or something along those lines. It might be wise to look up HashMap or HashSet to see how you can locate certain values through indexing, though … | |
This is a remake of the Simple Equation Solver snippet that is written in Java. This is an equivalent version written in C++. | |
Hmm... I've made it my top priority to get a Master's and Ph.D in Computer Science and Software Systems... however I'd like to know what a suitable Master's Thesis would be? I'm thinking about making a book, maybe 6000 pages long, pertaining to nothing but Software ideals and technology. This … | |
Re: Is this really a fair comparison? With C# you are using the CLR to indirectly use your OS and in C++ you are directly using the OS. If you want this to be a fair comparison, try running the code using the CLR in C++ also. | |
Re: Here's a toughy. Write the Snaker program, using either a JFrame, GraphicsProgram or a JApplet (any GUI of your choice really). Your snaker object will start off as one circle. That circle represents a head. The body grows by encountering "snake-food" on the screen. When the head runs over the … | |
Re: Which Dev are you using? I believe I'm using v4.9 and I always give myself a-- >Black Background >Green text >Red paranthesis/brackets >Yellow Hexadecimal/Octal etc... I think you just need to go to your environment options to make the edits. Edit: Go to your Editor options and go to Syntax … | |
Re: [QUOTE=~s.o.s~;725241][URL="http://www.informit.com/guides/guide.aspx?g=java"]Java Reference Guide from Informit[/URL] [URL="http://www.javadocexamples.com/"]Javadocs by example[/URL][/QUOTE] In regards to the javadoc examples... Did you remake some of the old API listings with new and improved ones that consist of examples of function usage? O_O Even if it isn't you... it really must've taken said individual(s) quite some time … | |
Re: Whoo O_O! Pretty fun XD I can't seem to win! Right when I think I will, I end up landing on a mine XD =) | |
Re: This is a post on blackboard from a class-mate of mine-- [icode] /** * Posted by 'Gregg' */ ptr_practice1.cpp (3.139 Kb) When you create a 2 dimensional array on the stack, both the row and column values must be known at compile time, which is why you must use either … | |
Re: In order for him to use this-- [code=java] public void actionPerformed(ActionEvent e){ String str = yourTextField.getText(); String answerString = ""; try{ double answer = yourName.evaluate(str); answerString += answer; } catch (ParserException pe){ answerString = pe.toString(); } //DISPLAY ANSWER STRING IN WAY OF CHOOSING } [/code] --he'll also need a ParserException.java … | |
Re: I'm fairly certain that before you can load an image you have to prepare it first. System.out.println(prepareImage(img, 300, 400, this)); use this after you attempt to get the Image specified by your source. | |
Re: Hmm, can that union trick work with reinterpret_cast also? i.e.-- [code=c++] #include <iostream> using namespace std; int main(){ union{ short *a; float *b; }; float value = .1f; b = &value; std::cout << *a << std::endl; short *s; float *f; f = &value; s = reinterpret_cast<short*>(f); std::cout << *s << … | |
Re: It may be possible that Java won't support an image-type in future releases and therefore not provide Serialization support for it but that depends on what it is. I remember getting warning pertaining to images of a specific class and that class might be the culprit but I can't completely … | |
Re: [QUOTE=enuff4life;697737]when i do... [ICODE]String menu; Scanner keyboard = new Scanner(System.in); menu = keyboard; if (menu = "D"){ .... }[/ICODE] there is error sign under "menu = "D"" <can't convert String to boolean> why menu is boolean? I stated in String....[/QUOTE] There are a number of issues with the above code. … | |
Re: In times like this I'd either write pseudo-code or a process of how I want the code to work. such as... //The maximum amount of stars printed is the argument the user/programmer decides //the stars stack onto each other until they reach max value, then descend to zero knowing this, … | |
Re: [QUOTE=crbsathy;672894]Thanks sciwizeh for ur reply. I need to fetch the memory address of the variable . In one article which i have read that "we cant say that we cant access the memory location".[/QUOTE] Use the Object.toString() method to return the memory address. [code=java] public static void main(String... args){ Object … | |
Re: I found some links that rendered Images to .gifs, which seemed useless at first but then I looked into the Image class and all of the "helper" classes for its methods. I think I'll try to look into how to read the pixels on a screen into an array (or … | |
Re: Typically when you overload something (a function for example), you're giving a new option as to how the client/programmer can use that function. Polymorphism is slightly more difficult to describe. It's as if you're giving new meaning to an existing procedure in a way that is transparent to the client. … | |
Re: [code=cplusplus] #include <cstdlib> #include <iostream> using namespace std; #define INPUT(a) cin >> a #define PRINTLN(a) cout << a << endl #define PRINT(a) cout << a << flush class Triangle { private: int *height, *base; public: Triangle(){PRINTLN("Enter the height"); height = new int; INPUT(*height); PRINTLN("Enter the base"); base = new int; … | |
Re: I think the only way to create a "virtual constructor" is to make a virtual method that returns the object inquestion, where derived classes return a copy of their type instead of the base classes return implementation. By casting a derived type to a base type and invoking the virtual … | |
This is a simple Search Engine that contains tokenized words as keys, in which they will return values associated with them in an ArrayList. All that is required is a text file from a valid extension. | |
| Re: [QUOTE=smslive2;645923]Hi Guys, Please i need someone who could hlp me write a simple ATM program for accepting PIN, Checking Balance and Withdrawing..[/QUOTE] What's your progress? (aka post your code) |
Solves simple string-based expressions. Currently only supports integers, but can easily be expanded to support float-types. | |
Re: [QUOTE=mitrmkar;624358]A note regarding clipboard usage, whenever you successfully open the clipboard, don't forget to close it by calling [B]CloseClipboard()[/B] when you're done with the clipboard operations.[/QUOTE] I swear to god I'm starting get my coding confused after seeing that... Feels like CSharp when you use uppercased methods, when really it's … | |
Re: [QUOTE=samaitaben;632374]Can any one please assist with code for two objects coming from different direction. Subsequently, collide after intersection. The objects should be moving at 80km/h. And collision should happen shortly 30 minutes after take off[/QUOTE] This sounds like a physics problem with elements of- Newton's Law Conservation of Momentum (Possible) … | |
Re: [QUOTE=sweety_sharma;652674]thanks.. thank god .. sm ppl r gud n understanding here[/QUOTE] I think he was being sarcastic... But LOL | |
Re: [QUOTE=matlark;638717]I am very new to programming and don't understand what I need to do to implement the modulus. I don't see how it is going to get me the correct number of bills. What is floor rounding and subtraction? thanks[/QUOTE] 110 dollars... 110/5 (int division) = 5 * 20, or … | |
Re: Unfortunately you will get flamed for making a post like that here. Just fyi. | |
Re: [QUOTE=stultuske;677689]this might be an option [code] public static void pauze(){ while(!isContinue()){ //keep the duration small, so the game will be resumed shortly after // the user presses resume sleep(500); } } public static boolean isContinue(){ boolean returnVal = false; // this method checks in the rest of your code, whether … | |
Re: Close one, but you would have to add some new line characters to make that work =P |