title: warning: null character ignored [-Wnull-character] in C++
body: <p>The little code I have compiles fine but when I go to run IntVector.cpp I get literally thousands of warnings like the following:</p>
  
  <pre><code> IntVector:3:1533: warning: null character ignored [-Wnull-character]
    ...&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;
   IntVector:8:3: warning: null character ignored [-Wnull-character]
  &lt;U+0008&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;E9&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;H&lt;8D&gt;E&lt;D0&gt;H...
   ?IntVector:9:2415: warning: null character ignored [-Wnull-character]
    ...&lt;U+0000&gt;&lt;U+0000&gt;&lt;9E&gt;&lt;U+0000&gt;&lt;U+0000&gt;&lt;U+0000&gt;|&lt;U+0003&gt;&lt;U+0000&gt;&lt;U+0000&gt;...
  </code></pre>
  
  <p>And so on. This is my first time trying to run a C++ program so I suppose the problem could be in my setup. I'm on Mac and using Emacs to code and compile and terminal to run it.</p>
  
  <p>IntVector.cpp</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "IntVector.h"
  #include &lt;cmath&gt;
  using namespace std;
  
  
    int* array = new int[0];
    int num_elements;
    int array_size;
    int expansion_factor;
  
  void IntVector::expandArray(){
  
    }
  void IntVector::add(int val){
  
      cout &lt;&lt; "Hello"; 
    }
  void IntVector::remove(int index){   
    }
  int IntVector::get(int index) const{
      return index;
    }
  void IntVector::removeLast(){
    }
  void IntVector::set(int index, int val){
    }
  
  std::string IntVector::toString()const {
      return "";
    }
  
  IntVector::IntVector(int initial_size){
  
    }
  
  IntVector:: ~IntVector(){}
  
  
  int main(){
  
    IntVector v(5);
    v.add(5);
  
  }
  </code></pre>
  
  <p>IntVector.h</p>
  
  <pre><code>#ifndef INTVECTOR_H_
  #define INTVECTOR_H_
  
  using std::cout;
  class IntVector {
  private:
    int* array;
    int num_elements;
    int array_size;
    int expansion_factor;
    void expandArray();
   public:
    void add(int val);
    void remove(int index);
    int get(int index) const;
    void removeLast();
    void set(int index, int val);
    std::string toString() const;
    IntVector(int initial_size);
    ~IntVector();
  
  
  };
  #endif  
  </code></pre>