- 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 #_# >_> <_<
527 Posted Topics
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 | |
Re: [QUOTE=javaAddict;628988]IF you know C# then you will have little difficulty converting it to java on your own. It will not take you much time to read a few things about java. If you know C# you don't need to learn anything new, just understand a few things about how java … | |
Re: I can already see you using the Bridge and/or Strategy pattern from the specs. You'll also most likely end up using the Observer pattern. Try not to be distracted by the specs too much. Break down the problem. You're limited to 1000 points of units. What I'd do is have … | |
Re: [QUOTE=Naveed_Cn;652210]Hi Every Body! Please any body tell me, is java is so powerful to do system programming wih it like C language and Assmbly.[/QUOTE] Java was initially built to handle hardware if that is what you mean. However, Java is SO robust and memory-expensive that it isn't recommended for low-level … | |
Re: What algorithm is necessary to generate the points for the Koch Snowflake? Are you omitting lines in the KochSnowflake? Also, by the way I would not rely on the paint method or paintComponent method to have code in it without some kind of flag. You could put a global-scoped boolean … | |
Re: The problem may be that the compiler sees a possibility of your .cpp file attempt to define something that doesn't exist, since your header file is conditionally defined. You can make it, such that, the text in your implementation file is read by the compiler if and only if the … | |
Re: [QUOTE=stephen84s;689295]Nice read, another article I really liked linked with developing skills in the programming field is [URL="http://norvig.com/21-days.html"]Peter Norvig's Teach Yourself Programming in Ten Years[/URL][/QUOTE] I disagree with this article. The author claims that personal training and experience is far better than simply reading a book. Without the basis, or knowledge … | |
Re: [QUOTE=lil_panda;642478]How would I sort an array or arrayList of strings into alphabetical order?[/QUOTE] You could do something like this-- [code=java] import java.util.*; public class Sort_Kit{ private final static int NUMBERS = 10; private static int passes = 0; public static void main(String[] args){ ArrayList<String> strings = new ArrayList<String>(0); Random rgen … | |
Re: Man where is Salem when you need him... Anyways, yeah Masijade is correct. You should really experiment and try things on your own until you come across an error. Then ask for help =P | |
Provides a means of performing operations on Rational numbers that can be treated as fractions to make non-whole numbers easier to calculate and read than typical floating point storage types. This was a project for a class. This is by no means an attempt to "reinvent the wheel" (The reason … | |
Hmm this implementation is a bit bulky and unnecessary, but it was required as a project for one of my classes. Programming perspective: You'll notice in the code that I'm still fairly new to manipulating streams directly in C++, but I am trying my best =P. The StandardIncremental overhead could … | |
Simple program that returns a vector of string elements based on the string argument and the token specified. | |
I'm not sure if it has been done yet or not, but I thought this program might be helpful to those that want to practice SQL in Java, because it sure is helpful for me! =) The assumption is that you're running Java 5+ and that you have a Database … | |
Nothing too special, but it was an interesting task. | |
This is a program I designed that implements a little bit of vector-math to determine the collision between 2 vectors. Hopefully this program will be useful to those out there designing 2D graphics programs and need a better solution to determining graphical object-to-object collisions when two objects meet, without having … | |
Re: [QUOTE=stultuske;655942]no idea? and you're in the final year?? well, if you're fixed on making a media player, you might start on the gui, easiest part I figure. try to decide what formats you want to be able to play (all might be a little much :)) and what you need … | |
Re: This may help-- [code=c++] #include <iostream> #include <string> #include <cstdlib> #include <sstream> using namespace std; class customerClass { string masterArray[2][255]; public: void getActions(int); void saveInArray(int, string); string readArray(int,int); }; string customerClass::readArray(int x, int y) { cout << masterArray[x][y]; } void customerClass::saveInArray(int a, string sx) { switch(a) { case 1: masterArray[a][0] … | |
Re: Have you done any research on Search Engines and how they are structured? Do you understand the benefits of using a HashTable for this assignment? I guess a good start would be to create a class for Documents. You can seperate the document into information such as Head info, body … | |
Re: If you post your files, people will be more willing to help because it gives them time to look at your logic and help you understand which steps to take to complete your project. |
The End.