Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
c x 10
java x 8
c++ x 2
Member Avatar for beatlea

Hello, I have a rather complicated pointer/syntax problem. One of my function arguments is a pointer to a structure which contains a void pointer. If I point the pointer to a scalar then in my function I can access it like this: [ICODE] local_var = (appropriate_type *) struc->pointer; [/ICODE] But …

Member Avatar for beatlea
0
94
Member Avatar for beatlea

Hello, I am trying to make one patch transparent. What the documentation says about making only the specified object transparent is this: "alpha(object_handle,value) sets the transparency property only on the object identified by object_handle." However what I get is all pathces being transparent, even though I use ALPHA with a …

0
67
Member Avatar for beatlea

Hello, Could you explain me what this statement means? I am confused with k/=2 as iteration statement. [icode] for (int k = p; k > 0; k /= 2) [/icode] Thanks

Member Avatar for beatlea
0
113
Member Avatar for beatlea

Hello, I coded binary and Fibonacci search algorithms in Fortran and was trying to determine for what size of array Fibonacci search would become faster than the binary search. Unfortunately, what I get is the binary search being quicker on any given array. Here is my implementation of the Fibonacci …

Member Avatar for Adak
0
138
Member Avatar for beatlea

Hello, I created an ArrayList with lists and arrays (randomly chosen) of queues and now need to get access to these lists and arrays to add, remove and display elements in them. How could I do this? I tried ArrayList methods like get(int index) and iterator(), but it just shows …

Member Avatar for beatlea
0
168
Member Avatar for beatlea

Hello, I am trying to write my first ever assignment in Java and am straggling with it. I have a superclass LivingThing and two subclasses, Monster and Human. Both subclasses have an attribute 'strength', but the maximum value of it is different for each of them. In my superclass I …

Member Avatar for beatlea
0
104
Member Avatar for piers

Something I have noticed with my uni course is that there are so few women on it. Is there some reason why women stay away from the best part of using a computer IE programming in java? am I a bit strange in getting excited when I finally finish a …

Member Avatar for neocoder
0
340
Member Avatar for beatlea

Hello, Is there any way of reading words from a string containg a few words separated by white spaces using a loop? I don't know how many argumets the user will input. I wanted to do it like this: [code] for(i=0;i<wordCounter;i++) { sscanf(input,"%s",argument[i]); } [/code] But this keeps reading in …

Member Avatar for Salem
0
3K
Member Avatar for beatlea

Hello, I have to write a program using exec() where user can specify the pathname and arguments. I am trying to read in the arguments in the following way: [code] #include <stdio.h> #include <unistd.h> #include <sys/wait.h> int main() { ... int i; char *cmd[100]; char argument[100]; i = 0; for(i=0;i<3;i++) …

Member Avatar for Aia
0
113