Thread: how to write c language on centos?

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    15

    how to write c language on centos?

    i have installed CentOS on vmware with text style,now i want to write the c programme on it. what software shoud i install? and how to install them? after installed those necassary tools, what are steps to write the hello word! example. expect someone can give me this example step by step. thanks in advance.

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by runeveryday View Post
    i have installed CentOS on vmware with text style,now i want to write the c programme on it. what software shoud i install? and how to install them? after installed those necassary tools, what are steps to write the hello word! example. expect someone can give me this example step by step. thanks in advance.
    Hmm...did you try this? That's right, 2 seconds of googling to find the link.

    Sure, you should read: CBoard C Tutorials, start at lesson 1 and read your way through till the end. This should get you started:
    Code:
    //your include files here
    int main(void){
         //your code here
         return(0);
    }
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    15
    got it. i made the hello world example on it successfully. many thanks. could you tell me where is the hello.c file in?

  4. #4
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by runeveryday View Post
    got it. i made the hello world example on it successfully. many thanks. could you tell me where is the hello.c file in?
    You 'got' it without actually knowing where the source file is ?
    I wish my computer would be that nice to me too ! :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 28
    Last Post: 10-30-2008, 03:52 PM
  2. Writing a linux (centos 4) c++ daemon that interacts with PHP
    By misterdanny in forum C++ Programming
    Replies: 3
    Last Post: 01-18-2007, 07:48 AM
  3. Linux CentOS Woes!
    By Stack Overflow in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 04-20-2006, 11:40 AM
  4. What's the Difference Between a Programming Language and a Scripting Language?
    By Krak in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-15-2005, 04:46 PM
  5. Computer Language VS Spoken Language
    By Isometric in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 02-04-2002, 03:47 PM