Hi
I've spent a long time on the web & reading books trying to find out how to do this for myself.
No luck, there's a lot of stuff refering to using pointer to a function but very little on...
Type: Posts; User: spudval
Hi
I've spent a long time on the web & reading books trying to find out how to do this for myself.
No luck, there's a lot of stuff refering to using pointer to a function but very little on...
thanks again
I originally had the first sugesttion in the code, which also produced an error.
But good news the second did work
On to the next error.
Thanks
I did include the std namespace in the main file, but overlooked that the header file would get prcessed before encountering that bit
as Homer would say DOHHH
Opps - this info will probably help
<cpp(47) : error C2679> refers to <if ( line.substr(index+6,1) == '1')>
My problem here is trying to test a substr of a string. when compiling I get the following errors
c:\work\programming\nettest\nt.h(40) : error C2146: syntax error : missing ';' before identifier...
I'm having some problems defining a structure, can anyone help
this bit is in the header file
#include <string>
struct netData{
thanks - i got it sorted now
the prog failed due to reading past the end of a file, but why rem'ing that line allowed it work i don't know.
i'll try leaving things for an hour before posting...
line contains what it should, 10,0.00,0,0,,,,
I am having problems splitting 1 string into sub strings.
the section of code is as follows
getline ( file_1, line );
index = line.find(",",1);
time = line.substr(0,index);
prob...
thanks i'll give it a go
I now have the code working, I didn't realise I had to load the char[] with a null before appending to it.
I'd like to use string, but the file handling commands (ifstream/ofstream) don't except...
I'm writting a multiple file handling program and need to build filename and path strings.
I want the user to be able to enter a path and then append the filename to the end of this. However when...