How To Write C Programs In Linux/ Geanyenvironment

Transcription

HowtoWriteC methatyouhaveloggedintoyourCSaccount,youcanaddabu ontoyourtaskbar(baronthebo AddtoPanel- ‐ Launcherfrommenu- ‐ Accessories- ‐ Terminal".OR,youcanalwaysopenaterminalbyright- ow)

tentofthecurrentdirectory,typels orycalledcs010,youwilltypemkdir cs010Toverify,wedoanotherls –land

s010,wetype:cd heonecontainingyourcs010directory),youtypecd .(nospacebetweenthe2dots)Anotherls –lshowsthatyouhavegoneuponelevel

.Inthenextslide,we’llshowyouwhatGeanylookslike.

corner,thereisabu ngethatismadeClickonthebu oncalledSavenexttotheNewbu on.

aturefortheC hatwillprintsomethingtothescreen

de,andifyourcodecrossestheline,itwillcauseline- op-on.

owtorunyourprogram

anexecutableoutputfileDonotclickontheCompilebu on,butclickintheBuildbu Executebu onnexttotheBuildbu Benasyoucan

Toopenanexis-ngfile,clickontheOpenbu nanythingelse,itwillnotbegradedandyouwillbegivena0

All#of#the#files#you#will#write#and#submitto# iLearn#will#be#named#specifically#main.cpp. # #on#its#color#coding#feature#for#the#C template.# # atwill#printsomething#to#the#screen# # Feel#free#to#supply#your#own#name#in# this#small#program# #