Jump to: navigation, search

Difference between revisions of "Test"

(Created page with "<source lang="js"> console.log('Some JavaScript code'); </source>")
 
Line 1: Line 1:
<source lang="js">
+
<source lang="c">
console.log('Some JavaScript code');
+
#include <iostream>
 +
 
 +
int main(int argc, char *argv[]) {
 +
 
 +
  /* An annoying "Hello World" example */
 +
  for (auto i = 0; i < 0xFFFF; i++)
 +
    cout << "Hello, World!" << endl;
 +
 
 +
  char c = '\n';
 +
  unordered_map <string, vector<string> > m;
 +
  m["key"] = "\\\\"; // this is an error
 +
 
 +
  return -2e3 + 12l;
 +
}
 
</source>
 
</source>

Revision as of 18:05, 30 August 2015

#include <iostream>

int main(int argc, char *argv[]) {

  /* An annoying "Hello World" example */
  for (auto i = 0; i < 0xFFFF; i++)
    cout << "Hello, World!" << endl;

  char c = '\n';
  unordered_map <string, vector<string> > m;
  m["key"] = "\\\\"; // this is an error

  return -2e3 + 12l;
}