No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
How can I use substring to print an ID number that is read from an input file to print out as for example, ***-**-4554 instead of 455454554? I was thinking of using modulus but it is too complex | |
I need help with my eiditing a record function, I'm struggling to get it to work. Thank you int Search(Student List[], int Size, string Target) { for(int i = 0 ; i < Size ; i++) if (Target == List[i].LastName) return i; return -1; } void Edit_Record(Student List[], Student & … | |
Hi, I've been having trouble getting the average and letter grades to print and they are outputting as 0 .. I tried everything calling the average function etc. but I still get a zero. Any advice? I don't have any other problems just need help with the average function and … | |
Why is my output like this instead of all the data being in the table? (PS : must use while(!fin.eof()) thanks #include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace std; int main() { ifstream fin; ofstream fout; string Name; int Id; float grossIncome ; float netSalary; float incomeTax … | |
The second loop after opening the file again the second calculation for count isn't coming out correctly it seems to be doubled, comes out double the normal value when it shouldn't someone help please! #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cmath> using namespace std; int main () … |
The End.