Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 23 of 23
Search took 0.10 seconds.
Search: Posts Made By: djdante97
Forum: Computer Programming 03-23-2004, 12:50 AM
Replies: 3
Views: 658
Posted By djdante97
make sure you're not calling the function again...

make sure you're not calling the function again (recursing) at the end of the function, or after the do-while loop.. without seeing the code i can't really tell.
Forum: Computer Programming 03-21-2004, 11:21 PM
Replies: 3
Views: 658
Posted By djdante97
use a do-while loop. do { ... //switch...

use a do-while loop.

do {
...
//switch statements
...
case 4:
exit = true;
break;
} while (exit == false)
Forum: Java and JSP 12-11-2003, 05:48 PM
Replies: 4
Views: 2,072
Posted By djdante97
Actually, that is one of the primary differences...

Actually, that is one of the primary differences between Java applications and applets. Applications can not run a browser, only applets can.
Forum: Computer Programming 06-21-2003, 08:23 PM
Replies: 2
Views: 951
Posted By djdante97
You use operator overloading to be able to use...

You use operator overloading to be able to use the common operators with your own classes. If you had a Rectangle object that computes it's own area and you wanted to add two of these areas, you...
Forum: MySQL 05-13-2003, 10:54 PM
Replies: 8
Views: 1,232
Posted By djdante97
Wierdan is pretty close, he just started at the...

Wierdan is pretty close, he just started at the upper bound and went down. You can change this line:

to this:

$count=mysql_num_rows($result);
$index=0;

while ($line =...
Forum: MySQL 05-13-2003, 08:51 PM
Replies: 8
Views: 1,232
Posted By djdante97
What you had might work, but you'd have to...

What you had might work, but you'd have to subtract 2 from max(id) because mysql indexes start from 0, not 1.
what about :
SELECT * FROM tablename ORDER BY id DESC LIMIT COUNT(id)-2
Forum: Computer Programming 05-07-2003, 05:47 PM
Replies: 5
Views: 898
Posted By djdante97
I think to print in assembly, you need to push...

I think to print in assembly, you need to push all the appropriate values in the right order on the stack, and "call printf" or some other kernel supported output function.
Forum: Computer Programming 05-07-2003, 05:44 PM
Replies: 1
Views: 965
Posted By djdante97
because you scan in a float, and a float can't be...

because you scan in a float, and a float can't be a character (ie a space).
Forum: Computer Programming 04-20-2003, 05:36 PM
Replies: 6
Views: 967
Posted By djdante97
My mistake, you can't assign '20' to a char....

My mistake, you can't assign '20' to a char. Anything in single quotes can only by 1 character long. '20' is seen as 2 ascii characters.



So as i explained just above,
char n='2025';
won't...
Forum: Computer Programming 04-20-2003, 04:20 AM
Replies: 6
Views: 967
Posted By djdante97
Yea you can do that. An int is (on an intel or...

Yea you can do that. An int is (on an intel or motorolla) just 32-bits long where a char is 8 bits long (or 4 bytes for an int and 1 byte for a char). If you'd like to find out how big each data type...
Forum: MySQL 04-15-2003, 12:44 AM
Replies: 1
Views: 797
Posted By djdante97
field concatenation?

Hi there,
I'm wondering if there's a way to concatenate attributes and compare them with another attribute in the same table?

Basically, i have a table with a house number, street number, city,...
Forum: Computer Programming 04-10-2003, 12:27 AM
Replies: 5
Views: 820
Posted By djdante97
#include <string.h> char *strchr(const char *s,...

#include <string.h>
char *strchr(const char *s, int c);
Forum: Computer Programming 04-06-2003, 04:10 PM
Replies: 4
Views: 999
Posted By djdante97
first of all, when the processor does operations,...

first of all, when the processor does operations, the computer doesn't understand that it's a negative number, it's all in how the user/program interperets the data. negative numbers are represnted...
Forum: Computer Programming 04-04-2003, 04:41 AM
Replies: 2
Views: 1,613
Posted By djdante97
actually you can, that's the point of 'operator...

actually you can, that's the point of 'operator overloading'. the first problem i see with this code is that the operator functions don't return anything. they normally return an object of the same...
Forum: Computer Programming 04-02-2003, 12:00 AM
Replies: 4
Views: 1,057
Posted By djdante97
the difference is ++i is pre-increment, and i++...

the difference is ++i is pre-increment, and i++ is post increment.
example:

int i, s, t;
i = 1;
s = i++; // s gets 1 since i is incremented post-operation
t = ++i; // t gets 3 since i is...
Forum: Computer Programming 03-27-2003, 03:50 PM
Replies: 2
Views: 1,890
Posted By djdante97
don't pass by registers, only use registers for...

don't pass by registers, only use registers for returning values. push them onto the stack and use SP to access them. you'll have to find out what order they come in (whether sp+4 is the first arg or...
Forum: Computer Programming 03-20-2003, 11:12 PM
Replies: 2
Views: 1,497
Posted By djdante97
I think that Ada provides facilities for...

I think that Ada provides facilities for concurrent threads and processes.
Forum: Computer Programming 03-07-2003, 12:53 AM
Replies: 2
Views: 1,594
Posted By djdante97
Re: OOP inheritance

Looks ok except for this.. what is this part supposed to do?
Forum: Java and JSP 03-03-2003, 09:08 PM
Replies: 7
Views: 3,255
Posted By djdante97
JBuilder is nice for making applets/applications...

JBuilder is nice for making applets/applications in Java, but it's THE SLOWEST PROGRAM EVER.
Forum: Computer Programming 03-03-2003, 09:06 PM
Replies: 7
Views: 1,914
Posted By djdante97
Pointers are very useful for communicating with...

Pointers are very useful for communicating with hardware as your book says. I've had to write some basic hardware drivers (kb/sound) and all it is is pointer manipulation.
For one application, we...
Forum: Computer Programming 03-03-2003, 08:58 PM
Replies: 3
Views: 4,907
Posted By djdante97
scanf work similar to printf... first you specify...

scanf work similar to printf... first you specify the format string, then the variables that you want to read in to..

ex: scanf("%d %f %c", &anInteger, &aFloat, %aChar)

(i can't remember if...
Forum: Computer Programming 03-03-2003, 08:52 PM
Replies: 2
Views: 1,162
Posted By djdante97
There's no need to increment your idx variable at...

There's no need to increment your idx variable at the end of the for loop since it's in the update list. Also, change it from ++idx to idx++.
Forum: Computer Programming 12-10-2002, 06:50 AM
Replies: 3
Views: 3,580
Posted By djdante97
It doesn't appear that linux is capable of that...

It doesn't appear that linux is capable of that in it's default mode. check out this link to find out why:http://www.ale.org/archive/ale/ale-2000-07/msg00442.html
-Dan
Showing results 1 to 23 of 23

 
Forum Jump

All times are GMT +1. The time now is 06:15 AM.