Posts
 
Reputation
Joined
Last Seen
Ranked #19
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
93% Quality Score
Upvotes Received
330
Posts with Upvotes
257
Upvoting Members
112
Downvotes Received
17
Posts with Downvotes
17
Downvoting Members
15
155 Commented Posts
~734.83K People Reached
Favorite Tags
Member Avatar for Duki
Member Avatar for Mike Askew

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

Member Avatar for Shahzad111
17
3K
Member Avatar for vegaseat

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

Member Avatar for Reverend Jim
15
13K
Member Avatar for viksat07

Of course we are able to help you. Could you show us your code and point out what issue you are having?

Member Avatar for Govind_11
0
31K
Member Avatar for brodeur

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

Member Avatar for Zirely
0
240
Member Avatar for ray.chappel

Do you have a specific question about this piece of code? Or was this intended to be a code snippet?

Member Avatar for LohithS
0
190
Member Avatar for daledan
Member Avatar for Mian_13
0
741
Member Avatar for richard.haines.39

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.

Member Avatar for Demonix
0
6K
Member Avatar for paruse

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

Member Avatar for Shafiq_1
0
38K
Member Avatar for William Hemsworth
Member Avatar for Uchenna_1
0
9K
Member Avatar for Violet_82

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 …

Member Avatar for Verse_1
3
5K
Member Avatar for payara111

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

Member Avatar for Chetana_1
-1
2K
Member Avatar for Luckychap
Member Avatar for akshaydixi

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 …

Member Avatar for Darackht
-2
3K
Member Avatar for Strange&Evil

>So Far I Havent Started to Code On My 'OWN' What are you waiting for? Get started! Cheapest way, and you learn something too ;-)

Member Avatar for Nathan_5
0
228
Member Avatar for jsefraijeen

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 …

Member Avatar for JamesCherrill
0
9K
Member Avatar for deceptikon
Member Avatar for Sune

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 …

Member Avatar for shafiqkuidad
0
377
Member Avatar for 35nando

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]

Member Avatar for Abheek88
0
2K
Member Avatar for awesomelemonade
Member Avatar for senaddor

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 ?

Member Avatar for yonela.yonce
0
1K
Member Avatar for GuitarComet

With me your code compiles (I'm using MinGW), but when running, your program will crash :)

Member Avatar for Ömer
0
317
Member Avatar for tux4life

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 …

Member Avatar for Remy1990
0
8K
Member Avatar for vegaseat

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

Member Avatar for Ancient Dragon
1
465
Member Avatar for christinetom

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

Member Avatar for mike_2000_17
0
371
Member Avatar for Birol

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 …

Member Avatar for prakash.kadam.5851127
0
297
Member Avatar for jakubee

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 …

Member Avatar for tux4life
0
367
Member Avatar for gvenkatesh1989
Member Avatar for <M/>
Member Avatar for Osaid9

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

Member Avatar for JamesCherrill
0
2K