3,892 Posted Topics
Re: > can we run a run() method with out using a start() method in a program? Yes, but it won't work the way you expect it to work. Calling the run() method directly would be like calling a normal method. No thread of execution is created, no concurrency. On the … | |
Re: [URL="http://www.ececs.uc.edu/%7Efranco/C321/html/RedBlack/redblack.html"]Implementation[/URL] of Red Black Trees in Java along with applet for illustration purposes. | |
Re: > Maybe that's what this magician was doing. Maybe you didn't see how he removed his shoes, exactly at the same spot at which he was standing. The only way I think this was possible is by assuming that those people were in this hoax. | |
Re: > y c++ is not fully oops Because it was meant as a OO replacement for C programmers. Also not everything is an object in C++. In pure OO languages, even a class in an object and everything which happens, happens due to message passing between objects. Smalltalk is a … | |
Re: > He didn't rep me at all!! Let's ban him! *hint* He repped only those who hang out with him in the IRC. | |
Re: A linked list is nothing by collection of nodes which contain data and a pointer to the next node. [code] Node -----^------ [data | ref] -> [data | ref] -> ....[/code] Create a class called as Node which would have an Object reference to hold reference to objects and a … | |
Re: You just have to accept the user input, send the data to a script on the server (python or perl) which would append the data to a file which already exists on the server. Maybe you should start off with [URL="http://www.python.org/doc/essays/ppt/sd99east/index.htm"]this[/URL] if you plan on using CGI with Python or … | |
Re: Narayan, have you done some research on your part? Have you skimmed through the IE bug database(if there is any) to see if this problem has been encountered by others? Maybe you are using some Gecko specific features in your code which don't seem to work well on IE. Have … | |
Re: Start off with a simple project of creating a 'simple login page'. The user input would be validated against the values in the database. After you finish this, let us know so that we can suggest you better and tougher exercises. Considering that you have already completed your course, I … | |
Re: 'Doesn't work' is a very generic. You need to come up with a specific problem if you want help. There are loads of AJAX tutorials out there, just read a few of them and if you are still stuck, post your code here. | |
Re: There is surely some performance issue with the site, seems to take up all the bandwidth and makes the browser freeze for a second. | |
Re: It means there is no such value or variable which you are trying to access. Posting some code might shed light on the situation. | |
Re: Yes definitely, they should get a good smacking when needed. Smack smack smack... | |
Re: 500 Yay... ;-) Oh and btw, I love to see those monkeys die... *squish* | |
Re: You first need to draw the cirle and then do a flood fill, not after it. Swap the 'circle' and 'floodfill' statements. | |
Re: > BORLAND C++ is the best!! 'Created a game using C++ and OpenGL' is much better thing to write on your resume than 'Created a game using Borland C++'. | |
Re: This thread with its controversial title has stopped being of any use to anyone. Closed. | |
Re: You can use the 'className' property of an element to change the class name on the fly. | |
Re: JAR files are normal zip files. Use any zipping software like Winrar or Winzip to open them. | |
Re: Read [URL="http://www.cppreference.com/escape_sequences.html"]this.[/URL] | |
Re: Satish, store the client information / state in client session i.e. session variables. Since the servlet class is loaded in memory on its first invocation and the client reqests just result in the creation of thread, storing state in servlet instance variables would make them kind of global, i.e. accessible … | |
Re: IMO, a class provides a template for the creation of objects. It doesn't make sense to make a class synchronized. You can always make all the methods of a class synchronized if you want or place synchronized blocks inside methods and . Read [URL="http://java.sun.com/docs/books/tutorial/essential/concurrency/sync.html"]this[/URL] whole thing. | |
Re: You can clear the fields without reloading the form by keeping a 'RESET' button on your page. [code=html] <html> <head> <title>Sample</title> <script type="text/javascript"> function fillValue(frm) { frm.err.value = "ERROR"; } </script> </head> <body> <form name="frm"> <label for="error">Error</label> <input type="text" id="err" name="err" /> <br /> <input type="button" value = "Calculate" onclick="fillValue(this.form);"/> … | |
Re: Here you can get a (prepaid)plan for as cheap as $1 which allows you to make calls for total worth of $0.8 | |
Re: AFAIK, thats not standard C++. There is no 'for...each' construct in C++. Its [URL="http://en.wikipedia.org/wiki/C++/CLI"]C++/CLI[/URL]. | |
Re: You end up removing the fourth character instead of the third one. Doing [INLINECODE]if(i % 3 == 2)[/INLINECODE] would solve the problem. But I still think that removing third character from each _word_ is different from removing third character from the string as a whole. Hello World Helo Wold Heo … | |
Re: > it really annoying that i still only have 1 Start contributing, they would automatically grow. | |
Re: No you can't. You can only 'delete' or 'free' dynamically allocated memory. Plus the above statement won't compile. Go figure. And please see the date of the previous post before posting in a thread. This thread is 3 years old. | |
Re: > atoe[0][0] == atoe[0][1] == atoe[0][2] This line doesn't do what you think it does. The evaluation of this expression is from left to right so the result of the first comparison(between first and second term) is then compared with the third term. Create a function called 'threeEqual' with something … | |
Re: Asking it on the [URL="http://www.qtforum.org/"]QT forums[/URL] would be more like it since many must have encountered the same issue. | |
Re: Maybe coding in this fashion would be less confusing: [code=java] public class Employee { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }[/code] | |
Re: > Do you look like your avatar?. He meant gender. And yes, I do look like my avatar. :-) | |
Re: > The main difference is that Java can stand on its own while > JavaScript must be placed inside an HTML document to function. Not necessarily. Javascript is a full-fledged scripting language which is very much capable of standing on its own feet. Read [URL="http://developer.mozilla.org/en/docs/About_JavaScript"]this[/URL] and [URL="http://developer.mozilla.org/en/docs/JavaScript_C_Engine_Embedder%27s_Guide"]this.[/URL] | |
Re: > from what i understand C++ is a subset of C C++ is the [I]functional superset[/I] of C. > In reality I will need to know both. Learning C++ should do the job. Like I said, since C++ is the functional superset of C, knowing C++ should as such make … | |
Re: My favs: [LIST] [*]Iron Maiden - Brave New World [*]Velvet Revolver - Contraband [*]Jimmy Eat World - Bleed American [*]Incubus - Morning View [*]Iron Maiden - X Factor[/LIST]....and many more. | |
Re: > Does everyone get that message when viewing closed threads ? Yes, I thought it was weird, but WTH. ;-) | |
Re: A real world use of two dimensional arrays is for representing matrices. Here is an example of 3 x 3 identity matrix: [code=cplusplus] int matrix[3][3] = {0}; for(int i = 0; i < 3; ++i) { for(int j = 0; j < 3; ++j) { if(i == j) matrix[i][i] = … | |
Re: You can set up a text area on your web page, the way it is done on blogging sites, with two text fields for username and password which would be known to the one who wants to post announcements. After that, its a simple case of validation and updating the … | |
Re: > all of the other sites that I participate in are geared toward a mature membership I would give you a nice example. If you must be knowing, newsgroups are the sites which are mentioned now and then when it comes to 'mature people', but even there, the discussion tends … | |
Re: Every C program is a valid C++ program.(except for the deprecated header declarations). C++ is the functional superset of C. It seems that you need to read a few good C++ tutorials and books to get your concepts of 'structs' right. | |
Re: You need to read your notes a bit more. The way you are passing array to function is not correct. You must do something like this; [code=c] int myArray[BUFSIZ] = { 0 }; myFunction(myArray, BUFSIZ); // function call void myFunction(int array[], int size) { // do your processing here }[/code] … | |
Re: You can include any file you want using server side includes to avoid duplication of code. For eg. each page of a website has a common header and footer section. Instead of repeating the code, the header and footer sections are stored in separate files and included in every page … | |
Re: Looking at your code, I can clearly see that you are desperately struggling with the language. Maybe you should try to get a firm grip over the langauge(or computer science concepts) rather than diving into problems straight away. [URL="http://www.daniweb.com/forums/thread50370.html"]This link[/URL] has some good resources for beginner C programmers. | |
Re: Something like[URL="http://www.4guysfromrolla.com/webtech/tips/t051706-1.shtml"] this?[/URL] | |
Re: > It's not like it really matters it was just something to do while I was bored. I guess this explains it all. ;-) | |
Re: Maybe [URL="http://www.google.co.in/search?hl=en&q=communicating+with+applet&btnG=Search&meta="]these links[/URL] would give you an idea. |
The End.