Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Forums
Favorite Tags
c++ x 25
Member Avatar for PaladinHammer

Here is the code: [CODE]// All this has to do is take the "names.txt" file, and send it to "backwards.txt" // in reverse order, as an array. No idea why its not working, sent all necessary files with it. #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using …

Member Avatar for PaladinHammer
0
225
Member Avatar for PaladinHammer

Here's the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; string getData(ifstream &fin, string array[]); //string getData(ifstream &fin, string array[]); This is what it SHOULD look like. void outputData(ofstream &fout, string array[], int numNames); //void outputData(ofstream &fout, string array[], int numNames) int main() { …

Member Avatar for Lerner
0
92
Member Avatar for PaladinHammer

Well, I need to write a program that uses enumerated datatypes, structs, and plenty of functions. Below is my current code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void getInput(string input); void outputStudent(string student); void outputTeacher(string teacher); void outputStaff(string staff); void sendtoOutputStudents(string students); struct personDataType { …

Member Avatar for mrboolf
0
117
Member Avatar for PaladinHammer

In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input …

Member Avatar for Freaky_Chris
0
533
Member Avatar for PaladinHammer

Hey guys, pretty confused about what a "pass-by-reference" function is and does. No one will put it into simple English for me and Google has become my worst enemy on the topic. What the Program has to do is convert the five-numbers of a zip code (for example: "64110") into …

Member Avatar for PaladinHammer
0
146
Member Avatar for PaladinHammer

[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { ifstream fin("program4.txt"); ofstream fout("output4.txt"); string lastName; string firstName; string fournumbers; if(fin.fail()) { cerr << "Unable to open input file\n"; exit(2); } if(fout.fail()) { cerr << "Unable to open output file\n"; exit(3); } while (fin >> …

Member Avatar for stilllearning
0
138
Member Avatar for PaladinHammer

Here is the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> using namespace std; int main () { ifstream fin; ofstream fout; int item1=0, item2=0, item3=0, item4=0, item5=0, amount; char item; fin.open("input.txt"); fout.open("output.txt"); if(fin.fail()) { cerr << "Input did not open\n"; exit (2); } if(fout.fail()) { cerr << "Output file did …

Member Avatar for stilllearning
0
150
Member Avatar for PaladinHammer

This thing is pushing me around. I've been through my book, and I have even downloaded the professor's notes on subject (he posted them). I can't find what I'm doing wrong. Below is the code I've written, below the code is what the console is "supposed" to look like. (Code …

Member Avatar for VernonDozier
0
99