Thank you for the help. I did not know that the terminal command would be:
c++ file.cpp -o file
I appreciate the help.
Type: Posts; User: gkoenig
Thank you for the help. I did not know that the terminal command would be:
c++ file.cpp -o file
I appreciate the help.
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...
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>...
These are the lines of code that are being singled out by the compiler. There are no other errors being reported by the compiler.
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"?
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,...
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[] =...
thanks for the help. to be continued...
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.
how do I get bestRowCell.address to contain the address of DPArray[i][j]?
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 = &...
new error now.
( (*DPArray)->rowChar[i][j] == (*DPArray)->colChar[i][j] )
error: subscripted value is neither array nor pointer
Any suggestions??
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...
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 ;...
thanks. Any advice on how to start my own subroutine that will take the max from 3 arguments?
is there a standard function for computing max; such as strlen and strstr are standard functions?
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)
...
thanks
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...
Why is it evaluating to true? Shouldn't ACGT be skipped?
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...
Thanks for the help.
Question: Why couldn't I return the string "DNA" etc directly? Why use "void"?
heres the code:
10 char content_scan( (char &)sequence)
{
int x ;
for(x = 0 ; x < strlen(sequence) ; x++)
{
while( sequence[x] )
Sorry, didn't see your post. So if i use the address as my argument things should work fine?
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...