LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-13-2004, 06:26 PM   #1
nny0000
Member
 
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, 06:51 PM   #2
leonscape
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, 09:26 PM   #3
Vyeperman
Member
 
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, 09:30 PM   #4
Ekim Gram
Member
 
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, 09:33 PM   #5
leonscape
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, 02:46 AM   #6
UltimaGuy
Member
 
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.
 
  


Reply


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 04:24 AM
Thinking in C eshwar_ind Programming 27 03-12-2004 09:38 AM
what was i thinking sig haus Slackware 10 11-21-2003 05:55 AM
Thinking of changing downinthemine Slackware 5 11-18-2003 09:36 PM
What are they thinking? itsjustme General 11 08-11-2003 05:13 PM


All times are GMT -5. The time now is 12:50 PM.

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