when i run my program it runs with no erorrs but the output screen is giving me strange results
here is whats its giving me:
CONFERENCE OVERALL
RANK TEAM W-L % WINS MARGIN W-L % WINS MARGIN
KSU 3-1 0.75 10.5 8-1 1.#IO 1.#J
CAP 3-1 0.75 11.75 7-2 1.#IO 1.#J
HEID ...
User Profile
Collapse
-
My program is giving me strange results
-
no its not put together, that data from the chart has to be displayed into another outfile. using functions and thats what im having trouble with.
i need help with the code -
help writing this program!
i have this program that i am almost done with, i am one part away from being done.
the last part is putting the results together;
here is the results that i need to put in code. do u have any ideas on how to write code to this using functions.pleas e any thing will help
CONFERENCE OVERALL
RANK TEAM W-L % WINS MARGIN W-L % WINS MARGIN
1 KSU 3-1 ... -
help with this please
i have to write a code for this:
Coffee mugs sells for $3.49 each.
write code that declares a variable in which to store the number of mugs and intitalizes it to mugs.
is this right.Code:int=mugs; int=nomugs; noMugs=0;
also i have to write code that would declare an approprialtey named constant in which to store to that price.
...Code:const float=3.49
-
i changed the program a bit its supposed to read information from a file.
here is the error message. i cant figure out how to fix it.
error C2065: 'schoolName' : undeclared identifier
error C2065: 'basketball' : undeclared identifier
error C2228: left of '.schoolName' must have class/struct/union
How do i declare this
...Leave a comment:
-
please i am having a hard time with this program. can you help me fix these errors.
error C2146: syntax error : missing ',' before identifier 'string'
error C2065: 'schoolName' : undeclared identifier
error C2065: 'numberWins' : undeclared identifier
error C2065: 'numberPointsTh eTeamScored' : undeclared identifier
error C2065: 'numberPointsSc oreAganistTheTe am' : undeclared identifier
error C2065:...Leave a comment:
-
ok now i am getting a bunch of errors help!
here are the messages:
error C2628: 'schoolStats' followed by 'void' is illegal (did you forget a ';'?)
syntax error : missing ',' before identifier 'string'
error C2065: 'schoolName' : undeclared identifier
error C2065: 'numberWins' : undeclared identifier
error C2065: 'numberPointsTh eTeamScored' : undeclared identifier
error C2065: 'numberPointsSc oreAganistTheTe am'...Leave a comment:
-
I just started my program does it look like i am doing it right.
...Code:#include<iostream> #include<iomanip> #include<cmath> #include<string> #include<fstream> using namespace std; struct schoolStats { string schoolName; int numberWins; int numberLosses; int numberPointsTheTeamScored;Leave a comment:
-
a void function like
void ReadStudentName (string,name,.. ......etc)
{
more code here
}
no return value necessaryLeave a comment:
-
can you use structs in void functions or do they have to be declared before main.
how would u use structs has a void functionLeave a comment:
-
new with structs
I am writing a program that deals with structs.
i need help with structs this is my first time dealing with them. can you give me some examples that would be helpful.
my program is supposed to have to read data from two input files.
any inforamtion on stucts will be helpful.
thank
you -
ASAP!! My compiler is giving me error message.
I keep getting errors and i looked relooked I cant seem to see what wrong.
from my code can see u where the errors are coming from.
here are the error messages:
1.warning C4101: 'size' : unreferenced local variable
2. warning C4553: '==' : operator has no effect; did you intend '='?
3. warning C4101: 'userAnswer' : unreferenced local variable
4.error LNK2019: unresolved external... -
Please How do I fix my program i keep getting errors!
here are the error messages how do i fix it. i am creating the game called Circular Nim!
my program also keeps repeating why. anything would help!
1.error C2234: 'GamePieces' : arrays of references are illegal
2.error C2440: '=' : cannot convert from 'char' to 'char *'
3. error C2234: 'GamePieces' : arrays of references are illegal
4.error C2137: empty character constant
... -
Desiging the game Circular Nim!
i have to write a program that creates the game circular nim. The program is supposed to be consisted using functions and arrays.
Do you have any helpful ideas to get started on this program.
thanks -
Ok my program calculates all that i need to calculate and for it to work. im reading my data from an infile and writing it into a outfile.
the problem is that my program is reading my data only the first line all three times.
i want the program to read all three lines of the data and not just the first line 3 times.
how do i fix that
...Code:#include <iostream> #include <string>
Leave a comment:
-
-
what does this mean
Expression:stri ng subscript out of rangeLeave a comment:
-
hi
i took out the commas but these two errors messages wont go away.
error C2086: 'char &junkChar' : redefinition
see declaration of 'junkChar'Leave a comment:
-
why does my Program keep getting me an error!
My program keeps getting me and error and i dont why
here is the error message
- error C2061: syntax error: identifier 'infile'
- error C2660: 'ReadDate' : function does not take 6 arguments
- error C2086: 'char &junkChar' : redefinition
- see declaration of 'junkChar'
here is the code
...Code:#include
-
question about functions
the types of functions
value returning and void functions,
how do these work when writing a program by using different infiles.
how do void and value returning functions work when using data from txt files.
can you give me an example.
No activity results to display
Show More
Leave a comment: