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 21 Oct 2014, 09:49
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 Posts_count  
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_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_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_website AIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0421s ][ Queries: 12 (0.0035s) ][ GZIP on ]