Transition from WIndows/DOs based C++ to Linux C

This is a discussion on Transition from WIndows/DOs based C++ to Linux C within the Linux Programming forums, part of the Platform Specific Boards category; Hi .. I am a regular programmer in MSDOS based C++. Now I wish to transit to Linux C++ Programming.. ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    20

    Transition from WIndows/DOs based C++ to Linux C

    Hi ..

    I am a regular programmer in MSDOS based C++. Now I wish to transit to Linux C++ Programming.. What are the main points of difference between the two Languages..

    If possible please furnish me with the link of a site that can help me in this context..

    Thanx
    Just b Crazy abt Life and Programming.....

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    It is the same language. What do mean? they don't have any <windows.h> in linux. As long as you do standard programming and stay mainly away from non-standard programming you are fine. Linux also doesn't have <conio.h> those are two main ones that I know of. I don't program in windows though.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I don't program in windows though.
    What? linuxdude doesn't program in Windows? I'm shocked.

    >What are the main points of difference between the two Languages.
    Provided you use Standard C++, there is no difference. Of course, to write anything useful you often have little choice but to write something non-standard. First, there is no getch, getche, or kbhit. A lot of MSDOS programmers miss those when they move to Linux. I won't tell you how to write them yourself because it can be quite a learning experience figuring it out on your own. Just familiarize yourself with the Linux system functions and you shouldn't have any trouble. Use man liberally, and read the source code for everything you can. This is incredibly easy as everything in Linux comes with the source code.
    My best code is written with the delete key.

  4. #4
    Registered User
    Join Date
    Jan 2004
    Posts
    20
    Thanx for all the above ...
    However, I wish that if any1 of u guys provide me with a suitable link for a web page where I could find some tutorial for novice Linux Programmers...

    As far as usage of Linux goes,.. I have been working on it since last few months...and I am quite well versed with the LINUX shell scripting... However what I actually wanted was a direction in this regard which may prove helpful to me..

    Thanx
    Just b Crazy abt Life and Programming.....

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I wish that if any1 of u guys provide me with a suitable link for a web page where I could find some tutorial for novice Linux Programmers...
    Here is a start:

    http://www.erlenstar.demon.co.uk/unix/faq_toc.html
    My best code is written with the delete key.

  6. #6
    Registered User
    Join Date
    Jan 2004
    Posts
    20

    Sorry I need a Site for Beginners

    I require a site for beginners of Linux Based C++ Programming..

    The Site mentioned above does not have any information for novice Linux Programmers...

    Thanz
    Just b Crazy abt Life and Programming.....

  7. #7
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I require a site for beginners of Linux Based C++ Programming..
    Get a beginner's book on C++ for Linux then. The site I gave you describes the Unix API, which is mostly POSIX, which is supported by Linux, which answered your question as none of the broad range of topics are terribly difficult if you already know C or C++.

    >The Site mentioned above does not have any information for novice Linux Programmers...
    That's bull. It addresses a large portion of questions that novices have, which you would know if you bothered to read it. Why would I waste my time posting a link if it didn't have information that you could find helpful?

    So, since you obviously don't like my selections, go pick your own. Then go get a book when none of them give you what you ask for.
    My best code is written with the delete key.

  8. #8
    Registered User
    Join Date
    Jan 2004
    Posts
    20
    Hey prelude..
    I never meant to annoy you.. It was a simple thing. Listen, what I already told in my previous posts is that I am a C++ programmer in MSDOS... So I just needed some site which would help me to switch over from MSDOS based C++ Language to Linux based C++. A Site from which could you know could make me understand the differences between the two languages and help me tide over them...

    Listen... I know that you are obviously have far more experience in all this stuff as reflected from ur no of posts... So I don't wish to annoy or send disrupting signals to anyone here.. I hope now u get my point.

    Thanxx
    Just b Crazy abt Life and Programming.....

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >could make me understand the differences between the two languages
    C++ is C++, there are not different dialects of C++ on different operating systems. On the other hand, system APIs are wildly different. But that isn't learning a new language as much as a collection of functions and types.

    >I am a C++ programmer in MSDOS
    No web site will teach you how to go from MSDOS to Linux. The two are completely different, so as I said, get a book on Linux programming. www.accu.org typically has good book reviews, you can find something suitable there.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to run windows based application in linux
    By Bargi in forum Linux Programming
    Replies: 5
    Last Post: 02-07-2008, 12:46 AM
  2. Linux
    By cerin in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 02-10-2005, 09:41 PM
  3. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  4. dual os with linux?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 09-09-2004, 11:33 PM
  5. Linux? Windows Xp?
    By VooDoo in forum Linux Programming
    Replies: 15
    Last Post: 07-31-2002, 09:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21