Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 12, 2012, 10:27 PM   #1
Marjamrob1
macrumors regular
 
Join Date: Jul 2012
Compiling C Code To Run In Mobile Terminal

I wrote a simple C program that takes an equation in y intercept an creates a table. My math teacher offered me extra credit to show it to her.I would perfer to do it on my iPad, as opposed to a computer. So how can I compile that for use with Mobile Terminal on my iPad, so it will run to show my teacher? I have Xcode 4.2, and GCC so what should I do?
Marjamrob1 is offline   1 Reply With Quote
Old Dec 12, 2012, 11:11 PM   #2
Marjamrob1
Thread Starter
macrumors regular
 
Join Date: Jul 2012
Anyone? Sorry, I'm impatient I just have to have this done by tomorrow.
Marjamrob1 is offline   0 Reply With Quote
Old Dec 12, 2012, 11:17 PM   #3
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
My immediate inclination is:
ssh from Mobile Terminal to a machine you can run your program on
I'm sure there's documentation for getting tools installed in Mobile Terminal but I don't know how to do it, and me looking it up is no more useful than you looking it up. Also I think general jailbreaky stuff is in a grey area on the forums.

Also... There's still a place for computers. You didn't write, test, and debug this code on your iPad. Running it on one for show is fine, but honestly... you know how to run it in your computer, and you don't know how to on your iPad. Learning is great, so learn! By all means. But maybe it's better to just show your teacher on a computer, get your extra credit, then figure out the iPad hootenanny.

Care for us to review your code?

-Lee
lee1210 is offline   0 Reply With Quote
Old Dec 13, 2012, 09:17 AM   #4
Marjamrob1
Thread Starter
macrumors regular
 
Join Date: Jul 2012
Quote:
Originally Posted by lee1210 View Post
My immediate inclination is:
ssh from Mobile Terminal to a machine you can run your program on
I'm sure there's documentation for getting tools installed in Mobile Terminal but I don't know how to do it, and me looking it up is no more useful than you looking it up. Also I think general jailbreaky stuff is in a grey area on the forums.

Also... There's still a place for computers. You didn't write, test, and debug this code on your iPad. Running it on one for show is fine, but honestly... you know how to run it in your computer, and you don't know how to on your iPad. Learning is great, so learn! By all means. But maybe it's better to just show your teacher on a computer, get your extra credit, then figure out the iPad hootenanny.

Care for us to review your code?

-Lee
Sure i will upload it later. I ended up using the interpreter on the appstore though.
Marjamrob1 is offline   0 Reply With Quote
Old Dec 13, 2012, 12:29 PM   #5
rien333
macrumors regular
 
Join Date: Jun 2010
Location: The Netherlands
Wait, there's a C interpreter on the App Store? Is it offline?
__________________
Macrumors newbie, happy to be here! (And sorry if any of my English is incorrect)
rien333 is offline   0 Reply With Quote
Old Dec 13, 2012, 02:11 PM   #6
lee1210
macrumors 68040
 
lee1210's Avatar
 
Join Date: Jan 2005
Location: Dallas, TX
Quote:
Originally Posted by rien333 View Post
Wait, there's a C interpreter on the App Store? Is it offline?
This appears to below-board, Cydia, jailbreaky stuff. That's fine, but some don't go in for that stuff.

-Lee
lee1210 is offline   0 Reply With Quote
Old Dec 13, 2012, 06:14 PM   #7
Marjamrob1
Thread Starter
macrumors regular
 
Join Date: Jul 2012
Quote:
Originally Posted by lee1210 View Post
This appears to below-board, Cydia, jailbreaky stuff. That's fine, but some don't go in for that stuff.

-Lee
Refering to this, on the appstore.
https://itunes.apple.com/app/id445292818

Works well enough, apparently not banned since it "interprets and doesn't actually install the program."
Marjamrob1 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Terminal run on startup command Zogw Mac Applications and Mac App Store 7 Jan 26, 2013 11:24 AM
Run MySQL on terminal dwolny Mac Programming 1 Nov 2, 2012 02:25 PM
Error on terminal when trying to run application, help? bigben33 OS X 10.8 Mountain Lion 2 Oct 21, 2012 12:06 AM
Run Terminal Command as root on Startup evilblob OS X 10.8 Mountain Lion 1 Aug 2, 2012 02:25 AM
run terminal command current finder window SniperUK Mac Applications and Mac App Store 3 Jul 30, 2012 02:52 PM

Forum Jump

All times are GMT -5. The time now is 09:39 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC