3,892 Posted Topics

Member Avatar for satish.paluvai

> 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 …

Member Avatar for ProgrammersTalk
0
133
Member Avatar for baltazar

[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.

Member Avatar for mzd12111
0
252
Member Avatar for christina>you

> 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.

Member Avatar for hbk619
0
794
Member Avatar for tiyagu_vpm
Re: tech

> 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 …

Member Avatar for jwenting
0
89
Member Avatar for Salem

> He didn't rep me at all!! Let's ban him! *hint* He repped only those who hang out with him in the IRC.

Member Avatar for Serunson
0
381
Member Avatar for satish.paluvai

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 …

Member Avatar for ~s.o.s~
0
135
Member Avatar for alienlinux

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 …

Member Avatar for ~s.o.s~
0
111
Member Avatar for Narayan.kv

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 …

Member Avatar for ~s.o.s~
0
152
Member Avatar for pnkbhat

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 …

Member Avatar for ~s.o.s~
0
118
Member Avatar for saswati_mishra

'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.

Member Avatar for Kelicula
0
92
Member Avatar for bazmanblue

There is surely some performance issue with the site, seems to take up all the bandwidth and makes the browser freeze for a second.

Member Avatar for MidiMagic
0
171
Member Avatar for Arch_Bytes

It means there is no such value or variable which you are trying to access. Posting some code might shed light on the situation.

Member Avatar for MidiMagic
0
124
Member Avatar for Dave Sinkula

Yes definitely, they should get a good smacking when needed. Smack smack smack...

Member Avatar for jbennet
0
320
Member Avatar for The Dude

500 Yay... ;-) Oh and btw, I love to see those monkeys die... *squish*

Member Avatar for The Dude
0
240
Member Avatar for krnekhelesh

You first need to draw the cirle and then do a flood fill, not after it. Swap the 'circle' and 'floodfill' statements.

Member Avatar for krnekhelesh
0
593
Member Avatar for krnekhelesh

> 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++'.

Member Avatar for JRM
0
273
Member Avatar for shadrakni

This thread with its controversial title has stopped being of any use to anyone. Closed.

Member Avatar for ~s.o.s~
1
360
Member Avatar for roryt
Member Avatar for roryt
0
91
Member Avatar for rdhiravani

JAR files are normal zip files. Use any zipping software like Winrar or Winzip to open them.

Member Avatar for jwenting
0
4K
Member Avatar for Ancient Dragon
Member Avatar for aasi007onfire

Read [URL="http://www.cppreference.com/escape_sequences.html"]this.[/URL]

Member Avatar for TkTkorrovi
0
105
Member Avatar for satish.paluvai

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 …

Member Avatar for jwenting
0
116
Member Avatar for satish.paluvai

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.

Member Avatar for jwenting
0
96
Member Avatar for DavidB

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);"/> …

Member Avatar for ~s.o.s~
0
125
Member Avatar for v8speedstr
Member Avatar for christina>you

Here you can get a (prepaid)plan for as cheap as $1 which allows you to make calls for total worth of $0.8

Member Avatar for ~s.o.s~
0
548
Member Avatar for kodiak

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].

Member Avatar for Killer_Typo
0
307
Member Avatar for stonecoldstevea

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 …

Member Avatar for Killer_Typo
0
130
Member Avatar for WaltP

> it really annoying that i still only have 1 Start contributing, they would automatically grow.

Member Avatar for peter_budo
1
1K
Member Avatar for varunrathi

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.

Member Avatar for ~s.o.s~
0
97
Member Avatar for pixrix

> 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 …

Member Avatar for ~s.o.s~
0
178
Member Avatar for iw2nhl

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.

Member Avatar for iw2nhl
0
101
Member Avatar for no1zson

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]

Member Avatar for no1zson
0
165
Member Avatar for praneeth_gunda
Re: Crc

> Do you look like your avatar?. He meant gender. And yes, I do look like my avatar. :-)

Member Avatar for Aia
0
272
Member Avatar for shivams

> 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]

Member Avatar for ~s.o.s~
0
96
Member Avatar for pixrix

> 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 …

Member Avatar for ~s.o.s~
0
295
Member Avatar for backformore543
Member Avatar for mattyd

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.

Member Avatar for jbennet
0
395
Member Avatar for Ancient Dragon

> Does everyone get that message when viewing closed threads ? Yes, I thought it was weird, but WTH. ;-)

Member Avatar for jbennet
0
238
Member Avatar for pixrix

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] = …

Member Avatar for pixrix
0
4K
Member Avatar for Spycat

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 …

Member Avatar for Resonate
0
123
Member Avatar for dcc

> 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 …

Member Avatar for UrbanKhoja
1
619
Member Avatar for hinduengg

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.

Member Avatar for hinduengg
0
200
Member Avatar for radskate360

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] …

Member Avatar for Killer_Typo
0
119
Member Avatar for UrbanKhoja
Member Avatar for happygeek
0
131
Member Avatar for alienlinux

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 …

Member Avatar for alienlinux
0
111
Member Avatar for bobs360

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.

Member Avatar for ~s.o.s~
0
327
Member Avatar for greeny_1984

Something like[URL="http://www.4guysfromrolla.com/webtech/tips/t051706-1.shtml"] this?[/URL]

Member Avatar for greeny_1984
0
240
Member Avatar for ShawnCplus

> It's not like it really matters it was just something to do while I was bored. I guess this explains it all. ;-)

Member Avatar for dougy83
0
232
Member Avatar for joshSCH

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.

Member Avatar for Ezzaral
0
2K

The End.