Search:

Type: Posts; User: Shady

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    3,191

    OK I searched MSDN library for the strtod and I...

    OK I searched MSDN library for the strtod and I found a program but I can't understand this part.


    How does it work ?
    and what if the text is at the beginning of the string ?

    It worked for...
  2. Replies
    4
    Views
    3,191

    convert from string to double !

    I got a string that contains numbers let's say "1.54251"
    I want to convert this string to double because I want to do some operations on that number
    I tried normal casting but didn't work.
    I...
  3. Replies
    8
    Views
    1,776

    OK someone please tell me what happened because...

    OK someone please tell me what happened because one of us is stupid me or VS2005
    I create a new project Win32 Console Application, Empty project add new item to source file copy the code from...
  4. Replies
    8
    Views
    1,776

    OK here's the link...

    OK here's the link
    http://www.netlib.org/opt/hooke.c

    It will help me a lot if I got this code or any other to work.
    Thanks for helping.
  5. Replies
    8
    Views
    1,776

    that's exactly what I did. see my edited post :)...

    that's exactly what I did.
    see my edited post :)
    oh and what about the other 2 errors ?

    EDIT: it's getting really messy.... I correct the errors and new ones pop up.
    it said about this
    error...
  6. Replies
    8
    Views
    1,776

    yea i've been there and that led me to netlib...

    yea i've been there and that led me to netlib
    got the file
    couldn't get it to compile. :s
    got 16 errors and some warnings in VS 2005
    and 4 Errors in VS 6
    may be you can help me with errors
    this...
  7. Replies
    8
    Views
    1,776

    Want to use algorithm !

    Hi there
    I want to apply Hooke and Jeeves algorithms on some values I have.
    I've googled and I found some Libraries and Source code files but I can't use them may be because of the compiler. (I...
  8. Replies
    33
    Views
    3,693

    If I did that then I didn't do something new....

    If I did that then I didn't do something new.
    But let me put it this way

    "writes" has data.
    I want to write the data found from "reads" in the last line of "writes" i.e add data to writes...
  9. Replies
    33
    Views
    3,693

    If you read my code that's what I did ! I just...

    If you read my code
    that's what I did !
    I just said
    "writes<<c;"
    that should put the string in the file where ever the put pointer is.
    but nothing happens !
  10. Replies
    33
    Views
    3,693

    Here is my code it compiles but nothing is...

    Here is my code
    it compiles
    but nothing is replaced !!! nothing is written in the file !!! nothing happens to "new.txt"

    #include <fstream>
    #include <iostream>
    #include <string>
    using...
  11. Replies
    33
    Views
    3,693

    Sorry one more question i didn't wanna create...

    Sorry one more question i didn't wanna create another thread for it
    it's small.
    Now i found the string i was looking for in a txt file
    I want to replace this string with another string.
    I've...
  12. Replies
    33
    Views
    3,693

    Thank you so much guys. But now i'm confused...

    Thank you so much guys.
    But now i'm confused about that (-1) part.
  13. Replies
    33
    Views
    3,693

    may be -1 means null ?

    may be -1 means null ?
  14. Replies
    33
    Views
    3,693

    how come it's not right? i found it on msdn...

    how come it's not right?
    i found it on msdn library ! :s
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcstdlib/html/vclrf_string_basicstring_members.asp
    sorry for askin too...
  15. Replies
    33
    Views
    3,693

    I didn't know what string::npos was there for ...

    I didn't know what string::npos was there for
    so i searched and this is what i found

    is it right ?
    it sounds reasonable.
    and if so what does it mean by " all remaining characters "?

    Thanks
  16. Replies
    33
    Views
    3,693

    you can consider me a noob why would i need...

    you can consider me a noob

    why would i need "int main()" and not "void main()" for me it's just a matter of not writing return 0; at the end !! i never knew it means something :S

    and if i'm...
  17. Replies
    33
    Views
    3,693

    string search and copy in a file !

    Hello,
    I have a text file which contains this...
    Mass Flow Rate = 1.06984
    Total Press Ratio = 1.05424
    Adiabatic Efficiency = 0.730169
    Exit Flow Coeff Cr2/U2rms = 0.438395
    Ps2/Pa =...
Results 1 to 17 of 18