Wow, don't I feel stupid now. Thanks a lot, I think thats the second or third time you've helped me. :)
Type: Posts; User: tortan
Wow, don't I feel stupid now. Thanks a lot, I think thats the second or third time you've helped me. :)
I'm trying to create a while loop with an 'or'.
The program runs fine without the 'or' but when I add it, the program outputs nothing. Here is the loop in question:
while ( (sentence[pos]...
Yessss. Thanks so much dude. I cant believe I looked over that.
Thanks again.
Yeah, I know that. This is a book problem assigned by my teacher, and it says to create a function to initialize all the variables. Guess its practice for creating functions? Dunno.
Well the...
I wrote this program that takes a text file, inputs it one character at a time. The program counts the number of lines, words, and paragraphs, then outputs them. As the program does this, it also...
Im outputting text to a file, using setw and setfill.
Im trying to create this in a text file:
Gross Amount............. $1000.00
Federal Tax.............. $ 150.00
However, I cannot...
Hmm, one more thing if anyone can figure this out. (I've been trying the past 30 minutes.) When my data is outputted, the updated salary is wrong. The output text file shows as:
Andrew Miller ...
Thanks so much! You gave me the insight I needed to get this working.
I'm getting errors such as
'ifstream' was not declared in this scope.
that along with all the rest of my variables and ofstream.
I pretty much suck at programming I guess.
Ideas why this doesnt work?
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdlib>
bool getEmp(ifstream& empFile, string& lastName, string& firstName,
Ah, I've got it figured out now. Problem is I was sitting here without a book. The teacher is cool, and she'll let me catch up, so it wont be a problem. The reason I didnt take Comp Programming 1 is...
I've really got no idea what everyone else in my class has been taught. My teacher said this should be an easy program to refresh everyones memory about reading and writing from an external file....
Hi. I'm new here. Im a senior in high school, and I skipped Computer Programming I, and went straight to Programming II. The problem is, I had never programmed in my life until yesterday - So I'm...