789 Posted Topics

Member Avatar for 'Stein

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 …

Member Avatar for Infarction
0
120
Member Avatar for eXceed69
Member Avatar for christina>you
0
166
Member Avatar for revenge2

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

Member Avatar for jbennet
0
68
Member Avatar for keatsey-9

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?

Member Avatar for keatsey-9
0
95
Member Avatar for MaestroS

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.

Member Avatar for MaestroS
0
1K
Member Avatar for eXceed69

Yes. I don't know what it is. What is the average airspeed velocity of an unladen swallow? (Yes, I expect an answer.)

Member Avatar for ~s.o.s~
0
156
Member Avatar for eXceed69

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)

Member Avatar for eXceed69
0
40
Member Avatar for T-Fizz

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 …

Member Avatar for Infarction
0
119
Member Avatar for desijays

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:

Member Avatar for Infarction
0
351
Member Avatar for Chaky

[quote=Chaky;351073]I gave you some rep. And a comment.[/quote] :icon_rolleyes: :icon_rolleyes:

Member Avatar for w_3rabi
0
544
Member Avatar for AlPhA
Member Avatar for christina>you
Member Avatar for jbennet
0
220
Member Avatar for mattyd

[quote=jbennet;298357]wtf is Hoth?[/quote] omg you didn't seriously say that... :eek:

Member Avatar for lol_hacker101
0
489
Member Avatar for thekashyap

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 …

Member Avatar for EnderX
0
166
Member Avatar for eXceed69

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

Member Avatar for eXceed69
0
158
Member Avatar for jamello

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

Member Avatar for jamello
1
280
Member Avatar for EnderX

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

Member Avatar for ~s.o.s~
0
95
Member Avatar for jonnymac5987

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.

Member Avatar for Infarction
0
78
Member Avatar for adam37

It matches the type you use when you call it to choose the correct one. Btw, <iostream.h> is deprecated. Use <iostream> instead. ;)

Member Avatar for thekashyap
0
121
Member Avatar for The Dude

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?

Member Avatar for The Dude
0
90
Member Avatar for dcc

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

Member Avatar for Dani
0
2K
Member Avatar for addicted

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.

Member Avatar for addicted
0
116
Member Avatar for guystangr

Please indent your code so that it's readable. And move your declaration of bubleSort2 outside of main.

Member Avatar for Infarction
0
79
Member Avatar for FireSBurnsmuP
Member Avatar for Sturm

That's the gnu indentation style. You can probably change it in your .emacs somehow (I don't know, I use vim :P)

Member Avatar for Infarction
0
77
Member Avatar for milonix

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 …

Member Avatar for milonix
0
108
Member Avatar for John A

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 …

Member Avatar for ~s.o.s~
0
615
Member Avatar for kylcrow

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 …

Member Avatar for kylcrow
0
162
Member Avatar for Direwolf007

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.

Member Avatar for Direwolf007
0
182
Member Avatar for saroonah
Member Avatar for Infarction
0
91
Member Avatar for mepnoob2005

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

Member Avatar for TheNNS
0
524
Member Avatar for jbennet

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 …

Member Avatar for John A
0
188
Member Avatar for ganesh_c

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.

Member Avatar for Salem
0
197
Member Avatar for The Dude

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

Member Avatar for mattb0611
0
54
Member Avatar for ryanokc

Well, we won't simply hand it to you. What have you tried? What code are you currently working with?

Member Avatar for thekashyap
0
142
Member Avatar for JRM

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

Member Avatar for JRM
0
116
Member Avatar for carolraydon

the local dialect here tends towards rowt-r, for apparent lack of IPA support in [tex] tags...

Member Avatar for hbk619
0
389
Member Avatar for winbatch

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

Member Avatar for vijayan121
0
366
Member Avatar for TheNNS
Re: 500

hm... I already have 560-someodd yet still only two blocks of rep power... I must have been wasting too much time... :twisted:

Member Avatar for jbennet
0
228
Member Avatar for himanjim

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

Member Avatar for himanjim
0
105
Member Avatar for listylez

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.

Member Avatar for Infarction
0
55
Member Avatar for revenge2

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 …

Member Avatar for iamthwee
0
114
Member Avatar for Rashakil Fol

Because they typically require little thought to add to the thread of largely meaningless posts. There are some exceptions...

Member Avatar for Mike555
0
384
Member Avatar for Matt Tacular

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

Member Avatar for Infarction
0
101
Member Avatar for raj157

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

Member Avatar for vijayan121
0
315
Member Avatar for pjakubo86

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 …

Member Avatar for vijayan121
0
408
Member Avatar for mailsteam

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

Member Avatar for deng_cen
0
197
Member Avatar for Dani

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.

Member Avatar for John A
0
725
Member Avatar for Annaliese

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.

Member Avatar for christina>you
0
86
Member Avatar for The Dude

Apparently I'm a robot. And after the last couple days, I'm inclined to agree. Damn these school projects :(

Member Avatar for J_M44053
0
407

The End.