789 Posted Topics
Re: If it were some however-many light years closer, it could make for a nice vacationing place. Doubt it has life on it, but water and a similar size (which hopefully still allows for a similar atmosphere) would make it a good place to visit if we ever reach the point … | |
Re: I [i]think[/i] the thumb has the Ubuntu logo in the top-left corner, but it's very difficult to make out. And for gaming, I seem to recall there being a distro that was very WINE-centric (e.g. to help with gaming) but I can't remember what it was called... | |
Re: Out of curiosity, could your printing code have an off-by-one error to print the same data for the last char in one row and the first in another? | |
Re: If you're reading in from a file, you can write an input method which expects the data to be formatted a certain way, and then parse it yourself by just reading in pieces at a time, as you need them. | |
Re: Yes. I don't know what it is. What is the average airspeed velocity of an unladen swallow? (Yes, I expect an answer.) | |
Re: I just had dim sum, which for some people is exotic. I eat it enough that it isn't through (but man, do I love fung zau) | |
Re: I'm not very familiar with the .NET libraries, but it looks like OpenFile returns a Stream, so whatever has the method ReadFileLine should take the stream and do whatever is involved in reading a line. Btw, please use [noparse][code] and [/code][/noparse] tags when you post code, it preserves indentation and … | |
Re: You might consider asking in the [URL="http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=6&SiteID=1"]Visual Studio section[/URL] of the [URL="http://forums.microsoft.com/msdn/default.aspx?siteid=1"]MSDN forums[/URL]. If it's doable, someone there's gotta know how :icon_wink: | |
Re: [quote=Chaky;351073]I gave you some rep. And a comment.[/quote] :icon_rolleyes: :icon_rolleyes: | |
| |
Re: [quote=jbennet;298357]wtf is Hoth?[/quote] omg you didn't seriously say that... :eek: | |
Re: Depends on the project. 35-40k lines isn't really that big in the grand scheme of things. For very large apps, though, compiled languages (C, C++) would probably have noticeable advantages in performance though. I don't know how the JVM actually handles programs when it's executing (e.g. keep all of it … | |
Re: Oh, gosh, I remembe that game... my roomate from 2 years ago got like 20km one time... took him like 1/2 hr. [edit:] 4511 | |
Re: [quote=jamello;352730]What is the color of a bad rep. (Good one is a green)[/quote] Orange. It's usually hard to come by, but I have a knack for it in heated discussions :$ I think you can also sort the member list by rep to see who has the most or least … | |
Re: [quote=dcc;352883]What can one say, they have too much time on their hands? The obvious problem with threads that are several months to several years old is that the problem has already been taken care of in one fashion or another. There's always the possibility that the member doesn't even return … | |
Re: Why not just use an int? Let 0 be false and anything else be true, like in C. Also, please learn to use [noparse][code] and [/code][/noparse] tags when you post, so we can read your code. | |
Re: It matches the type you use when you call it to choose the correct one. Btw, <iostream.h> is deprecated. Use <iostream> instead. ;) | |
Re: LOL @ Dave. That was awesome. I was thinking something along the lines of: - "I just can't hold it in anymore" - "You want fries with that?" - "Is that chick naked??" So, what's the rest of the pic? | |
Re: [quote=christina>you;347528]True. But it's also much easier to purchase a gun... then to make a bomb.[/quote] Is it? Have you looked into making explosives before? There's probably a long list of explosive mixtures that can be made from common, cheap stuff. A little creativity and I'm sure one could come up … | |
Re: It depends on the function you're calling. It could be defined as [inlinecode]void foo(T* someArray, int arraySize, int otherValue)[/inlinecode] or as [inlinecode]void foo(T* someArray, int otherValue, int arraySize)[/inlinecode]. The second one sucks, but you'll just have to check. | |
Re: Please indent your code so that it's readable. And move your declaration of bubleSort2 outside of main. | |
| |
Re: That's the gnu indentation style. You can probably change it in your .emacs somehow (I don't know, I use vim :P) | |
Re: That's an interesting use of cat. Anyways, I tried running it, and it worked fine after a small change (you didn't put a / before bin/sh, so working from anywhere other than the / directory would not work). output: [code]jimmy@vera ~/code/bash $ ./ispositive 4 4 number is postive jimmy@vera ~/code/bash … | |
Re: For the code block styling, I do like the auto-wrapping for long lines, but sometimes it would be nice if there was a scrollable div for the code. Not all of us have 30" monitors, and when someone posts 100+ lines of code it would be nice to limit the … | |
Re: Your code really needs to be indented for readability purposes. Anyways, global identifiers are typically considered bad style. They still work, but if you can come up with a solution without globals, then you should do that. And since you return the user's choice anyways, why do you need to … | |
Re: My first thought was a radix sort, but since that does depend on the value of the largest number, I'm don't think that it's strictly O(N) in this case. | |
Re: [url]http://en.wikipedia.org/wiki/Sorting_algorithms[/url] | |
Re: Just so's you know - Gentoo: emerge ntfs3g Ubuntu: apt-get install ntfs-3g Fedora: yum install ntfs-3g and that's just the distros I run... Mepis ain't that special ;) | |
Re: The trend is not surprising at all. Debian has a niche for servers, being that it runs older, more stable packages. Ubuntu has more appeal for desktop users and is making a name for itself in its attempt to draw users from the Windows userbase. However, few sysadmins will be … | |
Re: Or, you could just pass it as a pointer. And either way, you'll want to pass some sizes with it to make sure you stay within your allocated memory. | |
Re: I thought the giveaway was the red capital letters at the bottom "[COLOR=Black]THIS FORM IS FOR ENTERTAINMENT PURPOSES ONLY[/COLOR]" :icon_razz: Pretty funny though :D | |
Re: Well, we won't simply hand it to you. What have you tried? What code are you currently working with? | |
Re: [quote=JRM;345720]i couldn't figure out how to keep testing for new integers, then doing a sum at whatever point an EOF is encouintered ( or perhaps a zero?). The only way seemed to invole breaking the element insert loop. I have been told that this is BAD PRACTICE!![/quote] Whoever told you … | |
Re: the local dialect here tends towards rowt-r, for apparent lack of IPA support in [tex] tags... | |
Re: I think you'll just have to search through it one bufferSize at a time... you'll certainly have to read it to see where the data is... | |
Re: hm... I already have 560-someodd yet still only two blocks of rep power... I must have been wasting too much time... :twisted: | |
Re: You'd have multiple definitions of main, which is an error. A few other points: - main's return type should be int. - you should never include .c files. The compiler will create object files (.o or .obj, possibly others depending) and then the linker will put the pieces together. However, … | |
Re: Have you tried running chkdsk or any other disk integrity checkers? It's possible that one of these may notice something's up and hopefully even repair the situation. | |
Re: The .NET framework is a set of libraries that Microsoft provides for developers. It's similar to the Java libraries in that it essentially requires a host environment to be installed before you can use applications written with it (e.g. you need to have .NET framework installed to run .NET apps … ![]() | |
Re: Because they typically require little thought to add to the thread of largely meaningless posts. There are some exceptions... | |
Re: You pretty much search the array and see if the item is in it or not. If the array is sorted, a binary search will do this pretty fast. If it's not sorted, you have to loop over each object in the array: [code]for(int i = 0; i < arraySize; … | |
Re: Since you didn't give much spec aside from the description, here's some rough pseudo-code: [code] int main(int argc, char** argv) { // should check for the right number of arguments before going past this point ofstream outfile(argv[argc - 1]); // last argument for(int i = 1; i < argc - … | |
Re: vijayan's solution should be correct. There's a few things different between his and yours, though, which are important. First, his parameter takes a const object. This allows you to have a const Node on the right side of the expression. Second, he uses the pass-by-reference mechanism (the &) to avoid … | |
Re: When you use a variable twice in an expression and one of those instances is a pre- or post- increment, the behavior is undefined (and then depends on how it's implemented by your compiler). | |
Re: I guess I'm third in the don't-like group. I also prefer to know precisely when people have posted things. The hybrid idea would be nice as well though. | |
Re: I leave mine on all the time. Doesn't get particularly warm unless I'm running cpu intensive stuff, but even then the fans keep up fine. That's what they're made for, afterall. | |
Re: Apparently I'm a robot. And after the last couple days, I'm inclined to agree. Damn these school projects :( |
The End.