3,892 Posted Topics
Re: Don't double post, your question has been already answered in your original thread. | |
Re: Sheesh, I guess its time for me to start seriously participating in the Word Games... ;-) | |
Re: > 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. | |
Re: > its cheaper to keep them alive, I really wonder how this thing is true. | |
Re: How about posting some code, its difficult to pinpoint exactly what you are trying to do given the small description. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: [URL]http://www.daniweb.com/techtalkforums/thread59789.html[/URL] | |
Re: Also don't cross post. Your question has been already answered in the Java forum. | |
Re: 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 … | |
Re: 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(). | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 + … | |
Re: > you can't imagine how annoying that is... You bet we do, we have been here long enough... ;-) | |
Re: 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. | |
Re: [url]http://java.sun.com/docs/books/tutorial/essential/io/[/url] | |
Re: 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 ? | |
Re: [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? | |
Re: Asking in the [URL="http://wxforum.shadonet.com/"]appropriate forum[/URL] would be more like it. | |
Re: Yeah i agree with you OP, lets get "back to primitive"... | |
Re: [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 … | |
Re: But of course your mother must have made a logical decision after doing a lot of research. | |
Re: 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 … | |
Re: 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 … | |
Re: <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> | |
Re: 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 … | |
Re: They are all the same, they just 'mesmerize the simple minded with propaganda that keeps us blinded'. | |
Re: 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 … | |
Re: 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? | |
Re: 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' ? | |
Re: 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. | |
Re: Maybe something [URL="http://curl.haxx.se/libcurl/"]like this[/URL], though I am not very sure. | |
Re: 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. | |
Re: Atleast give it a try. No pains, no gains. | |
Re: > 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] | |
Re: 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]. | |
Re: Yet another way: [code=cplusplus] string city = "Memphis"; string state = "Tennessee"; string result = city + string(16, ' ').substr(city.size()) + state; [/code] | |
Re: 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 … | |
Re: [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] ? :-) | |
Re: 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 … | |
Re: I guess someone here is a big fan of Naure... ;-) | |
Re: > 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 … |
The End.