Ok now I am trying to link the element files as well. The setAWeight function will be called from the aminoacid_analyzer but it is endefined identifier.
aminoacid_main.cpp
#include...
Type: Posts; User: asdf
Ok now I am trying to link the element files as well. The setAWeight function will be called from the aminoacid_analyzer but it is endefined identifier.
aminoacid_main.cpp
#include...
Ok I don't know what I did but I got it working now! Hopefully I can finish this program for monday. Thanks for all your help.
Prelude, I think you might be right about the double underscore...
Ok I bolded my errors (all in the aminoacid_analyzer.cpp file)
As for the compiler I am using Metroworks CodeWarrior Learning Edition v1.0. Don't know if it's got LFN support. I would love to use...
if you want random values in a range try the formula
a + rand() % (b-a+1)
where a = lower range
b = upper range
Here is what I got now. The error is "unknowed identifier 'AminoAcidAnalyzer'
Also, I'm not sure if I need to pass a acidCount as a parameter in the constructor?
aminoacid_main.cpp
...
inclusive = numbers from 0 to 9 and including 0 and 9.
Why doesn't it work? Does it compile?
Did you include stdlib? I think the rand function is in ther
Imperito, I followed what you said but now aminoacid_analyzer.cpp does not recognize the class from aminoacid_analyzer.h
deleted
ok, so how do I fix this?
continue statement is similar to break statement but only works in loops. So I assume there is a loop outsite your switch statement.
When continue is encountered, the program will go to the next...
What does this mean?
I keep getting
Link error : Undefined symbol: ??.........
Thx swoopy. I don't think I need double pointers. Don't even know what that is!
I figured it out though. Just needed to dynamically declare vertices in the loop.
And now I am trying to do a...
Ok cool that worked but I forgot I actually need to read them into the pointer vertices[]
while (! fin.eof())
{
fin>>vertices[nPts]->bldgId;
nPts++;
}
Ok I put these lines before the fin part but it still doesnt work.
ifstream fin("survey.dat");
if (!fin)
{
cout<<"Error opening file:"<<"survey.dat"<<endl;
exit(1);
}
I want to read a bunch of numbers from a file.
I have declared a few structures in structures
I passed a pointer from main to a local function and declared a dunamic array in it.
int...