I am a student in college and just started to learn C++. I have an iPad 2 and no computer (it broke and I will not buy another one). So I want to find an app that seems like codeblock for Windows. The ability to run code and maybe can fix it is a big plus. Thanks a lot!
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.
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.
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.
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.
Try CppCode ios app - http://www.cppcode.info. No jailbreak required, no internet required, free(mium)
If it helps, there is Java for iPad on App Store but you will have to pay to compile