1,684 Posted Topics

Member Avatar for schnautzr

What do you mean 'retrieve' the data? You have the data. If you want to use the data, put it in an array and iterate over it.

Member Avatar for schnautzr
0
258
Member Avatar for MJV

By doing just what you described. What knowledge are you lacking that is preventing you from implementing this behavior? (Bringing up a message? Something else?)

Member Avatar for sknake
0
328
Member Avatar for scrypt3r
Member Avatar for learner2

They mean errors that occurred while processing, converting, or programming, respectively.

Member Avatar for Salem
0
86
Member Avatar for ddanbe

Define 'provider' and define 'consumer'. What do you mean by 'putting a car in a garage'? That analogy can mean different things. (Maybe just tell us what you're doing.)

Member Avatar for ddanbe
0
99
Member Avatar for crewxp
Member Avatar for Rashakil Fol
0
160
Member Avatar for JackDurden
Member Avatar for JerryShaw
0
109
Member Avatar for oscar314

If you want a job in America, they'll have heard of Oxford but not Imperial. (And that's just my mindframe because all my british coworkers are working in America :))

Member Avatar for jbennet
0
144
Member Avatar for petike

It is always okay to expose public fields when the purpose of a class is to contain said field. For a tiny private data struct? Okay. For a public use-everywhere data structure? Okay. For example, it's okay for a binary tree datatype (not a binary search tree, just a plain …

Member Avatar for Rashakil Fol
0
100
Member Avatar for sonia sardana
Member Avatar for cymerman
Member Avatar for cljlxwater
Member Avatar for Rashakil Fol
0
85
Member Avatar for matt443

I suggest you call Partition on the tail _before_ you examine the first element of the list. Then update the array that Partition returns appropriately to account for the first element of the list. Only construct the array when Partition receives an empty list.

Member Avatar for nadeemIqbalBajw
0
110
Member Avatar for riahc3

Probably because you're assigning an element past the end of the array, and there's a variable there that throws off your code unpredictably. Also, you've already showed a way to change that range; I don't see what the problem is. But generally speaking the code can be slightly improved. Some …

Member Avatar for Rashakil Fol
0
132
Member Avatar for Rashakil Fol

I see that the folder icons are using solid white backgrounds rather than transparent backgrounds. The white stands out when the icons are used on a non-white background, as seen at <http://www.daniweb.com/category2.html>. This unacceptable, and I demand that this be fixed! How can I give information when these unkempt forum …

Member Avatar for jbennet
1
130
Member Avatar for vicio

It would be a cool forum; I think it would be somewhat outside the scope of Daniweb. If you find such a forum that you like, please tell me about it in this thread.

Member Avatar for vicio
0
184
Member Avatar for MentallyIll5150

Please edit your post to put your code in [[b][/b]code][[b][/b]/code] tags.

Member Avatar for MentallyIll5150
0
124
Member Avatar for MJV

[QUOTE=sknake;804923]I have gotten the sense of a lot of users on this forum sharing the same mindset? Why is that :([/QUOTE] I agree, it seems like somehow the mindset of figuring out how to write code on your own has been transformed in this thread into the mindset of knowing …

Member Avatar for Rashakil Fol
0
296
Member Avatar for JackDurden

You can unzip an array like that using the Where extension method (in .NET 3.5). [code] int[] evenPositioned = numbers.Where((x, i) => i % 2 == 0).ToArray(); int[] oddPositioned = numbers.Where((x, i) => i % 2 == 1).ToArray(); [/code] So input them into one array and then do the disentangling.

Member Avatar for Rashakil Fol
0
84
Member Avatar for thacravedawg

Your first loop seemed broken, since you had the loop condition backwards. This second version seems like it should work, but it is a mystery to me. What happens when you debug your code?

Member Avatar for nelis
0
77
Member Avatar for sciwizeh

The most obvious direct answer is to make a quadtree that keeps track of which quadrants contain 3s and which don't. Then zoom in on a given point from above, continuing to enter regions that contain 3s and are still candidates for the closest 3 to your given point. You …

Member Avatar for Tech Tiger1
0
131
Member Avatar for naveedanjum88

Start with making or using a parser, then... finish with making an algorithm that analyzes.

Member Avatar for Lord Soth
0
86
Member Avatar for zaraeleus

You have syntax errors. Read through the code character by character and get rid of the syntax errors.

Member Avatar for stephen84s
0
173
Member Avatar for oldSoftDev

There's no "**" operator in Java. Either use Math.pow or write your own squaring function.

Member Avatar for oldSoftDev
0
72
Member Avatar for karthi_selva
Member Avatar for VBNick

It's the same thing -- once the code has been compiled -- and used for the same purpose. It's better to use the second way, passing "by reference," because the first desensitizes you toward pointers. (Your spidey sense should tingle when you see a pointer -- it means danger lurks.) …

Member Avatar for VBNick
0
311
Member Avatar for acardiac

Nobody could help you unless you listed specific books for which you wanted solutions manuals. And since nobody here would know how to find them off the top of their heads, you might as well do the googling yourself.

Member Avatar for acardiac
0
2K
Member Avatar for tksrules

[QUOTE=tksrules;797204]I need assistance with the following excercise: [/QUOTE] Why do you need assistance?

Member Avatar for stultuske
0
99
Member Avatar for Ontonyx

The trigonometric functions expect their arguments to be in radians. Your input expects values in degrees. [icode](PI/2)*(180/PI)[/icode] is kind of funny; it simplifies to 90...

Member Avatar for VernonDozier
0
128
Member Avatar for serkan sendur

[QUOTE=serkan sendur;797003]is there any c++ equivalent of doing that?[/QUOTE] Nope :)

