Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: slowcoder

Page 1 of 8 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    1,149

    Bitwise-inclusive-OR assignment Question

    Bitwise-inclusive-OR assignment Question-

    C allows you to do this:


    static int *line2 = NULL;

    int failed;
    failed |= (line2 == NULL);
  2. Re: Converting to an Octal Character Constant

    nevermind...i figured it out :)
  3. [RESOLVED] Converting to an Octal Character Constant

    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!
  4. Changing variables to int's and removing clone()

    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 =...
  5. Re: Need Help with Sorting (implementing Comparable)

    Ah, makes sense! Thanks dlorde, that took care of everything :)
  6. Re: Need Help with Sorting (implementing Comparable)

    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,...
  7. Re: Need Help with Sorting (implementing Comparable)

    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!
  8. Re: Need Help with Sorting (implementing Comparable)

    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...
  9. Replies
    6
    Views
    1,361

    Re: Help Initializing Each Entry in an Array

    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...
  10. Replies
    6
    Views
    1,361

    Re: Help Initializing Each Entry in an Array

    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...
  11. Replies
    6
    Views
    1,361

    Help Initializing Each Entry in an Array

    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...
  12. Re: C Help - Multiple goto's in a Function

    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. ...
  13. [RESOLVED] C Help - Multiple goto's in a Function

    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...
  14. Replies
    6
    Views
    1,133

    Re: Simple Integer & Array Problem

    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];
  15. Replies
    6
    Views
    1,133

    Re: Simple Integer & Array Problem

    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++)
  16. Replies
    6
    Views
    1,133

    Simple Integer & Array Problem

    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...
  17. [RESOLVED] Need Help with Sorting (implementing Comparable)

    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...
  18. Replies
    6
    Views
    1,519

    Re: Need Help Converting a C struct to Java

    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;
    ...
  19. Replies
    6
    Views
    1,519

    Re: Need Help Converting a C struct to Java

    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
    {
    ...
  20. Replies
    6
    Views
    1,519

    Re: Need Help Converting a C struct to Java

    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...
  21. Replies
    6
    Views
    1,519

    Need Help Converting a C struct to Java

    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
    {...
  22. Replies
    25
    Views
    73,640

    Re: Zoom in & out of an Image within a PictureBox

    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;...
  23. Replies
    25
    Views
    73,640

    Re: Zoom in & out of an Image within a PictureBox

    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...
  24. Replies
    25
    Views
    73,640

    Zoom in & out of an Image within a PictureBox

    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...
  25. Re: Possible to Bold TreeNodes in a TreeView?

    I knew it was something simple :) Thanks GremlinSA!
Results 1 to 25 of 197
Page 1 of 8 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center