G
Guest
plz can u convert this cpp file into python i need that badly as soon as
possible... I am new to python. I just wanna learn it....
possible... I am new to python. I just wanna learn it....
plz can u convert this cpp file into python i need that badly as soon as possible... I am new to python. I just wanna learn it....
plz can u convert this cpp file into python i need that badly as soon as possible... I am new to python. I just wanna learn it....
For such an aspiring student of the art of computer programming, I have
the strange feeling of lack-of-effort-showing here. Do I have to lose my
faith in youth?
plz can u convert this cpp file into python i need that badly as soon as
possible... I am new to python. I just wanna learn it....
Seebs said:Never!
Just be sure you are having faith in them to, well, be youth.![]()
With an impressive amount of technological experience under his belt. So
I'm a bit aghast to see him struggle with this rather simple
problem. Thus my question...
Seebs said:It does seem a bit odd.
I mean, if I had a short time line to get something converted to Python,
I'd probably ask for help, but then, I wouldn't take a gig where I needed to
quickly move something into an unfamiliar language. I'm happily puttering
away slowly at converting a couple of things to Python to get the hang of it,
carefully selecting things with no impending deadlines.
From the look of it... he's just trying to get a freebie on a homework
assignment. It certainly is no commercial/useful piece of code
whatsoever... just CS-101 "read data from stdin and do stuff".
Good grief. It's bad enough to expect us to do your coding for you,
without making even the *tiniest* effort to learn yourself, but then to
add insult to injury you use text-speak.
ur nt sending sms now, learn to rite the wrds
plz can u convert this cpp file into python i need that badly as soon as
possible... I am new to python. I just wanna learn it....
#include<cstdio>
int main()
{
int a[100], n;
freopen("input.txt", "r", stdin);
scanf("%d", &n);
for(int i=1; i<=n; i++)
scanf("%d", &a);
return 0;
}
I'm not sure how much good this will do you. It seems to me that you
might get better results translating a program which was not obviously
incorrect.
plz can u convert this cpp file into python i need that badly as soon as
possible... I am new to python. I just wanna learn it....
Having come to realize that this is a homework problem, I would of course
be glad to.
The original program:
#include<cstdio>
int main()
{
int a[100], n;
freopen("input.txt", "r", stdin);
scanf("%d",&n);
for(int i=1; i<=n; i++)
scanf("%d",&a);
return 0;
}
First, "scanf" was deprecated over five years ago.
Emile van said:Oh come now -- isn't being lazy a primary programmer's attribute?
... but I wasn't aware that it had been deprecated, except in the sense of
being derided and dismissed as of no value.
I wonder if that’s why more men are good at it than women...
You may want to think about whether this really was your intended
meaning.
Sure it was -- men are lazy; programmers are primarily lazy; explains why
programmers are predominantly men (for the time being, at least). Made perfect
sense to me.
On Mon, Oct 11, 2010 at 11:11 AM, Robert Kern <[email protected]
On 10/11/10 8:44 AM, Jason Swails wrote:
On Mon, Oct 11, 2010 at 9:25 AM, Andreas Waldenburger
<[email protected]>
wrote:
<mailto:[email protected]>
<mailto:[email protected]
You may want to think about whether this really was your intended
meaning.
Sure it was -- men are lazy; programmers are primarily lazy; explains why
programmers are predominantly men (for the time being, at least). Made
perfect
sense to me.
That's quite a different statement than "men are more good at it than women".
Since when have programmers argued semantics/syntax?
But tabs ARE spaces (specifically 3 of them), in a row![]()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.