Thanks Codeplug!!
umm... how do you store the position that tellp() returns? in the reference that I looked up, it just says "pos_type", what type is that exactly?
Also after I can get back to a...
Type: Posts; User: Kings
Thanks Codeplug!!
umm... how do you store the position that tellp() returns? in the reference that I looked up, it just says "pos_type", what type is that exactly?
Also after I can get back to a...
Hi, is there a way to go backwards while writting a file and correcting something on a previous line?
e.g
change:
1,1,0,4,1,0.5,0.75
2,1,0,4,1,5,10
to:
1,1,0,4,1,0.5,0.75
2,1,0,4,1,5,9
hi,
Does anyone know of a way to search a file for certain records and also the record right after the last record you were looking for? k...that probably makes no sense!!
e.g
I want to go...
oh....I feel soo stupid now!! hehe, thx =o)
Hi, I was wondering if it was possible to get C++ to write a file to another directory, since it normally writes to the same directory that the program is in?
Thanks:confused:
okay, thx =o)
Hi,
I was wondering if anyone knew of a function that could do rounding to the nearest whole number?
e.g 1.32 -> 1
1.53->2
Thanks
hehe, k, thx for your input tho! =o) And Thx Cela!!=o)
oh..sorry
I'm expecting something like this;
1
back
4
1
a
bang
3
hmm...well, if you wouldn't mind vasanth, could you take a look at this and see if you know whats wrong?
I've included my code, input and output
Thanks
...really, its not working for me. get line is reading to the end of the line and spitting out the whole line. does anyone know why its not working?
Thanks
hi,
you probably know this already. But to divide functions, you would write it like any other math function in C++
e.g a=4/3;
except now your using variables.
as for your test statement, I'm not...
Hi, does anyone know if you can get getline to read to ',' or the end of the line...
so for example:
Input:
1,s,3a,find
2,3b,g,go
while(fin.peek!=EOF)
Thanks Salem!!
Anyone know how to pass a 2d array into a function?
e.g blah(char a[][])
Thanks!!
Thanks for your help!! yeah, I know I should, kinda lazy thats all!!
Thanks
I guess I can only post one attachment one at a time, so here is my code
Hi, I'm using a 2-D array to output some information. But for some reason my right index is like 3000 before it will output something that is 3 characters long and I also get alot of weird lines in...
hehe, thx. I didn't know that C++ could read anything besides text docs!! hehe, thx
Hi, I'm kinda new to C++ programming. Anyways my problem is that I want to read in a bunch of information from a text doc, but its converted from MS excel and some fields are left blank and I want to...