- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 52
- Posts with Upvotes
- 44
- Upvoting Members
- 35
- Downvotes Received
- 8
- Posts with Downvotes
- 7
- Downvoting Members
- 6
I'm an addict of gaming..
Love software development.. Love C++, hate Java [mods please let me say that here at least :)]..
A fast driver (as much as Bangalore traffic will permit)..
Mmmm what else.. yeah photography.. See my blogs..
- Interests
- Photography Gaming: - AOE (TC usually) - Q3 Chess Last but not the least by far: Programming :)
- PC Specs
- Fujitsu Siemens Lifebook 7110 S -------------------------------------- Home made: Gigabyte GA-P35-DS3L…
| |
Re: Politics is the art of preventing people from taking part in affairs which [I]properly[/I] concern them. | |
Re: Just to add the fact that this is type independent (i.e. not specific to char*): operator == is overloaded/implemented for all basic types in C++. A pointer is also a basic type. The implementation of operator == that compares pointers is NOT to compare what they to point to but … | |
Re: How exactly did you manage your first 6 sems.. ?! Try [URL="http://java.sun.com/docs/books/tutorial/"]Sun's Java Tutorial[/URL].. | |
Re: Some for graphics ppl: [LIST] [*]Write a program to draw a rectangle, ellipse, square, circle, point and line based on user input. (Beginner) [*]Write a program to emulate Microsoft Paint. It should be possible to switch between different tools (circle, rectangle, eraser...) using pre-defined key strocks. - Intermediate [*]Write a … | |
Re: hey.. guess this is going to be an unhelpful and late answer, but given the format of input you have, there is no fixed formula to parse it using `awk` or `sed` that I can see. You have gotta write code specific to each section in your input, to get … | |
Re: [quote=Aia;369444]>how to complile and execute a c pro in editplus Editplus is a full featured text editor. Only to produce the source code. [/quote] Although it's just an editor, it would be supporting configuring user tools (I use Textpad which does). Also it's easy to suggest a new IDE but … | |
Re: Honey you chose THE wrong site/forum for posting this... :)) Completely agree with joeprogrammer. | |
Re: Nothing's Gonna Change My [B]Love[/B] For You - Glenn Medeiros | |
Re: Here is something they claim is shown in classrooms (of IIM-A - Indian Institute of Mgmt - Ahmedabad).. I think it's a joke.. It's good none-the-less.. | |
Re: Couldn't help but notice that unless there is some bug in daniweb.com this is most read thread I've seen so far.. ! 17,751 times.. :) | |
Re: [quote=Ancient Dragon;393474]>>i saw this code in a particular book..... what an awful algorithm to put in a book! I thought books were supposed to teach the language not how to obfuscate it. I think you should trash-can that book and get a different one.[/quote] Unless the book is this :) … | |
Re: [LIST=1] [*]You throw your back out on the toilet. [*]You shave your ears. [*]Your second wife calls your first wife “ma’am” [*]You're genuinely excited when your prescriptions arrive in the mail. [*]You read the obits in the newspaper to check the ages of the dead people. [*]You read a newspaper. … | |
Re: Look at the call stack and see which d'tor (destructor) is being called, that should tell you where the problem is.. | |
Re: >> but for some reasons is not working for me Unable to guess the reasons. Is there ANY output produced when you run this script? I'm not a batch file expert, but do you REALLY need to use batch file only? If not I highly recommend using something like Cygwin … | |
Re: Problem is exactly what you pointed out. A recursive function without a "break condition". In this case if [iCODE]getLeft()[/iCODE] or/and [iCODE]getRight()[/iCODE] is NULL then you shouldn't call [iCODE].iPathLength()[/iCODE] on it, thus breaking the recursion. Theoretically it might still be possible to make this code itself work (using specialized derived classes … | |
Re: Try [ICODE]dos2unix [/ICODE]on your script.. looks like there are [ICODE]^M[/ICODE] chars.. you must've edited the script using some Windows' app instead of `vi` or some unix app.. Not that you can't use Windows app.. just be careful in setting up the preferences in the editor to ensure it saves in … | |
Re: Refer to the famous [URL="http://www.google.com/search?q=sed+one+liners"]sed one liners[/URL], I understand they're [URL="http://sed.sourceforge.net/sed1line.txt"]even maintained[/URL] now. | |
Re: To find out what's happening in the program, you can apply a simple technique called "[URL="http://en.wikipedia.org/wiki/Debugging"]debugging[/URL]". In this case: * Add some traces, to print out all variables at all steps, to your code so you know what's happening with each input. * use a debugger. | |
Re: You can of course "return" a string like this.. which is not really returning and it forces you to ensure that there are no unwanted `echo`s in the function.. but it works.. :) [CODE]#!/bin/bash function gimme_string() { echo "returned string" } my_string=`gimme_string` echo "String I got is: $my_string"[/CODE] | |
Re: Can you post your code and point to where the problem is? Or is it that you don't understand Huffman coding? | |
Re: Can you post the full log and exception stack? | |
Re: Are these arraya your keys to the map/list? Can there be any repetition? If there is repetition, is it needed to hold all instances (e.g. like in a std::multimap) or only one key should be there (like in std::map)? What's the max number of entries per array? How abt picking … | |
Re: Which shell? What's the loop break condition? How to loop: [url]http://www.freeos.com/guides/lsst/ch03sec06.html[/url] How to call a script: It's just a command give full path. E.g. a.sh wants to call b.sh then [CODE]#!/bin/bash #a.sh PATH_TO_B=/tmp/b.sh echo Calling b.sh $PATH_TO_B echo $PATH_TO_B exited with $? #if b.sh is not executable then: /bin/bash $PATH_TO_B … | |
Re: Try [URL="http://en.wikipedia.org/wiki/DTrace"]Dtrace[/URL]. You shoudl be able to add some hook into kernel to monitor directory access and log if the directory in question == xyz. Only port for linux I saw was from [URL="http://www.crisp.demon.co.uk/tools.html"]CRiSP[/URL] available [URL="ftp://crisp.dyndns-server.com/pub/release/website/dtrace"]here[/URL]. Check status.txt for compatibility with your OS/version. If you can make it run, then … | |
Re: [QUOTE=mcconnell_34;1646837]didn't work[/QUOTE] Ppl need more than "didn't work" to understand a problem. [QUOTE=mcconnell_34;1646837]my man[/QUOTE] See [U]her[/U] avatar? Read: "Code Goddess"? | |
Re: What you're looking for is called [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/util/regex/Pattern.html#cg"]capturing group[/URL] in java regex. e.g. for this input: "world cup, football, asia, 2011" - when you apply this regEx: "^world cup, football, ([^,]*), 2011$" - then matcher.group(1) is set to "asia" - when you apply "^world cup, ([^,]*), ([^,]*), 2011$" - then matcher.group(1) … | |
Re: Although your confidence in abilities of us at daniweb is overwhelming, we have not yet mastered the art of telepathy or remote desktop viewing. So we are unable to see what the errors are. Read [URL="http://electrosofts.com/cgraphics/"]this [/URL]. It tells you which lib, bgi you need and so on. Also note … | |
Re: Line 47: if (mainmenu == "New" || "new" || "New Game" || "new game" || "New game" || "new Game" || "newgame" || "Newgame") - mainmenu == "New" <-- is a condition - "new" <-- is NOT a condition - "New Game" || "new game" || "New game" || "new … | |
Re: How abt rsh? Is that enabled? ssh is just a secure-rsh, so whatever you can do with ssh can also be done with rsh. |