Saturday, January 3, 2009

Test C++, Perl, PHP, Ruby or Python Code Online

Just go to codepad.org and enter your code in any of the following languages: C, C++, D, Haskell, OCaml, Perl, Plain Text, Python, Ruby, Scheme, and Tcl. Once you’ve entered your code you then have the option of either pasting and running your code to test it or just pasting it. If any errors are found in the code that you have written, Codepad will point out the error and give you an explanation of what you have done wrong along with the line in which that error occurs. Also, after entering your code, Codepad will create a page where you and others clan go to test and collaborate.


This is a simple free tool that allows both advanced and beginner-level programmers to test their code. Most appealing is the potential it offers for group collaboration.

It's usage looks like that:

C++:

int main(){
char hostname[] = "blogspot.com/";
printf("http://mubarakworld.%s", hostname);
return EXIT_SUCCESS;
}

Output:
1 
http://mubarakworld.blogspot.com/ 

http://codepad.org/

0 comments:

Post a Comment