Questions tagged [codepad]

Codepad is an online compiler/interpreter, and a simple collaboration tool.

Codepad is an online compiler that allows users to edit and paste in short snippets of runnable code in any of various pre-determined programming languages.

16 questions
18
votes
5 answers

Online C++ compiler with input stream?

I kinda like codepad online editor (supports C++), but I'd like to use some scanfs which is not possible with codepad. Is there some online C++ compiler that supports input streams? Is that even possible?
Xorty
  • 18,367
  • 27
  • 104
  • 155
17
votes
1 answer

Warning: preg_match(): Internal pcre_fullinfo()

I have the following working code: $test = '123456'; $int = preg_match('/^\d+$/', $test, $matches); print_r(array($int, $matches)); However when I execute it on codepad I get the error: Warning: preg_match(): Internal pcre_fullinfo() error -3 on…
PeeHaa
  • 71,436
  • 58
  • 190
  • 262
16
votes
4 answers

Codepad/ideone style collaborative web IDE?

I'm looking for a simple collaborative web-based text-editor which can compile—and show output from—a few popular languages such as: C++, PHP and Python. Research Editors Ace EditArea (people prefer Ace, e.g.: web2py and ideone moved to Ace) IDE…
A T
  • 13,008
  • 21
  • 97
  • 158
5
votes
6 answers

PHP file_get_contents() not working

Can anyone explain why the following code returns a warning: I get a Warning: Warning: file_get_contents(http://google.com): failed to open stream: No such file or directory on line 2 See…
Kristy Saulsbury
  • 51
  • 1
  • 1
  • 3
3
votes
2 answers

What are codepad.org's Perl runner limitations?

Sometimes I see people use http://codepad.org as a way to quickly run/test their Perl snippets (it supports doing that with a wide variety of languages, from C to Scheme to Perl). It's pretty obvious that there must be some limitations as to what…
Aye
  • 393
  • 2
  • 13
2
votes
2 answers

can't get hello, world program to work

I'm trying to get the hello, world program from D (The Programming Language)/d2/Hello, World! to work on codepad.org. Here's my code: /* This program prints a hello world message to the console. */ import std.stdio; void main() { …
neubert
  • 15,947
  • 24
  • 120
  • 212
2
votes
3 answers

Do Ideone and Codepad really not support C++03?

My question is related to Prasoon's question about non POD types and value initialization. I tried the following code on online compilers like Ideone and Codepad but the executables gave runtime error on both the sites. #include #include…
2
votes
2 answers

variable number of arguments in constructor of int

I wrote the following code snippet which resulted in compilation errors when executed on codepad.org int main() { int *p = new int(5,6,7); return 0; } I was passing 3 number of arguments to constructor of int while dynamically allocating memory…
Arun
  • 2,247
  • 3
  • 28
  • 51
1
vote
2 answers

Cooperation tool group: coding in C

Is there any tool, similar to codepad, writing code in C language that I can share my code with a group and my group can make changes and simultaneous views in real time editing?
richardaum
  • 6,651
  • 12
  • 48
  • 64
0
votes
1 answer

Can I paste a program's snippet on codepad using CPPaste vim plugin or no?

I'm using vim lately & codepad. There's a nice plugin for vim which works like a charm. My problem is that, sometimes I need just to paste a function not the entire script/program. CPPaste plugin page states: to send the current buffer to…
patm
  • 1,420
  • 14
  • 19
0
votes
1 answer

Compiling c using ruby

How would I go about making a Website like codepad? Essentially I want to be able to compile C code after a user types it in and out put the success or error message. If it is successful, how would I be able to run it with certain parameters? (This…
Inevit
  • 1
0
votes
3 answers

Getting EOFError when using online compiler (codepad.org)

I built a very simple addition calculator in python: #This program will add two numbers entered in by the user print "Welcome!" num1 = input("Please enter in the first number to be added.") num2 = input("Please enter in the second number to be…
kachilous
  • 2,499
  • 11
  • 42
  • 56
0
votes
1 answer

What is the principle of Codepad.org website?

I wondering the principle of Codepad.org website. (Principle of online C compiler) I think the principle follow these steps. User submit the C code. Website send to GCC installed on server. GCC compile the code. GCC return the strings and send to…
YouHoGeon
  • 405
  • 1
  • 3
  • 15
0
votes
2 answers

ISO C++ forbids initialisation of private const unsigned long?

I'm using codepad.org class a { private: const unsigned long b = 100; }; Line 3: error: ISO C++ forbids initialization of member 'b' compilation terminated due to -Wfatal-errors. Sorry if I've missed something obvious, but what could…
alan2here
  • 3,223
  • 6
  • 37
  • 62
0
votes
1 answer

How can I send the content of a textarea to the textarea of "codepad.org"?

I want to send the content of a text area from a webpage to the text area in codepad.org. How can I do that ? This and this link did not help in doing this .... If this is not possible, then how can I use "codepad.org" in other webpages ...... ???
Animesh Pandey
  • 5,900
  • 13
  • 64
  • 130
1
2