title: error C3861: 'getLine': identifier not found
body: <p>I've started programming abstractions (CS106B) from SEE. I'm having a hard time starting the assignment. Here's the code for the warmup exercise. I've already consulted various different solutions but none of them worked, hence, was compelled to post this here.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cstring&gt;
  #include "console.h"
  using namespace std;
  
  /* Constants */
  
  const int HASH_SEED = 5381;               /* Starting point for first cycle */
  const int HASH_MULTIPLIER = 33;           /* Multiplier for each cycle      */
  const int HASH_MASK = unsigned(-1) &gt;&gt; 1;  /* All 1 bits except the sign     */
  
  /* Function prototypes */
  
  int hashCode(string name);
  
  /* Main program to test the hash function */
  
  int main() {
     string name = getLine("Please enter your name: ");
     int code = hashCode(name);
     cout &lt;&lt; "The hash code for your name is " &lt;&lt; code &lt;&lt; "." &lt;&lt; endl;
     return 0;
  }
  
  /*
   * Function: hash
   * Usage: int code = hashCode(key);
   * --------------------------------
   * This function takes the key and uses it to derive a hash code,
   * which is nonnegative integer related to the key by a deterministic
   * function that distributes keys well across the space of integers.
   * The general method is called linear congruence, which is also used
   * in random-number generators.  The specific algorithm used here is
   * called djb2 after the initials of its inventor, Daniel J. Bernstein,
   * Professor of Mathematics at the University of Illinois at Chicago.
   */
  
  int hashCode(string str) {
     unsigned hash = HASH_SEED;
     int nchars = str.length();
     for (int i = 0; i &lt; nchars; i++) {
        hash = HASH_MULTIPLIER * hash + str[i];
     }
     return (hash &amp; HASH_MASK);
  }
  </code></pre>
  
  <p>Compilation log:</p>
  
  <pre><code>&gt; 1&gt;------ Build started: Project: Warmup, Configuration: Debug Win32 ------
  1&gt;Compiling...
  1&gt;Warmup.cpp
  1&gt;c:\users\users\google drive\courses\programming abstractions (stanford cs106b) 2012\assignments\assignment1-vs2008\assignment1-vs2008\0-warmup\src\warmup.cpp(30) : error C3861: 'getLine': identifier not found
  1&gt;Build log was saved at "file://c:\Users\Users\Google Drive\Courses\Programming Abstractions (Stanford CS106B) 2012\Assignments\Assignment1-vs2008\Assignment1-vs2008\0-Warmup\Warmup\Debug\BuildLog.htm"
  
  1&gt;Warmup - 1 error(s), 0 warning(s)
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>