title: C++ How to print Big letters Horizontally?
body: <p>for example, a have this function that prints a big "A"</p>
  
  <pre><code>void printA(){
      cout&lt;&lt;"0000000\n0     0\n0     0\n0000000\n0     0\n0     0\n";
  }
  
  0000000
  0     0
  0     0
  0000000
  0     0
  0     0
  </code></pre>
  
  <p>I have all the alphabet, is there a way I can print the big letters horizontally? like:</p>
  
  <pre><code>0000000  0000000  0000000
  0     0  0     0  0     0
  0     0  0     0  0     0
  0000000  0000000  0000000
  0     0  0     0  0     0
  0     0  0     0  0     0
  </code></pre>
  
  <p>the goal of the program is to print the user's input with these big letters, vertically or horizontally.</p>
  
  <p>here is a resumed version of my program:</p>
  
  <pre><code>void printA(){
      cout&lt;&lt;"0000000\n0     0\n0     0\n0000000\n0     0\n0     0\n"&lt;&lt;endl;
  }
  
  void printChar(char c){
      c = toupper(c);
      if (c=='A')
      printA();
  
  }
  int main(){
  
  string sentence;
  cout&lt;&lt;"enter sentence: ";
  cin&gt;&gt; sentence;
  
  for(unsigned int i = 0; i&lt;sentence.length(); i++) {
      char c = sentence[i];
      if(c=='a')
      printA();
  }
  return 0;
  
  }
  </code></pre>
  
  <p>I made the letter functions with the "\n" to save lines, another option is to make them like this:</p>
  
  <pre><code>void printA(){
      cout &lt;&lt; "0000000" &lt;&lt; endl;
      cout &lt;&lt; "0     0" &lt;&lt; endl;
      cout &lt;&lt; "0     0" &lt;&lt; endl;
      cout &lt;&lt; "0000000" &lt;&lt; endl;
      cout &lt;&lt; "0     0" &lt;&lt; endl;
      cout &lt;&lt; "0     0" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>if is not possible to print them next to each other in the way i have them, i will rewrite them, but please tell me how to print them in horizontal form :(
  thank you!</p>
  
  <p>I have the following alerts:</p>
  
  <pre><code>main.cpp:29:23: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
           for (char c : text)
                         ^
  main.cpp:31:37: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
               std::cout &lt;&lt; alphabet[c - 'A'][line] &lt;&lt; "  ";
  </code></pre>