Search:
Type: Posts; User: slowcoder
Search:
Search took 0.06 seconds.
-
November 7th, 2007, 03:53 PM
Bitwise-inclusive-OR assignment Question-
C allows you to do this:
static int *line2 = NULL;
int failed;
failed |= (line2 == NULL);
-
September 14th, 2007, 10:47 AM
nevermind...i figured it out :)
-
September 14th, 2007, 10:21 AM
This is an escape sequence in C: \x7f
and is equivalent to: DEL
How would I represent this in Java as an octal character constant? and what is the logic behind it?
Thanks!
-
September 6th, 2007, 03:12 PM
This is a stupid question, but I just don't know what the syntax would be if I changed the below variables to integers since int cannot invoke clone(). Help is greatly appreciated.
ll_point p =...
-
August 22nd, 2007, 01:31 PM
Ah, makes sense! Thanks dlorde, that took care of everything :)
-
August 21st, 2007, 12:01 PM
hmmm...well, the only thing that I changed to your recommendation was to this:
private class E_list_comp implements Comparator<E_list_entry> {
public int compare(E_list_entry a,...
-
August 21st, 2007, 08:41 AM
dlorde, thanks for your help again. Unfortunately when I changed it exactly as you said, I still receive the same warning message. Is there something else I need to do? Thanks!
-
August 20th, 2007, 03:05 PM
I'm re-visiting this problem that I had, because I want to try and fix it the proper way. I've read more Java documentation, but really don't understand the warning that I receive and what I need to...
-
August 9th, 2007, 02:49 PM
I will be looking into the ArrayList class in the book to get a better understanding of it.
In the mean time, I was pointed to a chapter in the book that might help me with getting rid of the...
-
August 8th, 2007, 12:20 PM
The code is actually not from a book. This is pre-existing code originally from C. I'm just trying to work with the book to understand the syntax I need to use in order to fix the null pointer...
-
August 7th, 2007, 01:18 PM
Apparantly I created an array of null pointers shown in the code below (which is obviously wrong). I'm reading a Java book and from what I gather, I need to go through that entire array and...
-
July 31st, 2007, 12:52 PM
Oh believe me, I fully agree with your logic :) This is just pre-existing C code that has been given to me to convert into Java and I wanted to make sure I had the right idea of what was going on. ...
-
July 31st, 2007, 10:27 AM
I'm trying to understand multiple goto's in a function. For the code below, if it goes to Return1 & does the line:
RetVal++; , would it then go back into the loop or would it proceed down to...
-
July 26th, 2007, 08:39 AM
This is the function that is called within the other function:
static void e_map_loop(int *p1, int *p2)
{
int c;
for (c = 0; c < 48 - 2; c++)
{
*p2++ = p1[0] - p1[2];
-
July 25th, 2007, 09:58 AM
Right right right...
I'm sorry in C, it would be:
private void e_map(int m1[48][48], int m2[48][48], lm_struct lms) {
int r;
int *p1, *p2;
for (r = 0; r < 48; r++)
-
July 25th, 2007, 07:56 AM
This code is what I would do in C; however, Java gives two errors on the lines below with astericks. The error is: Type mismatch: cannot convert from int[] to int. What do I need to do in Java to...
-
July 13th, 2007, 02:58 PM
I want to be able to sort an array within the function: sort_horiz. However, I'm not too familiar with implementing Comparable so I have a 2 errors that I need help with. Your suggestions are much...
-
June 19th, 2007, 09:41 AM
Here's the relevant C code where it is assigned the start of an array:
static int list_count, horiz_list_count, verti_list_count;
void fi_and_de(dr_struct *dr)
{
list_count = 0;
...
-
June 18th, 2007, 01:18 PM
dlorde, I'm coming further along with my conversions, and I stumbled upon a problem. Are you sure that the e_list[DM_N_E], *verti_e_list; part of the C code:
static struct e_list_entry
{
...
-
June 12th, 2007, 09:34 AM
dlorde, thank you for the full explanations. It's much appreciated :)
I have another question based on your response. One of the functions that would utilize that class is this one:
static...
-
June 11th, 2007, 03:09 PM
I'm working on a project converting a bunch of C source files into Java ones. Doing okay so far with not much Java background. However, I'm stuck on this C code:
static struct e_list_entry
{...
-
January 17th, 2007, 10:07 AM
WOW! HanneSThEGreaT & GremlinSA...your projects are great! And Gremlin, that scrollbar is a perfect addition to the zoom feature :) I'm going to try and adapt these concepts into my project today;...
-
January 16th, 2007, 12:34 PM
HanneSThEGreaT, that is a very clever program. Thank you! I'm trying to adapt something like that in my program; however, I'm having trouble. I have one PictureBox containing an image like your...
-
January 16th, 2007, 10:03 AM
I have an image in a PictureBox and I want to be able to have buttons on my form that allow a user to zoom in and out as they wish. However, it doesn't seem like the .Zoom property works with the...
-
January 10th, 2007, 04:47 PM
I knew it was something simple :) Thanks GremlinSA!
|
Click Here to Expand Forum to Full Width
|