Search:

Type: Posts; User: mrsmoss3791

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,062

    Help with reading in files!!! please

    #include <stdio.h>

    const int MAXSIZE = 20;

    int main() {

    // Declaring variables
    int month, day, year;
    double temp;
    char filename[MAXSIZE];
  2. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    Oh. Wow. That worked. Thanks a lot man!

    Oh. Wow. That worked. Thanks a lot man!
  3. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    So I am done and everything works fine except for...

    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...
  4. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    Now I changed it to this for (count = 0;...

    Now I changed it to this



    for (count = 0; count < SIZE; count++)
    {
    if (correctAnswers[count]==studentAnswers[count])

    cout << "Right! You chose " << studentAnswers[count];
  5. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    Well so far I changed it to this.. for...

    Well so far I changed it to this..



    for (count = 0; count < SIZE; count++)
    {
    if (correctAnswers[count]==studentAnswers[count])

    cout << "Right";
  6. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    I am not sure how to do that for each specific...

    I am not sure how to do that for each specific wrong response...
  7. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    what do you mean? I mean the for loop I used does...

    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...
  8. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    Well the assignment does ask "to write a program...

    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...
  9. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    correct answers.txt A D B C A A D B D

    correct answers.txt
    A
    D
    B
    C
    A
    A
    D
    B
    D
  10. Thread: Helppp!!

    by mrsmoss3791
    Replies
    16
    Views
    2,793

    Helppp!!

    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...
  11. Thread: Helllppp!!

    by mrsmoss3791
    Replies
    10
    Views
    5,332

    I changed it to this and now I am getting the...

    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...
  12. Thread: Helllppp!!

    by mrsmoss3791
    Replies
    10
    Views
    5,332

    I changed that, but it still will not compile

    I changed that, but it still will not compile
  13. Thread: Helllppp!!

    by mrsmoss3791
    Replies
    10
    Views
    5,332

    Helllppp!!

    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...
  14. Replies
    12
    Views
    12,196

    I fixed two of the error messages and now this is...

    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()
  15. Replies
    12
    Views
    12,196

    #include #include #include...

    #include <iostream>
    #include <ctime>
    #include <cstdlib>
    using namespace std;

    void you_win()
    {
    cout<<"You Win! <<endl;
    }
  16. Replies
    12
    Views
    12,196

    Now I am getting this message error: Now I am...

    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...
  17. Replies
    12
    Views
    12,196

    What bracket mistakes? I am not sure what you are...

    What bracket mistakes? I am not sure what you are talking about...
  18. Replies
    12
    Views
    12,196

    rock, paper, scissors game

    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: '{' :...
Results 1 to 18 of 18