MahmytM's blog

By MahmytM, history, 5 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

»
5 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

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

    Yeah thanks I changed it but it says:

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

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

      • »
        »
        »
        »
        5 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"

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

          .

        • »
          »
          »
          »
          »
          5 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