Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-13-2004, 05:26 PM   #1
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
Thinking in C++

I just started programming in C++ and I am having a hard time "thinking" like a programmer. Basically I am having a hard time structuring code. Does anyone know a web site that can help my mind become more programming friendly?
Old 01-13-2004, 05:51 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
I don't sorry, but what part of structuring your code are you having a hard time with? When to split up functions when and where to use classes?

Most of this stuff comes from experiance and trying things out.
Old 01-13-2004, 08:26 PM   #3
Registered: Jul 2003
Location: California
Distribution: Gentoo 1.4
Posts: 108

Rep: Reputation: 15
Well I'm having the same trouble I was reading a book like learn c++ in 21 days or something but it was from the windows stand point. Is there a tutorial/book (would rather tut) That walks you step by step through programming on linux? I know the code is the same and it's just the libraries that are different but thats not just a small thing to a noob programmer.
Old 01-13-2004, 08:30 PM   #4
Ekim Gram
Registered: Apr 2003
Location: West Islip, New York
Distribution: Slackware 10.0, Windows XP Pro
Posts: 128

Rep: Reputation: 15
Actually, programming on Linux is almost the same as Windows. Except you just can't use MFC, DirectX (unless you have WineX), or Win32 and include the windows.h header file.

I've been programming C++ for over a year now and I just switched back to Linux cause of boredom. I have programmed under Linux and found no difference at all. If you have any other questions, please, feel free to ask.
Old 01-13-2004, 08:33 PM   #5
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
The standard libs are all exactly the same. Its once you step outside the standard libs that things are different. What usually mucks up noods ( like it did me at first ) is dealing with makefiles yourself. Normally on Windows evething is done in an IDE like VC++ or Borland Builder.

If thats what your looking for try Kdevelop or Anjunta to get you started.

If your programming for a GUI than KDE is probably the best bet for C++.

For books I like C++ from the ground up, by Herbert Schildt. Its a good intro to C++ and everthing in the book works on linux the same as windows.
Old 01-14-2004, 01:46 AM   #6
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
You could just read a wonderful book with the same title as your thread.

Go to Thinking in C++ and get a wonderful book which is a must for any C++ programmer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking about doing this adamb10 Linux From Scratch 1 05-22-2005 03:24 AM
Thinking in C eshwar_ind Programming 27 03-12-2004 08:38 AM
what was i thinking sig haus Slackware 10 11-21-2003 04:55 AM
Thinking of changing downinthemine Slackware 5 11-18-2003 08:36 PM
What are they thinking? itsjustme General 11 08-11-2003 04:13 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration