I'm not sure if I know what I'm trying to do either. Basically I want to read the input files and process the information. Basically what I need to know is how do I read and process information once...
Type: Posts; User: Furious_George
I'm not sure if I know what I'm trying to do either. Basically I want to read the input files and process the information. Basically what I need to know is how do I read and process information once...
I am trying to understand the concept here......also where do I need to put the file in order for my program to read it?
Howdy all,
I am having a bit a trouble understanding how file input and output works. I am working on a Lab for Intro to C++ and I need to work with input output and loops:
· Process input...
lol retyped the minus and it worked....you rock!
thanks for all the help :D
updated code:
#include <iostream>
#include <iomanip>
using namespace std;
const int INCREMENT_VALUE = 5;
c:\Documents and Settings\Philip McCarthy\My Documents\Visual Studio Projects\messin\messin.cpp(26) : error C3209: ' count' : Unicode identifiers are not yet supported
keeps beeping that one at...
I'm trying just to mkae a simple while loop and I am getting the following errors.....
c:\Documents and Settings\Philip McCarthy\My Documents\Visual Studio Projects\messin\messin.cpp(32) : error...
You rock! that helped out a bunch :D
Still having problems...getting all kinds of funky errors....any ideas?
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
I don't know if it's me or what but I can't understand the tutorials for the life of me on this site. Seems to me they are focused not on the newbie but for a higher level programmer...but I regress....
spoke too soon again, I figured it out....thanks for all the help!
bleh spoke too soon I figured out how to format the output......still need a hand with getting the compiler to see my variable as the filename I want to use and where the proper place is to stick...
heres my new code
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
Thanks Josh coupled with the FAQ that made sense to me. The problem I have having now is I am prompting for a filename (which needs to be billing.dat) and it's not creating it under that name. I...
OK heres my second question of the day. I am trying to output my information to the screen and to a file called billing.dat. I have perused the board and I just don't understand the FAQ or other...
basically I am looking for a variable type that can store about 40 characters with spaces for the output messages and I am not allowed to use pointers or char*. If ya look at the code I am setting...
that did it...thanks a million needed that cout<<setiosflags(ios::fixed); line in there. My other problem might be a bit tough. I am just intro to C++ in college and not supposed to be using arrays...
just saw your edited post...gonna give that a shot.
cout<<setprecision(2)<<"Final Cost:"<<setw(24)<<"$"<<trueCost<<endl;
that's what I was looking for...thanks. My book tells me this is the correct format to to make sure I have #include <iomanip>...
Welcome to...
>>>Phils Floors<<<<
Our Rugs Rock
If you enter the customers name, type of rug purchased,
room dimensions, and type of payment,...
Here is my program it works how I would like it to but I can't seem to get formatting down. I want to round the numbers off in the dollar output. In some cases it is giving me 3 numbers in the cents...
I'm not that advanced yet hehe this is just intro to C++ =/ . I thought you could make the number "float" by adding an "f" to the variable?
I cleaned the program up a bit and found a lot of errors actually whille putting the comments in B). One last question when I output my results to the screen it's going all the way out to...
howdy guys, I've been messing with this program for the last couple of days for my intro to c++ class. I know I'm doing stuff wrong in here but not sure what it is. Anyone have suggestions on maybe...
Thanks again man, I understand why the quotes were changed as I had the wrong ones in there but I don't fully understand why I needed a char*. There a page you know of wehre I can read up on it?