Posts
 
Reputation
Joined
Last Seen
Ranked #132
Strength to Increase Rep
+11
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
74
Posts with Upvotes
65
Upvoting Members
41
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
55 Commented Posts
~254.70K People Reached
About Me

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 #_# >_> <_<
Favorite Tags

527 Posted Topics

Member Avatar for cookie19ks

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 …

Member Avatar for stultuske
0
9K
Member Avatar for Alex Edwards

This is a remake of the Simple Equation Solver snippet that is written in Java. This is an equivalent version written in C++.

Member Avatar for hassan_24
1
8K
Member Avatar for Alex Edwards

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 …

Member Avatar for KelvinG
0
1K
Member Avatar for Duki

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.

Member Avatar for Loïc
0
940
Member Avatar for ~s.o.s~

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 …

Member Avatar for gyno
22
7K
Member Avatar for Noxes

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 …

Member Avatar for ChampRocks
0
2K
Member Avatar for ~s.o.s~

[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 …

Member Avatar for ~s.o.s~
46
6K
Member Avatar for sciwizeh

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 =)

Member Avatar for sciwizeh
2
860
Member Avatar for k88joshi

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 …

Member Avatar for cambalinho
0
744
Member Avatar for darlineth

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 …

Member Avatar for darrylnuyda
0
2K
Member Avatar for funtoosh

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.

Member Avatar for shanker31
0
1K
Member Avatar for kneiel

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 << …

Member Avatar for AliceJohn123
0
698
Member Avatar for VernonDozier

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for enuff4life

[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. …

Member Avatar for matthewetaft
0
711
Member Avatar for Foo_with_a_floo

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, …

Member Avatar for WaltP
0
413
Member Avatar for crbsathy

[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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for VernonDozier

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 …

Member Avatar for ferwerda
0
421
Member Avatar for newcountry

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. …

Member Avatar for Netcode
0
530
Member Avatar for YaelGD

[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; …

Member Avatar for sungaw
0
2K
Member Avatar for littlestone

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 …

Member Avatar for Ancient Dragon
0
257
Member Avatar for Alex Edwards

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.

Member Avatar for fayimora
0
10K
Member Avatar for smslive2

[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)

Member Avatar for Taywin
0
413
Member Avatar for Alex Edwards

Solves simple string-based expressions. Currently only supports integers, but can easily be expanded to support float-types.

Member Avatar for Taywin
1
3K
Member Avatar for n00b3

[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 …

Member Avatar for Panda_007
0
5K
Member Avatar for samaitaben

[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) …

Member Avatar for tamiruu
0
286
Member Avatar for sweety_sharma

[QUOTE=sweety_sharma;652674]thanks.. thank god .. sm ppl r gud n understanding here[/QUOTE] I think he was being sarcastic... But LOL

Member Avatar for masijade
-2
182
Member Avatar for matlark

[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 …

Member Avatar for suiluj
0
741
Member Avatar for Taimur.Ace
Member Avatar for NicAx64
-2
360
Member Avatar for esy928

[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 …

Member Avatar for NormR1
0
2K
Member Avatar for NewbyChic

Close one, but you would have to add some new line characters to make that work =P

Member Avatar for javaAddict
0
178
Member Avatar for kanjali

[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 …

Member Avatar for masijade
0
313
Member Avatar for samuel_pay

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 …

Member Avatar for Stefano Mtangoo
0
320
Member Avatar for Naveed_Cn

[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 …

Member Avatar for vishalbaid
0
2K
Member Avatar for LevelSix

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 …

Member Avatar for BestJewSinceJC
0
962
Member Avatar for mir_sheely

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 …

Member Avatar for Fujur
0
3K
Member Avatar for ~s.o.s~

[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 …

Member Avatar for alams
1
178
Member Avatar for lil_panda

[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 …

Member Avatar for gregoryalussier
-1
732
Member Avatar for nojtb

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

Member Avatar for valy0017
0
271
Member Avatar for Alex Edwards

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 …

Member Avatar for MosaicFuneral
0
898
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
197
Member Avatar for William Hemsworth
Member Avatar for Alex Edwards

Simple program that returns a vector of string elements based on the string argument and the token specified.

Member Avatar for Alex Edwards
0
183
Member Avatar for Alex Edwards

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 …

Member Avatar for newtonorina
0
248
Member Avatar for Alex Edwards
Member Avatar for Alex Edwards

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 …

0
218
Member Avatar for mdew_47

[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 …

Member Avatar for devpiyu
0
294
Member Avatar for QuantNeeds
Member Avatar for l3vi

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] …

Member Avatar for l3vi
1
1K
Member Avatar for pockets88

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 …

Member Avatar for Alex Edwards
0
148
Member Avatar for Nisaac

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.

Member Avatar for Nisaac
0
206

The End.