Search:

Type: Posts; User: gkoenig

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: New to C++

    by gkoenig
    Replies
    5
    Views
    2,477

    Thank you for the help. I did not know that the...

    Thank you for the help. I did not know that the terminal command would be:

    c++ file.cpp -o file

    I appreciate the help.
  2. Thread: New to C++

    by gkoenig
    Replies
    5
    Views
    2,477

    I have taken out that particular header file but...

    I have taken out that particular header file but have received other errors.

    when i compile with the command:

    gcc file.cpp -o file

    I get the following error:

    ld: can't open output file...
  3. Thread: New to C++

    by gkoenig
    Replies
    5
    Views
    2,477

    New to C++

    Hello to all,

    I am a newbie to C++ and trying to get started with a tutorial book. My first hiccup is with my first program. I can't get it to compile. Heres the code:


    #include <stdafx.h>...
  4. Replies
    4
    Views
    2,302

    These are the lines of code that are being...

    These are the lines of code that are being singled out by the compiler. There are no other errors being reported by the compiler.
  5. Replies
    5
    Views
    1,755

    I am receiving a "Bus error" when i am running my...

    I am receiving a "Bus error" when i am running my program. It occurs somewhere in the posted code. Can anyone see a possible source in the posted code that may cause a "Bus error"?
  6. Replies
    5
    Views
    1,755

    BUS error when reading input from file

    hello to all, (*ignore title part about input file)

    I am not sure where the problem is in my code. Everything is compiling correctly.

    here is the code:


    else if ((strcmp (command,...
  7. Replies
    4
    Views
    2,302

    problem printing string

    hello to all,

    I am having problems printing a string in reverse using the reverse function.

    here is my code:


    char topSequence[] = reverse(rowAlign) ;
    char bottomSequence[] =...
  8. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    thanks for the help. to be continued...

    thanks for the help. to be continued...
  9. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    my program is generating a 2d array filled with...

    my program is generating a 2d array filled with scores. I want to get the highest score in my bottom row and my right-most column and then get the higher of the two.
  10. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    how do I get bestRowCell.address to contain the...

    how do I get bestRowCell.address to contain the address of DPArray[i][j]?
  11. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    thanks for the help with the last question. ...

    thanks for the help with the last question. however, i have a new problem.

    warning: assignment from incompatible pointer type

    heres the code where the problem is:


    bestRowCell.address = &...
  12. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    new error now. ( (*DPArray)->rowChar[i][j]...

    new error now.


    ( (*DPArray)->rowChar[i][j] == (*DPArray)->colChar[i][j] )


    error: subscripted value is neither array nor pointer

    Any suggestions??
  13. Thread: struct error

    by gkoenig
    Replies
    11
    Views
    2,272

    struct error

    Hello to all,

    I am receiving an error that I do not know how to resolve. Here is the relevant code.


    typedef struct DPCell { char rowChar ; char colChar ; int Score ; struct DPCell...
  14. Replies
    1
    Views
    6,864

    "assignment from incompatible pointer type"

    Hello to all,

    Need help with an error

    "assignment from incompatible pointer type"

    heres the code:


    typedef struct { char rowChar ; char colChar ; int Score ; struct DPCell *traceBack ;...
  15. thanks. Any advice on how to start my own...

    thanks. Any advice on how to start my own subroutine that will take the max from 3 arguments?
  16. is there a standard function for computing max;...

    is there a standard function for computing max; such as strlen and strstr are standard functions?
  17. looking for max function that decides from 3 arguments

    Hello to all,

    Does anyone know of a C function that will take the max value from a collection of arguments,

    for instance,

    { s(j-1,k)
    s(j,k) = max { s(j,k-1)
    ...
  18. Replies
    2
    Views
    882

    thanks

    thanks
  19. Replies
    2
    Views
    882

    Need help with testing a condition

    Hello to all,

    For the following code, I want to add a test so that if the user inputs anything that isn't an integer , he/she will receive an error message as opposed to a segmentation fault error...
  20. Replies
    19
    Views
    2,337

    Why is it evaluating to true? Shouldn't ACGT be...

    Why is it evaluating to true? Shouldn't ACGT be skipped?
  21. Replies
    19
    Views
    2,337

    Can anyone see why this is returning "PROTEIN"...

    Can anyone see why this is returning "PROTEIN" when the first is DNA (all ACGT) ?


    void content_scan( char * sequence, char * out_field )
    {
    int x ;

    for(x = 0 ; x...
  22. Replies
    19
    Views
    2,337

    Thanks for the help. Question: Why couldn't...

    Thanks for the help.

    Question: Why couldn't I return the string "DNA" etc directly? Why use "void"?
  23. Replies
    19
    Views
    2,337

    heres the code: 10 char content_scan(...

    heres the code:


    10 char content_scan( (char &)sequence)
    {
    int x ;

    for(x = 0 ; x < strlen(sequence) ; x++)
    {
    while( sequence[x] )
  24. Replies
    19
    Views
    2,337

    Sorry, didn't see your post. So if i use the...

    Sorry, didn't see your post. So if i use the address as my argument things should work fine?
  25. Replies
    19
    Views
    2,337

    Still receiving errors. Here are the errors: ...

    Still receiving errors. Here are the errors:

    beta_seqTool.c: In function ‘content_scan’:
    beta_seqTool.c:14: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4