- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 75
- Posts with Upvotes
- 53
- Upvoting Members
- 29
- Downvotes Received
- 33
- Posts with Downvotes
- 31
- Downvoting Members
- 4
enthusiast programmer.
- Interests
- java, datastructures.
- PC Specs
- win8 , 500gb hdd , 4gb 1333Mhz ddr3 , radeon 7670m
Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair. I'll start it off: Deli Sandwiches, macaroni salad, potato salad and a Pepsi :) |
|
|
Writing a function strreplace(s,chr,repl_chr) to replace the character 'chr' with character 'repl_chr' in a givne string s. I have done so far with following code. Getting awkward output. // Program to replace occurence of a character with another character in a string. #include<stdio.h> #include<conio.h> void strreplace(char *,char,char); int main() { … |
Hello guys. I am currently developing an OCR tool using Chain-code algorithm in Java. I was googling and found this code in Matlab. I have no idea on using Matlab. So, I need help from someone who's good in Matlab to convert it into Java. This will be a big … |
|
So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be: 1 2 3 4 I'm stuck. Please help ASAP. We have learnt … |
|
The last time a major change happened, i remember in a community chat few people (including me) were saying that the new changes looked a bit girly :P That won't work this time though. This is so totally different from vintage Daniweb. Also, i see some stuff probably not working … |
|
Hi programmers, i need to have a code to produce a round robin algorithm. Can you help me?? The requirements are that it must have: A menu system with the options (1 input data manually-if option 1 is selected a)to read data from file, b)to enter data by hand, 2-automatic … |
|
My Program is about Directed Graphs. It reads a list of edges like : `25 589` , and puts 589 into the adjacency list (a linked list) of 25. My input file has about 5 Million such `v w` edges, with about 800K nodes/vertices, for each of which there will … |
|
I work in it now, its kinda hard to work on , given its wanton use of GOTO , its difference from everything i know (save for assembly perhaps , but i only remember less than 10 commands there anyways :P ) , and the fact the its entire online … |
|
The below post is just something i thought of contributing here for young( or old ) members starting out in C. In (effectively) 3 lines of code , i hope to give an intro about pointer arithmetic and how endian-ness in windows affects the output. #include<stdio.h> int main(void){ int a … |
|
chrome , firefox.. these are great browsers , and even if i write utter crappy html code, it still makes sense out of it , and tries to display it the way a proper code would have made it display. thats great stuff unless i want to know/see the errors … |
|
[B]All the flowers of tomorrow are in the seeds of today. :) [/B] |
|
My assignment says : Write a program to perform following stack operations : Create a stack with item code and quantity Itemcode Quantity 111 450 112 0 113 487 114 101 115 500 116 0 117 359 and then Delete the items having quantity zero and update the stack. My … |
|
Who here plays a musical instrument? I play piano (about 8 years), violin (i am new, technically...), and the triangle :D. How about you guys? |
|
Who here plays sports? Or at least did? I do: Football (varsity, Wide Receiver & Corner), track & field (varsity, 100m sprinter), basketball (varsity, small forward & point guard), and (i am counting this one) a bodybuilder (bodyweight training with a bit of weights ;D). What do you guys do? |
|
If we have something in a `div` block , how come it can flow out of the `div` block as if nothing's even there ? For example , here : <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="box.css"/> <title>Result</title> </head> <body> <div> <p>one</p> <p>two</p> <p>one</p> <p>two</p> <p>one</p> <p>two</p> </div> </body> … |
|
Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list. |
|
I am having a problem deleting nodes from my Binary search tree. What I have so far does part of what it is supposed to do. I read in an input (paragraph of text) to create the tree (organized via ASCII character values). I make it, then print out all … |
|
I saw a tutorial from a site where it showed the use of `ArrayBlockingQueue` as a thread-safe concurrent data-structure . Just for learning purposes , i tried to build something similar using synchronized and wait-notify methods in java. I'm hoping someone could guide me to some improvements and point out … |
|
Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to … |
|
viewed <M/>'s profile ... dude has 105 endorsements ! Congratulations :D |
|
What I'm attempting to do is read a text document to pass in variables into an arraylist of shape objects that I will use to create shapes. I don't need any help with the actual drawing of the shapes, working with the arraylist, or the initial scanning setup. I thought … |
|
I think i have understood the basic locks , synchronized statements and methods etc etc . I would like to actually program something that used all this. Something that is prone to breaking if one is not careful , also would love if there is swing involved ( i read … |
|
Is it possible to make some Junit tests that assertTrue (condition, throw some exeption) if condition was false or if condition would throw something, say assertEquals (codition, new Excepption) ? |
|
If I have a chess board 8x8 And in my copy constructor I want to deep copy it. How would I go about doing it? This is what I have: public class chessBoard { private Chess[][]board; public chessBoard (){ board = new board[8][8]; for (int i = 0; i < … |
|
So anyone here who loves sublime text ? I do , and i use it on windows as my sql editor and compiler. (i have a batch set up which complies the code on mysql , and the output is tee'd back to another open text file) |
|
Hi Daniweb community, I have implemented a node class, DoublyLinkedList class and a SinglyLinkedList class. For each DoublyLinkedList node created, there is supposed to be a reference to a NEW SinglyLinkedList. Meaning each DLL Node has its own SLL. I have such a reference created which is a single node … |
|
i have a java project for my resume that i put it on github. and i want a fastest way to some one else to run my project. should i just put all my files there? likesrc, bin, .setting, etc... or should i just put 'src' files. or should i … |
|
I'm a bit confused about the use of "for" in the above statement.( i read the line from the [oracle tutorials](http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html) ) I suppose a thread has its run() method , inside which there is some code. That code might call a method **of** an object... and by this point … |