3,892 Posted Topics

Member Avatar for alimirmd

Don't double post, your question has been already answered in your original thread.

Member Avatar for ~s.o.s~
0
254
Member Avatar for Dani

Sheesh, I guess its time for me to start seriously participating in the Word Games... ;-)

Member Avatar for MidiMagic
0
228
Member Avatar for Brent.tc

> he's not talking about threading im sure. For a small scale project, yes, but for real games, multi threading is what he is looking for. Games almost always make use of multi threading.

Member Avatar for iMalc
0
201
Member Avatar for The Dude
Member Avatar for jbennet
1
431
Member Avatar for ashitha

How about posting some code, its difficult to pinpoint exactly what you are trying to do given the small description.

Member Avatar for jwenting
0
101
Member Avatar for Thendral

How about something like: [inlinecode]imageId = imageArray.length % dayOfMonth;[/inlinecode] Change the formula to suit your needs but I hope you get the logic right.

Member Avatar for ~s.o.s~
0
101
Member Avatar for tformed

Replace all integers with float and change all "%d" to "%f", even in the scanf statement. Also post the results you get when you use ints and when you use floats.

Member Avatar for Gel
0
113
Member Avatar for Dani

I haven't seen a lot of occurrences of colors being misused here and neither do I make extensive use of it. Putting your point across without using fancy coloring techniques is something one must know so I wouldn't mind if you disabled the colors though they don't bother me a …

Member Avatar for Dani
0
845
Member Avatar for The Dude
Member Avatar for Alexandro

One way is that you can convert the result to a string object and do a substring to extract the portion of the result desired. [code=javascript] var a = 0.000050001; var precision = 5; var strA = a.toString(); var result = strA.substr(0, precision + 2); alert(result);[/code] I am not saying …

Member Avatar for ~s.o.s~
0
118
Member Avatar for pavani2006
Member Avatar for ~s.o.s~
0
542
Member Avatar for pavani2006
Member Avatar for Salem
0
323
Member Avatar for MAYYOS

Use BufferedReader (1.4) class to read in each line of the file as a string and for each line, locate the position of the '=' character. Use the substring function to extract the left and right parts of the string based on the position you have got. Skip the lines …

Member Avatar for ~s.o.s~
0
94
Member Avatar for IwalkAlone

Aia, the above solution is overly complicated, not to mention doesn't work. Its always recommended to initialize the char array to '\0' and not to use gets().

Member Avatar for ~s.o.s~
0
143
Member Avatar for Fungus1487

You forgot to do: [code=java] if(rs.next()) { //your code which uses rs }[/code] You got to realize that unless you do a next on the recordset, it isn't actually pointing to anything, this is because the implicit cursor in any kind of database always points to the nothingness.

Member Avatar for Fungus1487
0
134
Member Avatar for MattEvans

The search results are thrown at you based on popularity (also called as page rank) and there is no doubt Wikipedia has lots of it.

Member Avatar for christina>you
0
143
Member Avatar for Colin Mac

When you perform any kind of transformations on the scene or on any object, its transformation matrix (the way with which it is displayed) is modified. When any transformations are performed, they are performed on the current matrix which is then modified depending on the operation to be performed. Since …

Member Avatar for Grigor
0
133
Member Avatar for Monyet

To break down the deck[] element to get back the face and shape, you can do something like: [code=java] // Assuming the face and shape are seperated by a space int space = deck[i].indexOf (' ') ; String shape = deck[i].substring (0, space) ; String face = deck[i].substring (space + …

Member Avatar for Johnbull
0
126
Member Avatar for ndeniche

> you can't imagine how annoying that is... You bet we do, we have been here long enough... ;-)

Member Avatar for ndeniche
0
504
Member Avatar for senthil_yoga

Jwenting is right, put that code in a servlet. And not to mention if "eid" is the primary key of your "lang" table, you end up overwriting values.

Member Avatar for ~s.o.s~
0
108
Member Avatar for ally1002
Member Avatar for ~s.o.s~
0
81
Member Avatar for Infarction

Well the one which I read is "Joel on Software". Not all, but still some of his blogs are really funny and informative. Other than that, a lot of Java blogs. :) BTW, which RSS reader do you use ?

Member Avatar for socom(psp)
0
93
Member Avatar for laconstantine

[quote=Narue]When you use the array name in value context, the compiler actually converts it to a pointer to the first element. This is only the array [I]name [/I]though, the array itself is never a pointer.[/quote] Isn't this self explanatory?

Member Avatar for newprog
0
233
Member Avatar for rapperhuj

Asking in the [URL="http://wxforum.shadonet.com/"]appropriate forum[/URL] would be more like it.

Member Avatar for ~s.o.s~
0
55
Member Avatar for Lord Soth
Member Avatar for happygeek

[quote=happygeek;341979]OK, with super fast broadband arriving, well, super fast, it begs the question what would you use it for? So go on then, what [B]would[/B] you do with such speedy broadband that you couldn't do before?[/quote] I would make me really happy since the current 100 kbps scheme kind of …

