Search:

Type: Posts; User: moddinati

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thanks for the quick reply. I tried your...

    Thanks for the quick reply.

    I tried your suggestion, I still get a "type qualifier mismatch" warning message and what is printed out on the LCD screen is jumbled garbage.

    Also, I'm using the...
  2. Passing String to Function (Without Previous String Declaration)

    Is there a way to do this without declaring the strings "Line 1" or "Line 2" at the beginning of main? (see below)

    The function call from main:


    printLCD("Line 1","Line 2");


    function code:
  3. Replies
    3
    Views
    3,710

    Thanks for the response, although I'm not sure...

    Thanks for the response, although I'm not sure that will work for my purposes.

    My purpose for doing this is i'm writing some multi-threaded code using Cilk. I plan on each function call here...
  4. Replies
    3
    Views
    3,710

    generalized recursive for loop

    Hello,

    I'm trying to create a generalized recursive for loop function. I need some way to convert a string into runnable code (preferably through a macro). Here is what I have so far:


    ...
  5. Replies
    4
    Views
    1,542

    I will have to look more into those. I do have...

    I will have to look more into those. I do have access to both sources. I'm just looking for the quickest solution, so I will probably use pipes.

    Thanks for the help, its much appreciated.
  6. Replies
    4
    Views
    1,542

    ok thanks. Is the only way to pass data is...

    ok thanks.

    Is the only way to pass data is read/write every piece of data to the stream, or is there an eaiser way? Especially for passing things like multi-dimensional arrays.
  7. Replies
    4
    Views
    1,542

    Calling a subprogram

    Hello,

    Here's my problem. I have some existing programs, but I want to replace a single function call in Program A, with a completely separate Program B. I can't just implement program B as a...
  8. Replies
    8
    Views
    2,057

    That was exactly the problem. Thanks swoopy,...

    That was exactly the problem. Thanks swoopy, everything works great now.
  9. Replies
    8
    Views
    2,057

    thanks swoopy, fixed that issue. That still...

    thanks swoopy, fixed that issue.

    That still doesn't resolve my main issue.

    I did notice though, that (when I only traverse half the branch so it actually works), that as I return to java i...
  10. Replies
    8
    Views
    2,057

    Another Note, comment out the line branch2 =...

    Another Note, comment out the line

    branch2 = findNumLayers(currentLayer,myTree.boxes[whichBox].dau2,myTree);
    So it only goes down one branch of the tree, it seems to work fine.

    I still need...
  11. Replies
    8
    Views
    2,057

    The problem with trying to use the debugger, is...

    The problem with trying to use the debugger, is this C++ code is run through JAVA's JNI. I tried the debugger, but it was unhelpful.

    I changed the return statement to something simple, such as...
  12. Replies
    8
    Views
    2,057

    Binary tree problem

    hello,

    I wrote a recursive function to try and find the depth of a binary tree, but when I run the program I keep getting an invalid memory access error.

    A couple notes about the tree. The...
  13. Replies
    4
    Views
    1,206

    thanks cpjust, thats exactly what i'm looking for.

    thanks cpjust, thats exactly what i'm looking for.
  14. Replies
    4
    Views
    1,206

    Thanks for the reply. Is that the only way,...

    Thanks for the reply.

    Is that the only way, what if its not in a class, but if its just a simple primitive type variable?
  15. Replies
    4
    Views
    1,206

    Creating string from variable name

    Hello,

    Is it possible to create a string from a variable name?

    for example, say i have a variable
    type myVariable;
    could I get a string as
    char* name = "myVariable"

    Hope this makes sense
  16. Replies
    1
    Views
    886

    what does this code do?

    I'm looking at some code I'm trying to use out of a book, but there are a couple portions of it I don't understand.



    m=1;
    for (ntmp = ntps; ntmp; ntmp >>= 1) {
    m <<= 1;
    }
  17. Replies
    17
    Views
    21,848

    I may try this, it seems a little easier to...

    I may try this, it seems a little easier to implement, at least for me.

    thanks again
  18. Replies
    17
    Views
    21,848

    I think i misunderstood you initially, thanks for...

    I think i misunderstood you initially, thanks for clarifying.



    Thanks for the reply. I realized the problem was that I was using the Node ptr without first pointing it to anything. oops.

    Do...
  19. Replies
    17
    Views
    21,848

    I have two different arrays of that size, so i...

    I have two different arrays of that size, so i don't think that would work.



    I'm not sure if I'm going to be allowed to do that. The code itself is a clustering algorithm in which the...
  20. Replies
    17
    Views
    21,848

    Thanks for taking the time to follow up on it. ...

    Thanks for taking the time to follow up on it.

    two of the arrays are always exactly the same size. The magnitude of these can vary a lot, but it will be anywhere in the range from 1 to 500ish,...
  21. Replies
    17
    Views
    21,848

    So I've been doing some reading, and it seems I...

    So I've been doing some reading, and it seems I have two choices:
    1) Either to send each array separately like already mentioned, although the memory would still be non-contiguous which might cause...
  22. Replies
    17
    Views
    21,848

    in my actual program, I will end up having three...

    in my actual program, I will end up having three dynamically created arrays as members of my struct. Is there another way to work around this issue?
  23. Replies
    17
    Views
    21,848

    Thanks for the quick reply. I knew it had to be...

    Thanks for the quick reply. I knew it had to be something with the memory, I just was unable to pin it down. It makes a lot more sense now. With that being said, I tried implementing what you...
  24. Replies
    17
    Views
    21,848

    Malloc and MPI

    I have a couple of questions. First, when using malloc to dynamically create an array, the new array is still contiguous in memory correct?

    Second, I'm trying to send a C structure in MPI in...
  25. that was it, thanks

    that was it, thanks
Results 1 to 25 of 26
Page 1 of 2 1 2