++

From Esolang
Jump to navigation Jump to search

++, or [removed - please be polite]++ is C++, but the letter "c" is banned. If one is found, the compiler will say that a "bad letter" is found, and fail to compile.

Examples

Infinite loop

int main() {
  while (1) {
  }
}

Implementation

I don't have much time, so I don't implement this with code. However, it is simple to make a Bash program to detect the 'c's beforepassing it to the c++ compiler.