- Strength to Increase Rep
- +16
- Strength to Decrease Rep
- -4
- Upvotes Received
- 330
- Posts with Upvotes
- 257
- Upvoting Members
- 112
- Downvotes Received
- 17
- Posts with Downvotes
- 17
- Downvoting Members
- 15
Re: Recently I was looking for books about C#. Since this thread doesn't have alot of book suggestions I'll add the results of my search to it in the hope that it will be useful to others as well. * [A C# Reading List by Eric Lippert](http://www.informit.com/articles/article.aspx?p=1769249): * [Essential C# 4.0](http://www.amazon.com/Essential-4-0-Microsoft-Windows-Development/dp/0321694694/ref=sr_1_2?s=books&ie=UTF8&qid=1360450257&sr=1-2&keywords=essential+c%23) … | |
Re: *I don't know how many of you have ever met Dijkstra, but you probably know that arrogance in computer science is measured in nano-Dijkstras. - Alan Kay* | |
Re: Of course we are able to help you. Could you show us your code and point out what issue you are having? | |
Re: Compiler output: FriedmanRPSgame.java:3: error: package hsa does not exist import hsa.Console; ^ FriedmanRPSgame.java:7: error: cannot find symbol static Console c; // The output console ^ symbol: class Console location: class FriedmanRPSgame FriedmanRPSgame.java:11: error: cannot find symbol c = new Console (); ^ symbol: class Console location: class FriedmanRPSgame FriedmanRPSgame.java:21: error: … | |
Re: Do you have a specific question about this piece of code? Or was this intended to be a code snippet? | |
Re: Sounds like a class will be useful to implement it ... | |
Re: The exception message tells you exactly what the problem is: *Multiple decimal separators in pattern "#.##0.00"* A decimal separator in this context is a dot, and your formatter pattern contains *multiple* (more than one, two to be precise) of these. | |
Re: [QUOTE=paruse;1017271]I'm a beginner in C++. I saw \b and \r in a program source code. I've seen \n and I know its purpose. But why do we use \r and \b in C++? Please clear my doubt. Thank You.[/QUOTE] Those codes are called backslash codes (or character escape sequences), there's … | |
Re: Very nice snippet ! I didn't know it was actually such a small code ... | |
Re: Actually to be correct, the [Color constructor](http://docs.oracle.com/javase/6/docs/api/java/awt/Color.html#Color(int,%20int,%20int)) we're talking about takes 3 values in the range 0-255 (255 inclusive!) Thus, to be entirely correct you'd need to call the constructor as follows: `new Color(rand.nextInt(256), rand.nextInt(256), rand.nextInt(256))` >How do I return just int numbers I can use somewhere else? You could … | |
Re: [QUOTE=VernonDozier;865671]That's a star? I doesn't look like any star I've ever seen.[/QUOTE] It isn't a star but a 'star pattern' (or asterisk pattern) | |
Re: Very nice snippet ! | |
Re: Your code is total rubbish, void main(), conio.h, no code indenting, magic numbers et al. Have you even ever heard about code conventions? I think those boring library and hotel management stuff are already way too difficult for you to code. If you think so high of yourself that you're … | |
Re: >So Far I Havent Started to Code On My 'OWN' What are you waiting for? Get started! Cheapest way, and you learn something too ;-) | |
Re: 1. No need for String conversion here: `System.out.println(""+multiply(-8,8));` PrintStream.println has an [overload](http://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println(int)) that takes int as argument. 2. No need to roll your own abs, [Math.abs(int)](http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#abs(int)) provides one. 3. Another possible approach that satisfies the (2 years old) request: `new BigInteger(a).multiply(new BigInteger(b))` **[1] [2] [3]** **[1]** `a` and `b` denote … | |
Re: Well, why don't you just check out the [URL="http://www.daniweb.com/code/forum2.html"]code snippets section[/URL]? Plenty of good stuff about pointers can be found [URL="http://www.eternallyconfuzzled.com/tuts/languages/jsw_tut_pointers.aspx"]here[/URL]. Edit:: The nicest code snippets I've ever seen on this forum, were the ones which you can find [URL="http://www.daniweb.com/code/coder5020.html"]here[/URL] (though they're more about C than about C++, I'd strongly … | |
Re: The following link describes in detail how to code edge detection yourself: [URL="http://www.pages.drexel.edu/~weg22/edge.html"]http://www.pages.drexel.edu/~weg22/edge.html[/URL] And maybe this link is useful too: [URL="http://www.intelliproject.net/articles/showArticle/index/image_proc_edge_detect"]http://www.intelliproject.net/articles/showArticle/index/image_proc_edge_detect[/URL] | |
Re: Because I don't eat tree. Why can't I think of a stupid question? | |
Re: Seems like you're using Microsoft Visual C++ ... > Did you put the header file in the project ? > Is the header file in the same directory as the '.cpp' file(s) where you're including it in ? | |
Re: With me your code compiles (I'm using MinGW), but when running, your program will crash :) | |
One of the things which attracted my attention was that there are often newbies asking how to create a password program in C/C++, often they don't succeed, well here's my response, you can use it for any purpose you want, one thing you'll have to keep in mind is that … | |
Re: [B]>use fgets() instead of scanf() because it avoids buffer overflow problems if you type in more characters than name will hold.[/B] I'm not going to repeat what Tom Gunn said once, I'm just going to link you: [url]http://www.daniweb.com/forums/post956935.html#post956935[/url] | |
Re: >What you provided is great but not really portable. How is a digital version of the standard "not really portable"? **Edit:** Take a look [here](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list). | |
Re: In my opinion the [Head First Design Patterns](http://shop.oreilly.com/product/9780596007126.do) book is a pretty good and understandable introduction to design patterns. I believe good examples of how design patterns can be applied are key to making them easier to understand for newcomers. Also I'd recommend to clearly demonstrate the benefit of applying … | |
Re: You can use [Arrays.asList](http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...)): List<Sector> sectors = Arrays.asList( new Sector(12345, 13455), new Sector(12745, 13755) /* etc. */ ); Note however that the returned List is not **structurally modifiable [1]**, if you want to structurally modify (e.g. add, remove, insert sectors) the returned List later, then consider the following: List<Sector> sectors … | |
Re: Try [this](http://lmgtfy.com/?q=jtable+database) next time. | |
Re: >I want it to display automatically when I run the programme without the need to press any buttons Set the text field's content in your constructor. |