Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 23 Sep 2014, 16:43
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Online compiler
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Wed 14 Apr 2010, 11:50    Post subject:  Online compiler  

Online compiler for C, C++, tcl, python etc
tried the enclosed c - think I provided a link to something similar Smile

http://codepad.org/

example code

Code:
/* Example C program */

int main()

{ int i;
for (i = 0; i < 50000; i++)
{
printf ("%d",i);
printf (" Puppy is Great\n");
}
return 0;
}

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 15 Apr 2010, 16:13    Post subject:  

Cool. That could be pretty useful in certain circumstances. Especially for people who want to help other people with their code, or test algorithms, and don't have immediate access to a proper development environment (maybe they are on the road or visiting a friend or using a cell-phone).
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
tronkel


Joined: 30 Sep 2005
Posts: 1101
Location: Vienna Austria

PostPosted: Fri 16 Apr 2010, 08:44    Post subject:  

It won't replace a normal local compiler/debugger.

I tried it yesterday but only superficially with C++

I does not seem to be able to handle a situation where the program needs to suspend while it receives user input. e.g.

Quote:
#include <iostream>
#include <string>

using namespace std;

int main()
{

string name="";
cout << "What is your name" << endl;
getline(cin,name);

if(name=="Jack")
cout << "Welcome " << name << endl;
else
cout << "You're an impostor" << endl;

return 0;

}


The program will not pause at the getline statement so that the user can input his name. The output at the server is broken simply because because it has never received it.

_________________
Life is too short to spend it in front of a computer
Back to top
View user's profile Send private message Visit poster's website AIM Address 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0461s ][ Queries: 11 (0.0069s) ][ GZIP on ]