Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to do C/C++ programming in Linux

Status
Not open for further replies.

H_D_R

Full Member level 6
Joined
Jan 31, 2008
Messages
329
Helped
26
Reputation
52
Reaction score
9
Trophy points
18
Location
India
Activity points
0
linux c++ programming

hello all,

i am new user of linux.
can any tell me how can i do C programming in linux.
how can i get any editor/compiler for linux compatible.

please forward me the link for tutorial related to it.


Thanking you all in Advance..!!!!
 

current hour using linux c

Editor: vi, emacs
Compiler: gcc
 

    H_D_R

    Points: 2
    Helpful Answer Positive Rating
linux has inbuilt support for C, as the above answer suggests
 

    H_D_R

    Points: 2
    Helpful Answer Positive Rating
suresh_kvja said:
linux has inbuilt support for C, as the above answer suggests

thank you suresh,...

can any one suggest the link for tutorials for C programming in linux...???

i'll be gratefull... :)
 

Actually you donot need any Extra Tutorial. There are two things different from c++ in Windows.
1) the ouput file is not a *.exe file (file extension).
2) if you need an IDE or not. Almost every c/c++ programmer using linux does not use an IDE because the compiler (gnu gcc) is already there , at such compilling through the console is the best using the above mentioned tools. It offers many more options.

To 2) above, use a suitable editor as mentioned above (vim,(x)emacs,...) and compile using gcc(as above mentioned). Your results should be "a.out" for the default option. You can always change this output file. Actually all of this is written in most resonable c/c++ books or online tutorials on c/c++ programming.
 

You could search the information about free software in Internet.
 

meitolake said:
You could search the information about free software in Internet.

thank you....:D :D
 

The simplest way is to write program in a file using VIM or EMACS editor and compile it using GCC/G++.

You can also download Eclipse for sourceforge.net and use it.
 

help please (c programming)

hello ,could you help me about this c programming.ı can not do:(.ı wait your help
thanks...

(birumut) halime1k8@hotmail.com



write a function that will use current time (as hour,minute,second)after getting some hour,minute,second values.Function wil add these hours,minutes,seconds to current time and will find the new time.

NOTE:if time passes the current day after addition you have to show that too.after today and tomorrow,program will say2 days later,3 days later...

NOTE:program will change the current time so variables of current time must be global variables.

void ChangeTime(int add_hour,int add_minute,int add_sec);

NOTE:time will be based on 24 hour clock
NOTE:program will continue running in a loop untill user enters -1 after calculation.
NOTE:dont allow user to enter invalid values.
NOTE:you will use LOOPS to build an efficient algorithm


EXAMPLE RUN

enter current time (hh mm ss): 20 20 40
enter values to add (hh mm ss): 5 10 20
-------------------------------------
time after calculation:1:21:00. Tomorrow

continue? (-1 for exit,0 for continue): 0

enter current time(hh mm ss): 10 48 28
enter values to add (hh mm ss): 2 55 23
-------------------------------
time after calculation: 13:43:51. Today
 

Re: help please (c programming)

birumut said:
hello ,could you help me about this c programming.ı can not do:(.ı wait your help
thanks...

(birumut) halime1k8(at)hotmail.com



write a function that will use current time (as hour,minute,second)after getting some hour,minute,second values.Function wil add these hours,minutes,seconds to current time and will find the new time.

NOTE:if time passes the current day after addition you have to show that too.after today and tomorrow,program will say2 days later,3 days later...

NOTE:program will change the current time so variables of current time must be global variables.

void ChangeTime(int add_hour,int add_minute,int add_sec);

NOTE:time will be based on 24 hour clock
NOTE:program will continue running in a loop untill user enters -1 after calculation.
NOTE:dont allow user to enter invalid values.
NOTE:you will use LOOPS to build an efficient algorithm


EXAMPLE RUN

enter current time (hh mm ss): 20 20 40
enter values to add (hh mm ss): 5 10 20
-------------------------------------
time after calculation:1:21:00. Tomorrow

continue? (-1 for exit,0 for continue): 0

enter current time(hh mm ss): 10 48 28
enter values to add (hh mm ss): 2 55 23
-------------------------------
time after calculation: 13:43:51. Today

please post in a new thread...

Thank you
 

Eclipse and Netbeans are nice IDE's for C Cpp programming in Linux...I use it....lot of features...
 

H_D_R said:
hello all,

i am new user of linux.
can any tell me how can i do C programming in linux.
how can i get any editor/compiler for linux compatible.

please forward me the link for tutorial related to it.


Thanking you all in Advance..!!!!

plz refer to this tutorial for gcc.
 

    H_D_R

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top