#include <stdio.h>
const int MAXSIZE = 20;
int main() {
// Declaring variables
int month, day, year;
double temp;
char filename[MAXSIZE];
Type: Posts; User: mrsmoss3791
#include <stdio.h>
const int MAXSIZE = 20;
int main() {
// Declaring variables
int month, day, year;
double temp;
char filename[MAXSIZE];
Oh. Wow. That worked. Thanks a lot man!
So I am done and everything works fine except for one little part. For some reason my program does not properly calculate the percent the student received on the exam..this is my code:
all...
Now I changed it to this
for (count = 0; count < SIZE; count++)
{
if (correctAnswers[count]==studentAnswers[count])
cout << "Right! You chose " << studentAnswers[count];
Well so far I changed it to this..
for (count = 0; count < SIZE; count++)
{
if (correctAnswers[count]==studentAnswers[count])
cout << "Right";
I am not sure how to do that for each specific wrong response...
what do you mean? I mean the for loop I used does tell me whether the student is right or wrong, but I do not know how to show the correct response for each wrong answer or how to show the number of...
Well the assignment does ask "to write a program that reads the contents of the correctanswers.txt file into a one dimensional char array and then reads the contents of another file, containing a...
correct answers.txt
A
D
B
C
A
A
D
B
D
The assignment is to write a program that reads the contents of the correctanswers.txt file into a one dimensional char array and then reads the contents of another file, containing a student's...
I changed it to this and now I am getting the same error message four times:
error C2109: subscript requires array or pointer type
#include <iostream>
#include <fstream>
using namespace...
I changed that, but it still will not compile
I need some help..here is what i am trying to make and here is the code
One of your professors has asked you to write a program to grade her final exams. which consist of only 20 multiple-choice...
I fixed two of the error messages and now this is my code:
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
void you_win()
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
void you_win()
{
cout<<"You Win! <<endl;
}
Now I am getting this message error:
Now I am getting these error messages:
error C2065: 'end1' : undeclared identifier
error C2059: syntax error : ')'
fatal error C1075: end of file found...
What bracket mistakes? I am not sure what you are talking about...
Trying to make a rock, paper, scissors game but I keep on getting these error messages:
error C2059: syntax error : 'else'
error C2143: syntax error : missing ';' before '{'
error C2447: '{' :...