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...
Type: Posts; User: Shady
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...
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...
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...
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.
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...
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...
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...
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...
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 !
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...
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...
Thank you so much guys.
But now i'm confused about that (-1) part.
may be -1 means null ?
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...
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
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...
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 =...