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...
Type: Posts; User: moddinati
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...
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:
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...
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:
...
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.
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.
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...
That was exactly the problem. Thanks swoopy, everything works great now.
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...
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...
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...
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...
thanks cpjust, thats exactly what i'm looking for.
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?
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
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;
}
I may try this, it seems a little easier to implement, at least for me.
thanks again
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...
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...
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,...
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...
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?
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...
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...
that was it, thanks