Skip to main content
15 events
when toggle format what by license comment
Jul 28, 2014 at 16:58 comment added arshajii @ScottLeadley Yes ("Note that this is written in Python 2.x code").
Jul 28, 2014 at 16:58 comment added Scott Leadley I assume you're using python 2. Python 3 throws a parse error.
Jul 24, 2014 at 19:11 history edited arshajii CC BY-SA 3.0
added 4 characters in body
Jul 24, 2014 at 19:03 comment added arshajii @Claudiu On second thought, I've made the initialization string a command-line parameter.
Jul 24, 2014 at 19:03 history edited arshajii CC BY-SA 3.0
added 47 characters in body
Jul 24, 2014 at 18:56 comment added arshajii @Claudiu Ah, I knew I overlooked something, thanks. Now, upon running the program, you can input said string.
Jul 24, 2014 at 18:56 history edited arshajii CC BY-SA 3.0
added 47 characters in body
Jul 24, 2014 at 18:52 comment added Claudiu My mistake, it's the 6th bullet: "When program starts executing a prompt for input string should be displayed (or take input from command line arguments, it's up to you). Input string should not contain null character (zero byte). Then input string is written to RAM starting at zero index."
Jul 24, 2014 at 18:47 history edited arshajii CC BY-SA 3.0
deleted 14 characters in body
Jul 24, 2014 at 18:47 comment added Claudiu That's the program. But look at the 7th bullet point. You should be able to initialize the initial RAM array to, say, "hello" via stdin or an argument
Jul 24, 2014 at 18:36 comment added arshajii @Claudiu See the example. It's a command-line argument.
Jul 24, 2014 at 18:34 comment added Claudiu How do you give it input?
Jul 24, 2014 at 18:22 history edited arshajii CC BY-SA 3.0
deleted 1 character in body
Jul 24, 2014 at 18:13 history edited arshajii CC BY-SA 3.0
added 19 characters in body
Jul 24, 2014 at 18:08 history answered arshajii CC BY-SA 3.0