is there any c++ compiler for ipad2?

Solution 1:

Is your iPad jailbroken? If yes, download mobile terminal (a commandline) , vim (the text editor) and the gnu c compiler from cydia, and google for a file "iosgcc.zip", download, unzip, and enter the terminal and install the package of g++. The way to jailbreak depends on the version of your iOS, visit www.jailbreakme.com as a reference.

Solution 2:

No fully functional IDE exists on iOS to make runnable apps without jailbreaking but you can sign up for a free Amazon Web service account and get an ssh client and program "on the iPad" assuming you have a network account.

An app like nimbus or textastic would be an ideal companion once you were clear how compiling elsewhere fit your desire to learn.

Xcode is currently only available for Mac OS X to develop programs that run iOS and cocoa touch (not which is very much not C++ - even though Xcode can be used for C++).

Have a look at this question on learning C which will apply almost entirely to C++ on iOS.

Is there a C compiler for iPad?

Solution 3:

There is no compiler that runs on the iPad. There are numerous web apps that will accomplish what you're probably looking for. This of course assumes that you are not hoping to use an iPad as a development environment.

Have a look at:

  • CompileOnline: Has C++ and many other languages. It's simple with no account necessary.
  • CodePad: Very simple. For short snippets only.
  • Compilr: Requires registration, but is more like a full-blown Web-ide app with storage available for your code.

Google searches will get you further. If you are looking for short, snippet based online compiler / interpreters abound. Compilr works with the iPad and is looks to be sufficient enough to support small projects or college-level coursework.