Search:

Type: Posts; User: blue8173

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,129

    I found out how to use it: extern void eval();

    I found out how to use it:

    extern void eval();
  2. Replies
    2
    Views
    1,129

    Static Libraries

    Hi, I'm new to static libraries and am trying to use a static library in my code.

    First, I created a static library, libfunc.a, using this code:
    g++ -c math.cc
    ar rcs libfunc.a math.o

    I have...
  3. > //Can I make this show the original amount that...

    > //Can I make this show the original amount that the user entered? ie. "To make change for 65 cents, you will need the following coins" ?

    >printf("To make change for the amount you entered, you...
  4. wait() and signal() are for condition variables....

    wait() and signal() are for condition variables. Basically you want the consumer to wait on the variable and "consume" whenever it is signalled. You also want the producer to signal on the...
  5. For Question 2a, I don't think you need the for...

    For Question 2a, I don't think you need the for loop when you are calculating all the amounts in one loop.

    Your code:


    for (i=0; i<money; i+5) //really need help here :[
    {
    //FINDS HOW...
  6. You can generate C header files from Java by: >...

    You can generate C header files from Java by:
    > javah -jni file
    Where file is your java class file after compiling the java source file.
  7. Replies
    9
    Views
    7,216

    That was the problem!!! Thanks for all your help!

    That was the problem!!! Thanks for all your help!
  8. Replies
    9
    Views
    7,216

    Thanks, I got rid of the infinite loop...

    Thanks, I got rid of the infinite loop problem....

    but it seems like my program is only detecting a read on one of the file descriptors.



    FD_ZERO(&rd1);
    FD_SET(hdle1, &rd1); ...
  9. Replies
    9
    Views
    7,216

    Hi, Thanks for your help. I tried to follow...

    Hi, Thanks for your help.

    I tried to follow your advice, but I came across something strange.



    fd_set rd1;
    int hdle1 = setup(.....); //set up first source
    int hdle2 = setup(.....); //set...
  10. Replies
    9
    Views
    7,216

    Multiple Read File Descriptors

    Hi,

    I'm working on a project that requires listening and processing messages from multiple external sources.

    My application is written in C and running on a Linux Read Hat 9 machine.

    I...
  11. Replies
    1
    Views
    3,805

    oracle database connection

    Hi, I have been doing some investigation to connecting an Oracle 8.1 database with a C application. I've installed cygwin with gcc3.3.1 and want to use OCI to connect to my local Oracle database on...
  12. Replies
    3
    Views
    1,891

    trouble with strcpy

    Hi, I'm having trouble with the strcpy function:

    In my program, I'm trying to see if the last character of the a character string, called charstring, is a backslash.



    char ch =...
Results 1 to 12 of 12