Member Avatar for Recanzone
1
284
Member Avatar for christina>you

But of course your mother must have made a logical decision after doing a lot of research.

Member Avatar for Duki
0
85
Member Avatar for Dani
Member Avatar for Dave Sinkula

The poll is biased, there is no option for 'none of them'. Really speaking, with the kind of font size currently used, it doesn't make a difference which of the options is selected -- all the three look the same. The coloring scheme which I personally like the most is …

Member Avatar for Dani
0
198
Member Avatar for joe33
Member Avatar for Ospreyluvr

OpenGL is a graphics API, just like DirectX with the good thing being supported on all platforms. Not to mention it has a lot of bindings (like Java and OpenGL binding called JOGL). But if you are planning to go into the gaming industry, DirectX is the one you should …

Member Avatar for Grigor
0
102
Member Avatar for jaepi

<offtopic-rant> [QUOTE] I would change the world but God didn't publish the source code..[/QUOTE] Smart people can always reverse engineer it... ;-) </offtopic-rant>

Member Avatar for thekashyap
0
118
Member Avatar for MarcosEdu

Not PHP, its basically used for generating dynamic content. Developing a full fledged server is not something it was made for. C# yes possible but most of them are made in C++ and Java. As for the threads, the idea of the web server running with just one thread is …

Member Avatar for MarcosEdu
0
317
Member Avatar for Sturm

They are all the same, they just 'mesmerize the simple minded with propaganda that keeps us blinded'.

Member Avatar for EnderX
0
692
Member Avatar for Narue

Heh good feature. Not that I would want to track down anyone, or cloak and dagger with people that spark my interest, nor follow smart people whose posts I don't want to miss, but still, good one. ;-) [quote]Sorry ... Sheyna is my test account. I didn't realize I was …

Member Avatar for Dsiembab
0
150
Member Avatar for kamelin

Why do you need a class when you can do something like: [code=java] for(int i = 1; i <= Integer.MAX_VALUE; ++i) { System.out.println(i); }[/code] Is this what you need or something else?

Member Avatar for ~s.o.s~
0
74
Member Avatar for loilord

Post an example of the thing you are trying to achieve. Is it by any chance: [inlinecode]<a href="../something.html">Here</a>[/inlinecode] and you need to extract the 'something.html' ?

Member Avatar for ~s.o.s~
0
86
Member Avatar for christina>you

Actually both are pretty decent. 'Heroes' is much more of 'save the day' stuff while 'The Office' is pretty funny. Considering that I have seen only one episode of both of them, I might be wrong.

Member Avatar for christina>you
0
113
Member Avatar for desijays

Maybe something [URL="http://curl.haxx.se/libcurl/"]like this[/URL], though I am not very sure.

Member Avatar for desijays
0
134
Member Avatar for AWDracer
Member Avatar for kylcrow

You should probably post a working code here along with the explanation of what it does. Making us guess what your code does is not a good idea. Post the complete code (along with main) along with the sample input data supplied and the expected output.

Member Avatar for vijayan121
0
143
Member Avatar for weewee
Member Avatar for Covinus

> The bad thing is im doing my best and doing overtimes. but it seems my boss isnt satisfied. [quote]Whatever level you reach, getting better never stops.[/quote]

Member Avatar for ~s.o.s~
0
150
Member Avatar for jaepi

Given [inlinecode]char temp[100];[/inlinecode] I guess you must be talking of how to determine is a string is empty. How about something like [inlinecode]if(strlen(temp) == 0) { }[/inlinecode].

Member Avatar for ~s.o.s~
0
9K
Member Avatar for kylcrow

Yet another way: [code=cplusplus] string city = "Memphis"; string state = "Tennessee"; string result = city + string(16, ' ').substr(city.size()) + state; [/code]

Member Avatar for kylcrow
0
133
Member Avatar for caltiger

Just keep in mind that with caching, you also run the risk of having inconsistent data in your hand / in database. Almost in all cases, there is a pretty algorithm which sits tight taking care of all this, not to mention this would rarely come from your side in …

Member Avatar for Narue
0
191
Member Avatar for Zay

[quote=Julienne][code]int isPalindrome ( const char *word ) { std::stack<const char> mystack; int count = 0; [COLOR=Red]while ( word[count] != '\0' ) ++count;[/COLOR] int half = count / 2; int j; ... }[/code][/quote] Any reason for not using [inlinecode]strlen[/inlinecode] ? :-)

Member Avatar for Zay
0
136
Member Avatar for Thinka

Does your program perform the sorting properly? Try printing out the values of the array after sorting to see if it works. If yes then try putting print statements inside your Binary Search algorithm and see how the algorithm traverses through the array. And if it still doesn't work, post …

Member Avatar for Nick Evan
0
148
Member Avatar for Aia
Member Avatar for christina>you

> Any game can run on an infinite number of gaming-capable platforms, provided that the company ports it to each of them. But Halo has been successful mostly on the XBOX platform. The PC version was aimed at being a replacement for the current multiplayer action games gods like Counter …

Member Avatar for christianpunk20
0
286

The End.