Search:

Type: Posts; User: asdf

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    2,236

    Ok now I am trying to link the element files as...

    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...
  2. Replies
    20
    Views
    2,236

    Ok I don't know what I did but I got it working...

    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...
  3. Replies
    20
    Views
    2,236

    Ok I bolded my errors (all in the...

    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...
  4. Replies
    8
    Views
    1,033

    if you want random values in a range try the...

    if you want random values in a range try the formula



    a + rand() % (b-a+1)


    where a = lower range
    b = upper range
  5. Replies
    20
    Views
    2,236

    Here is what I got now. The error is "unknowed...

    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

    ...
  6. Replies
    8
    Views
    1,033

    inclusive = numbers from 0 to 9 and including 0...

    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
  7. Replies
    20
    Views
    2,236

    Imperito, I followed what you said but now...

    Imperito, I followed what you said but now aminoacid_analyzer.cpp does not recognize the class from aminoacid_analyzer.h
  8. Replies
    20
    Views
    2,236

    deleted

    deleted
  9. Replies
    20
    Views
    2,236

    ok, so how do I fix this?

    ok, so how do I fix this?
  10. Thread: A simple question

    by asdf
    Replies
    1
    Views
    774

    continue statement is similar to break statement...

    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...
  11. Replies
    20
    Views
    2,236

    What's a link error?

    What does this mean?

    I keep getting

    Link error : Undefined symbol: ??.........
  12. Thread: How to read files

    by asdf
    Replies
    8
    Views
    1,229

    Thx swoopy. I don't think I need double...

    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...
  13. Thread: How to read files

    by asdf
    Replies
    8
    Views
    1,229

    Ok cool that worked but I forgot I actually need...

    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++;
    }
  14. Thread: How to read files

    by asdf
    Replies
    8
    Views
    1,229

    Ok I put these lines before the fin part but it...

    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);
    }
  15. Thread: How to read files

    by asdf
    Replies
    8
    Views
    1,229

    How to read files

    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...
Results 1 to 15 of 15