Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
Posted: 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
Joined: 30 Sep 2005 Posts: 1058 Location: Vienna Austria
Posted: 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
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