thanks
thats all i needed
Type: Posts; User: sswaters
thanks
thats all i needed
I need a very very simple bit of code to just cout the time,day,month,year. I am not picky about the format(ie dd,mm,yyyy) its just time in C++ just confuses the hell out of me and i cant seem to...
This topic is going in a very very weird direction 0.99999... = 1 and will probably end up in was there a second shooter on the grassy knoll but you should make the program so that you tell it...
getline(in, stuff, ',');
what are in and stuff representing
i want to move it into a string called cvk
would that be
getline(inputfile, cvk, ',');
or
getline(cvk,inputfile, ',');
edit:never...
thanks it works i dont no why i didnt think of that any solution to the ifstream needs to not skip spaces problem
oh and if anyone can tell me how to not skip spaces with ifstream that would help too
I have a program some of you may remember my previous post. It uses a stringstream to convert an int to a string.
The problem is i cant find how to empty the string after it is used once
...
well the problem is my while loop seems to only open the c_file junk the first time around and i have no idea why and quit is equal to 0.
while ( quit!= 1 ) {
filename = "input" + num +...
yes i am closing it now (where were you 20 minutes ago)
it loads now and can be read but my code still has problems.
however i think i can fix them myself for right now thanks everybody
yeah sorry i started to post before you finished oh and i put the failed to open code in and it says failed to open c_file so there inlies my problem i am going to look into why it cant
edit: and...
im going to edit my code a little bit to match that somewhat ill be back soon
well i still have a problem (dont get why it will compile perfectly)
but I thought i should start up my old thread again instead of making a new one so you can see previous problems.
Ifstream...
will try lol one sec
omg it worked finally what a silly thing it doesnt accept it like that but will as filename.c_str()
you guys have saved me weeks of researching on google
b_file.open(filename);
gets errors
50 no matching function for call to `std::basic_ofstream<char, std::char_traits<char> >::open(std::string&)'
C:\Dev-Cpp\include\c++\3.4.2\fstream:695...
well thanks for all the help just refreshed to find that ignore char thing that will make things easier thanks all of you i think thats all i need
edit:nowhere else would i find such help at 1-3...
thanks i will see if it works once i make small adjustments to my code and maybe that code
and by the way efficient doesnt really metter to me just look at this snippet of my (poorley written but...
I think you misunderstood what i was trying(poorly trying) to say but u answered parts of what i was asking so thanks
but what i am trying to do would be like this
ifstream b_file;
--enter...
hello please answer quick as you can it is 1:35 here and not pm
I am writing a program that needs to input files but the name of the file needs to increment everytime a while loop runs. I can...