MahmytM's blog

By MahmytM, history, 6 months ago, In English

Today I tried to solve

I wrote this

code

But it says compilation error.What do I need to do??? Help please!

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
6 months ago, # |
  Vote: I like it +7 Vote: I do not like it

guess_sequance is a mistake, replace it with guess_sequence since the function needs to have the precisely correct name to be read correctly by the grader

  • »
    »
    6 months ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Yeah thanks I changed it but it says:

    This
    • »
      »
      »
      6 months ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Try putting #include "combo.h" at the beginning of your submission.

      • »
        »
        »
        »
        6 months ago, # ^ |
        Rev. 4   Vote: I like it 0 Vote: I do not like it

        Thanks it worked but how did you know that I must write this #include "combo.h"

        • »
          »
          »
          »
          »
          6 months ago, # ^ |
          Rev. 4   Vote: I like it 0 Vote: I do not like it

          .

        • »
          »
          »
          »
          »
          6 months ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          You need to include the file in order to call the press() function.

          This function is defined in the combo.h header file