c programming in mac os x xcode
TRANSCRIPT
2InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
• XcodeisthestandarddevelopmentenvironmentforMacOSX• XcodeisusedtodevelopMacOSXoriOSapplications
CProgramminginMac
Xcode
3InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step1:Createaproject
File à New à Project…
4InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2:SelectMacOS&commandlineapp
xcode <8
5InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2:SelectMacOS&commandlineapp
xcode >=8
6InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step2.5:SelectClanguage
7InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Projectiscreated• Projectalreadyincludesonesourcefile• Thesourcefilealreadyincludesabasicversionofthemainprogram
Source codeeditor
8InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step3:Compileswhileyoutype
Error messagesappear over thesource code
9InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step3:Runningtheprogram
Button to open and close console and debubber tools
Compile, build and RUN
10InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Step4:Debuggingtheprogram
Output console
Variables
Step button
Current execution line
Breakpoint
11InstitutodeInvestigaciónTecnológicaEscuelaTécnicaSuperiordeIngenieríaICAI
ProgramaciónCenelMac– RafaelPalaciosOct/2010-Jun/2014
Workingwithtextfilesorbinaryfiles• Theworkingdirectorywheretheprogramisexecutedcanbeconfiguredintheprojectscheme.
Edit Scheme
Instituto de Investigación TecnológicaC/ Santa Cruz de Marcenado, nº 2628015 MadridTel +34 91 542 28 00Fax + 34 91 542 31 [email protected]
www.upcomillas.es