with this info, My program is suppose to read this list of prices and the sales table and calculate the total dollar sales for each salesperson and the total dollar sales for all salespersons
The...
Type: Posts; User: gunghomiller
with this info, My program is suppose to read this list of prices and the sales table and calculate the total dollar sales for each salesperson and the total dollar sales for all salespersons
The...
thanks gents i read the loop but i dont understand how to make it work! can someone show me?
this is the line it is line 181
line:
*p = new(nothrow) int[lsStudentCount+1][6];//error C2440: '=' : cannot convert from 'int (*)[6]' to 'int'
thanks for that info it displays now the total number of automobiles sold for all employees, i need it to display prices and the sales table and calculate the total dollar sales for each salesperson...
here is the code
#include <iostream>
using namespace std;
int main()
{
int i,j;
cool it let me add all the cars however it says the use of
TotSales is used without being defined after i enter all the cars any ideas?
This is a program i am trying to get working. It is supposed to read in values of cars and then input howmany sold for each model for each sales person. it works fine until it gets to ten then it...
ok ... not to sound like a smart butt but can someone help me that is why i came here i exhausted searching what the compiler outputed on the internet and i dont know what else to do to make it work
thanks now I have these errors: can anyone provide insight?
Error 1 error C2440: '=' : cannot convert from 'int (*)[6]' to 'int'
Error 2 error C2109: subscript requires array or pointer type ...
errors
Error 1 error C2248: 'FirstRow::StudentCount' : cannot access private member declared inclass 'FirstRow'Error
2 error C2248: 'FirstRow::ScoreCount' : cannot access private member...
Hey all,
I devised a program to read a file called student.txt that has in the firs line # of students and number of socres then has the scores
student.txt:
3 3
95 100 95
90 85 95
100...
thanks gents for all the help it worked!
Thanks but i cant get the error message to display only when the wrong number is entered
ok i changed it to
#include <iostream>
#include <vector>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
Ok I changed it a bit now it displays all the prices with the numbers inbetween i dont know why it is not doing what I want
else
{
while(!inData.eof())
{
inData >> num >> pri;...
This my revised code
#include <iostream>
#include <vector>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
I tried that the first time before I displayed my code and it still didnt work
I have put together a program that will display the contents of file if selected or search that file for a product by product number and display the number and price of that product only. I have to...
unfortunately everything that i try doesnt work I dont want the code just tell me the line it is in I have been working on this thing for like 5 days now. just a little help would be great
yes, unfortunately i dont know exactly what to do with this program to make it perform like it is supposed to.
i thought that while the file i.e ch is not i.e != the end of file it will continue with the body of the program is that the wrong statement?
a file called test1.txt that has like four lines with various amounts of characters basically garbage sentences.
I had put the curly braces in the wrong place i fixed it now it asks for the file and after three enters it will display the cout statement however my values are all wrong. Can someone please help...
Hey ladies and gents I am having a little problem with my code
here it is
#include <iostream> // cin, cout
#include <fstream> // ifstream,...
My text book i am studying has this sample program but it doesnt tell me what this line is and I would like to know what it means before I move on can someone explain?
cout <<...