Member Avatar for cikara21
0
162
Member Avatar for Bill Purkins
Member Avatar for Bill Purkins
0
97
Member Avatar for JackDurden

[QUOTE=JackDurden;796952]Trying to make a circular queue, but its not working right. Enqueue is just adding things to the end, every time. my output is: Numbers in Queue: 1 2 3 Numbers in Queue: 2 3 Numbers in Queue: 2 3 6 it should be: Numbers in Queue: 1 2 3 …

Member Avatar for Rashakil Fol
0
92
Member Avatar for metalla_nz
Member Avatar for scru
Member Avatar for vegaseat
0
153
Member Avatar for danielernesto

A struct defines a value type; a class defines a reference type. A value type is one whose values cannot be separated from the variable. If you try copying it to a different variable, you'll make a complete copy. You don't really modify value types -- you modify the variables …

Member Avatar for danielernesto
0
141
Member Avatar for asafoatse

[quote][code]enter region = O; enter commodities = 2; enter saler = 1; prise = 500$;[/code][/quote] What does this code even mean? It is not C#.

Member Avatar for serkan sendur
0
144
Member Avatar for netgirls

I think we can safely conclude that MosaicFuneral has no idea what he's talking about.

Member Avatar for netgirls
0
109
Member Avatar for Y2K_MASTER

The code you're showing here won't even compile -- in the function main, aFirst and aSecond are not in scope.

Member Avatar for Y2K_MASTER
0
144
Member Avatar for mattaseymour

[QUOTE=mattaseymour;795833]Is it to use sockets, or to use something more TCP based?[/QUOTE] Something "TCP-based" does use sockets. Take a look at System.Net.Sockets, you probably just want to use TcpClient and TcpListener, and maybe you'll get better advice regarding a secure connection, but that probably involves using something in [url=http://msdn.microsoft.com/en-us/library/system.net.security.aspx]System.Net.Security[/url]

Member Avatar for LizR
0
96
Member Avatar for k88joshi

What the fuck? You asked this in the C++ forum and didn't even need to write it in C++, and got answers. Why are you asking it in the Java forum?

Member Avatar for k88joshi
0
104
Member Avatar for rayda

You have a variable there that keeps track of the sum of the numbers. Using the same pattern, make another variable that keeps track of the largest number seen so far. Initialize it with the value Integer.MIN_VALUE.

Member Avatar for stultuske
0
358
Member Avatar for k2k

[QUOTE=javaAddict;795082][CODE] for (int i=0;i<list.size();i++) { String s = list.get(i); //you do not need to cast it to String like the previous example because of the way you defined the list above System.out.println(s); } [/CODE][/QUOTE] Leave it to a Javacoder to write code in the most obtuse manner possible. (Yes, I'm …

Member Avatar for javaAddict
0
115
Member Avatar for chunalt787

d2b2 evaluates to something of type [icode][Int][/icode], right? Which means the expression [icode](d2b2(n / 2):1)[/icode] is trying to pass an [icode][Int][/icode] as the left-hand argument of the [icode](:)[/icode] function. Since the [icode](:)[/icode] function is of type [icode]a -> [a] -> [a][/icode], that means it expects on the right-hand side a …

Member Avatar for chunalt787
0
153
Member Avatar for Clockowl

It makes a copy of the string. For it not to do so would be counter-intuitive -- if it wanted a pointer to a string, it would ask for one. In particular, you'll note that the constructor takes a const string. Which means that there's no way in heck that …

Member Avatar for Clockowl
0
123
Member Avatar for david.1982

[QUOTE=david.1982;791527]In PHP, I would have just set up parentID as a foreign key referencing the CatID on delete cascade; however I've found that in C#, I'm not allowed to set up a foreign key constraint that self-references a column in the same table (lame!).[/QUOTE] This doesn't make any sense. Constraints …

Member Avatar for david.1982
0
140
Member Avatar for k88joshi
Member Avatar for k88joshi
0
363
Member Avatar for BobLewiston

Pretty much, yes. Well, the exception could also be thrown in a method called by the called method, or in a method called by the method called by the called method, or.... Or the exception could be thrown directly from the try block itself. Also, finally blocks exist too.

Member Avatar for Rashakil Fol
0
86
Member Avatar for BobLewiston

Your view of delegates and the mechanics of using them is very accurate. [QUOTE=BobLewiston;794544] Steps to create and prepare to use a delegate reference: 1 Define a delegate type: specify the signature (including return type) of methods that delegates of this type can point to. This is called "declaring" the …

Member Avatar for Rashakil Fol
0
197
Member Avatar for scrypt3r

Looks like somebody clicked on the wrong forum. And it would be a nonsensical, wrong answer even if it was in the right forum.

Member Avatar for scrypt3r
0
101
Member Avatar for mruane

I would recommend the book "Accelerated C++", by Koenig & Moo. You'll note that the Daniweb rules state some prohibitions, including "do not post anything warez related or related to other illegal acts." This means that, for example, if there existed tools out in the world that made it trivial …

Member Avatar for Stefano Mtangoo
0
162

The End.