Search:

Type: Posts; User: smd

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,909

    thanks

    Thanks for your help!!! There was something wrong with my compiler....but it works now...thanks again for the help!
  2. Replies
    11
    Views
    1,909

    The code did compile without the using namespace...

    The code did compile without the using namespace std, and when I ran the a.out, there was no output.

    And then I ran the code posted (which had the using namespace), and that compiled as well,...
  3. Replies
    11
    Views
    1,909

    Hi, thanks for the quick response, I tried...

    Hi,

    thanks for the quick response,

    I tried the using namespace std;

    and I also changed the code based on what 7stud posted,

    unfortunately when I run that code, I get no output at all....
  4. Replies
    11
    Views
    1,909

    still having trouble -

    Hi,

    Thanks for the response.

    I am still having trouble with a piece of code: I have been trying to read in a file, ignore the first 3 lines and then read in the 2 strings that follow. I can...
  5. Replies
    11
    Views
    1,909

    still having trouble

    Hi, thanks for the response.

    However, the code posted did not work and I am still having trouble figuring this out. I want to be able to ignore the first 3 line of comments.

    And then want to be...
  6. Replies
    11
    Views
    1,909

    question about reading files in

    Hi,

    I am having a lot of trouble with reading a file in, but being able to ignore the first few lines. This is the file I'm reading in:

    ######################
    #something...
  7. Replies
    4
    Views
    1,300

    thanks - another question?

    Hi ,

    THanks a lot!!, that did work..

    I do have 2 additional questions:

    1) what does name.c_str() mean??? Could you please explain what exactly this means?? THanks a lot for the...
  8. Replies
    4
    Views
    1,300

    question about passing arg in constructor??

    Hi ,

    I have a question about passing arguments in a constructor. I need to be able to pass a string in a constructor. THis string in turn will be used to open a file by that same name. I am...
  9. Replies
    2
    Views
    1,299

    Sorry about that, I'll make sure to remember it...

    Sorry about that, I'll make sure to remember it next time. I have gone ahead instead and attached my code.

    THanks for any help anyone can provide.
  10. Replies
    2
    Views
    1,299

    question about getenv...etc???

    Hi,

    I have been struggling to figure this out and would really appreciate any help anyone can give:


    I have a config file:

    setenv test_host somehost
    setenv test_port 12345
    setenv test_sub...
  11. Thread: pointer question

    by smd
    Replies
    11
    Views
    1,258

    THANK YOU

    Thanks for the explanations!!, I understand pointers a bit more
  12. Thread: pointer question

    by smd
    Replies
    11
    Views
    1,258

    Sorry about that, the function is essentially:...

    Sorry about that,

    the function is essentially:

    void something(int X, double *Z) {

    X = X + (*Z) }


    thanks ...I tried what you both suggested and it did work. I am still fairly...
  13. Thread: pointer question

    by smd
    Replies
    11
    Views
    1,258

    pointer question

    Hi ,

    I am still confused about pointers. I have a simple function ,that does some math calculations, called

    void something( int Y, double *Z)
    {
    Y = Y + Z }

    I want to call it in...
  14. Thread: ? about typedef

    by smd
    Replies
    8
    Views
    1,262

    ? about typedef

    Hi ,

    I am confused about what typedef means ?

    for example:

    "typedef double something; "

    what exactly does this mean??
  15. Replies
    7
    Views
    1,462

    THANK YOU!!

    THANK YOU!!, you were right, I'll make sure to post any future POSIX ?s in the LINUX forum.

    THANKS AGAIN!!!

    //another question:

    void * a_thread_func (void *),

    I understand that as you...
  16. Replies
    7
    Views
    1,462

    HI, thanks for your reply, unfortunately it is...

    HI, thanks for your reply, unfortunately it is still giving me the same error.
    I guess the attachments didn't stick, but here they are:

    THanks for any help, it is greatly appreciated :

    ...
  17. Replies
    7
    Views
    1,462

    Sorry about that, here are the 2 attached files:...

    Sorry about that, here are the 2 attached files: 1-1.c and posixtest.h.

    Thanks for any help!!
  18. Replies
    7
    Views
    1,462

    reference with pointers?

    Hello,

    I am still unfamiliar with some aspects with C++ programming and have a question:

    I was looking at some code that is part of a test suite where there was a function:


    void...
  19. Thread: newbie

    by smd
    Replies
    3
    Views
    1,441

    newbie

    Hello,

    I am new to Linux, I am mainly used to using UNIX at school and windows at home. I am thinking of installing Linux on my home computer, I was wondering what the advantages of me might be in...
  20. Replies
    2
    Views
    800

    thank you!!

    Hello, thank you very much for the help...it was exactly what I was trying to do...thanks again!
  21. Replies
    2
    Views
    800

    string question?? help?

    Hello,

    I'm fairly new to C++ and am having some trouble and would appreciate any help. I have a string ex: "ATCTCAGCGTACCGTA". I want to be able to find all the positions that have "GTA", there's...
  22. Thread: queue / stack

    by smd
    Replies
    2
    Views
    2,704

    thanks ..it worked..I had done a declaration as...

    thanks ..it worked..I had done a declaration as queue<int> q; initially in UNIX, not std::queue <int> q. I wasn wondering why my initially declaration as queue<int> q did not work with my new...
  23. Thread: queue / stack

    by smd
    Replies
    2
    Views
    2,704

    queue / stack

    Hello I am unclear about queue and stacks, here are my questions:

    1) I am using the compiler CodeWarroir: and wanted to use a queue, I have used the declaration: queue <int> q and of course...
  24. Thread: new to linux

    by smd
    Replies
    6
    Views
    1,494

    new to linux

    hello,

    I am just starting to use LINUX , but have been using UNIX for quite some time now...and want to know what is the difference between UNIX and LINUX?? or they pretty much the same except...
  25. Replies
    0
    Views
    1,389

    need help?? ...reading input data

    HI!

    I have been struggling with this for the past couple of days, could someone PLEASE help?

    I need to read in a file (I have no problems doing this), however while there are certain numbers I...
Results 1 to 25 of 43
Page 1 of 2 1 2