506 Posted Topics
Re: Try [URL="http://www.daniweb.com/forums/announcement9-2.html"]this[/URL]. | |
Re: Use grep (obviously). Option -f might be of interest if ids.txt has needed format (one search pattern per line). If it doesn't have the needed format you might wanna set it up right using sed or something. Assuming all your numbered input dat files are in "." [CODE] grep -f … | |
Re: Surprising Salem didn't comment on this.. :) [PS: those wondering why, see his icon/avatar] | |
------------------------------------------------------------ [COLOR=Blue][B]Intro:[/B][/COLOR] This is a small program that measures the performance of given java classes. In snippet there are 2 classes: 1. TestClass.java contains all java classes that are being measured for performance, I've picked up Narue's Sorting Algorithms as AUT (application under test) 2. AJPerf.java: contains the aspect that … | |
Hi *, Here is a small program I had created to search for a given .class file within given CLASSPATH. It is primarily used in our project on test machines where lotsa ppl put lotsa patches in lotsa paths/jars and finally end up wondering which class file is being used. … | |
Re: Couldn't help notice such an interesting thread.. :).. as a smoker I also have a few things to add.. [quote=christina>you;393896]The problem is, children are more likely to smoke if their parents do.[/quote] NOT true. My granpa was the only one in my family (ALL his descendants) who smoked. In fact … | |
Re: A few more I find useful... 1. Replace switch-case/if-else with array-indexing: [code=c++] switch ( queue ) { case 0 : letter = 'W'; break; case 1 : letter = 'S'; break; case 2 : letter = 'U'; break; } //or maybe if ( queue == 0 ) letter = 'W'; … | |
Re: Haven't used Bloodshed, but procedure seems fine. Usually IDEs would give you an option to specify a custom makefile. Just one comment on the makefile contents: second line should be something like: (tab)gcc -o EngineMain EngineMain.o Engine.o | |
Re: There are a few problems with the existing code itself: 1. Requirement says "void getScore()-should ask the user for a test score, store it in a [B]reference[/B] parameter variable," => This is not done. So teh values updated within the function won't be reflected in main. 2. Usually it's a … | |
Re: He he.. just to think of this makes me nostalgic.. :icon_smile: I wrote my first one in 1990 I think, I was so happy to see that perfect circle I made using circle() in BASIC. I also made squares and lines and rectangles but somehow circle was my favorite. :icon_lol: … | |
Re: 1. I wonder why things work without linking to /usr/local/sesam/lib/libssv.so if you need it. And if links without it I wonder why you need it. 2. Compare the size/timestamp of your mate's lib and your lib (/usr/lib/libstdc++-libc6.1-1.so.2). I think comparing the symbol table would be an overkill if size/timestamp are … | |
Hello Everyone, Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP... We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product. All the IE (information elements) are defined by standards, so we know everything abt every field in … | |
Re: Interesting. :) Do you have global and/or static variables anywhere ? Also can you post: - TForm2.h - TForm2::TForm2() implementation | |
Re: What's the problem ? See help on code tags, would be more readable if you add =java. | |
Re: Try debugging ! Code isn't complete ? where is StaticPong? Do simple step by step debugging using some debugger like Eclipse. Put a break point in the handler. Otherwise do it old style, put some traces in your handler function and the editxx() function to see where it is hung. | |
Re: Depends on what you want it for.. If you're looking at 2-3 years of life and decent quality, go for almost any. If you want to overclock etc, there are specific ones. | |
Re: If this was an assignment, then my guess is it's a trick thing and probably you're expected to write your own class that can represent a huge int like the one you have (exactly like what someone else has already done in links from Vijayan). In short there is no … | |
Re: RTFM. Even Yahoo can produce an answer for this.. ! [url]http://search.yahoo.com/search?p=how+to+create+jar+file&ei=UTF-8&fr=moz2[/url] | |
Re: >> what does it mean to say we have a 32-bit processor ?!! In very dummy terms it means the processor would process 32-bits in one machine cycle. Say if it's 2GHz processor, it'll process 32-bits 2 giga-times a second. A 32 bit processor can address upto 32 bit long … | |
Re: If something isn't working and you donno why, please specify. If you donno how to handle some part of the assignment please specify. We can't do the assignement for you. | |
Re: Assuming that your login form is a modal dialog, you can associate - a class to that dialog (if I remember correctly, this is done when you add the dialog) - member variables of this clas to the edit boxes in that dialog. When user has entered the data and … | |
Re: put complete code.. at least I don't understand half your problem. also I didn't know C++ allowed type names to start with numbers. | |
Re: Each member variable has (at least) keywords specified for it apart from name. 1. Data type - could be a basic type (int, float, char,...) or user defined type (vector, std::string, CString, MyClass,...). 2. Access specifier: public, protected, private. Details are already given by wtf. | |
Re: I suggest you take it a bit more seriously and do it slowly. A few things: Before you start: - You've not given all the needed specs (e.g. mem speed, exact CPU) so I'm assuming you're not an expert at this (like me), so I suggest you do your [URL="http://www.ocforums.com/showthread.php?t=515316"]reading[/URL] … | |
| |
Re: [B] [B]Even harder than coding... designing code. UML diagrams[/B] [/B] >> Even more "interesting" you must say.. :) 1. You've posted in the wrong forum. 2. Problem is you've not followed the basic principles of [URL="http://en.wikipedia.org/wiki/MVC_Design_Pattern#Pattern_description"]MVC Pattern[/URL] E.g. only following dependencies are allowed: - C->V - C->M - V->M You … | |
Re: [quote=IT Girl;335223]I know.. C++ structs, loops, conditions, functions, file operations[/quote] Looking at the code you posted it's hard to beleive that.. Unfortunately given the number of basic errors in code are too many.. As someone said it's better if you brush up the basics, re-write this piece of code, [I]compile … | |
Re: Not sure if this belongs here, but non-the-less it has saved me LOT of time when I've to work with someone else's code. :) Use [URL="http://sourceforge.net/project/showfiles.php?group_id=2319"][/URL]Astyle to format the C, C++, C#, and Java code. [URL="http://sourceforge.net/project/showfiles.php?group_id=2319"]Download[/URL] [URL="http://astyle.sourceforge.net"]Documentation[/URL] [URL="http://sourceforge.net/projects/astyle/"]Project Home[/URL] [U]DISCLAIMER[/U]: Be warned, if you're scared of blind tool runs that … | |
Re: So what have u tried so far.. ? Post the code you've done.. | |
Re: [url]http://www.siit.tu.ac.th/mdailey/class/2003_s2/its225/assignments/readdir.c[/url] | |
| |
I needed to get links to some good Java, J2EE tutorials and was surprised that daniweb::Java didn't have a thread on that.. Of course it's easy enough having Sun provide tutorials on most things, there might be some covering specific topics in better ways. Anyway here are the links I … | |
Re: Nice thread.. If ppl can also add a bit of review on a scale of 0-5 it would help.. Last I saw was 300.. It's the Troy/Alexander kinda theme.. I'll give it a 4.. The -1 is for the way movie winds up and be warned if you plan to … | |
Does the binary of JVM (e.g. java.exe) provide an option to work in a backward compatible mode? My problem is I have JRE 1.6.0_01 installed on my machine and I have an application that requires JRE 1.4.2_XX. I don't want to install JRE 1.4.2 only for this one application. PS: … | |
Re: Are you using C++ ?! Office-VB would be a much better choice if possible. | |
Re: Depending on your application one of the 2 approaches can be chosen.. If you have enough complexity in DB parts OR more than one servers connecting to DB layer, you might want to have database server separately.. In anycase as Ezzarel pointed out J2EE is designed EXACTLY for this purpose.. … | |
Re: [quote=shouvik.d;409049]while going thru STL I came to know something knows as functors. Thought I understood what practically it is but still could not make out it's advantage and usage. Could anybody throw some light over it. I need to know in detail about it.[/quote] This isn't related to hash, hope … | |
Re: [quote=venomlash;405862]I always learned that main returns an int so that you can put [inlinecode]exit(0)[/inlinecode], [inlinecode]exit(1)[/inlinecode] and other constructions in to tell you why the program quit. Or would that not work...?[/quote] Interesting question, to rephrase: If i have a void main() and in the code I write exit(11). When I … | |
Re: Probably [URL="http://www.daniweb.com/forums/forum15.html"]Web Design[/URL] is more appropriate forum for this query. Not being a web-developer/expert my guess would be that JSP for front-end and Apache as a web-server should do your work. Looking at your problem stmt there doesn't seem to be much business logic and given a local network there … | |
Re: What Ezzaral said is true that " The attibutes inherent to the roll should go into CRoll", but IMO in the given list there are no such attrs. All attrs are specific to different usecases. An inherent attr would be something like a serial number (if there is such a … | |
Re: Check out [URL="http://www.daniweb.com/code/snippet667.html"]this code snippet[/URL], it loads some class files and shows an example of loading a resource (directory or jar file) and then looking for a specific class in it. It uses URLClassLoader (one of the standard impl of ClassLoader), you'll find more implementations if you don't wanna write … | |
Re: my guess is you're missing one of the std libs to be passed on command line to the linker.. one that contains definition for String class.. | |
Re: Nothing else than [URL="http://www.daniweb.com/forums/thread70096.html"]this[/URL] can help you my friend.. | |
Re: [quote=jbennet;407180]Hey, is the Java VM written in C++ ?[/quote] Yeah, I first noticed that "java" executable is written in C/C++ when I had some hotspot error and it wrote down a core file, whose pstack showed calls from main()->createVM()... So it's C at least if not C++. You can execute … | |
Re: [quote=masijade;408118]Java will always take the most specific applicable method. In this case, using null, the String one is the most specific, applicable method.[/quote] Seems like String one is the ONLY applicable method. At the call options are create and Object using "null" or create a String using "null".. Object doesn't … | |
Re: what's "dos"? AFAIK plain Eclipse can't do this. A war file is the web-achieve of J2EE.. you'll need to install some plug-in that supports development/creation of of web-achieves.. One such would be a licensed "IBM Rational Application Developer" or RAD.. once you install it, it installs required plug-ins for eclipse.. | |
Re: Check the piece of code that's throwing this error.. it could be written by someone else, in which case only that guy can tell you what he meant by 100 ! Looking at the info available it's not possible to say anything.. |
The End.