473,651 Members | 2,987 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

want to learn C++

I want to learn C++! does anyone have any advice?

Lee

Jun 21 '07 #1
21 1989
On Jun 21, 4:40 pm, Lee.k...@gmail. com wrote:
I want to learn C++! does anyone have any advice?

Lee
Yes, get started. I personally like accelerated C++.
http://www.amazon.com/Accelerated-C%...2463388&sr=8-1

It would depend on how much experience you have with programming.
Start by learning the compiler do a hello world program. Learn the
basics. A few years ago I was in the beginner mode. It is very
challenging. Take your time experiment. start with the standard
inputs and outputs. Learn the data types learn program flow. Don't
get too caught up with pointers, learn about the standard libraries
especially string and vector. C++ is a strict language but there are
ways to get around the strict rules. Learn the rules first.

Jun 21 '07 #2
JoeC wrote:
On Jun 21, 4:40 pm, Lee.k...@gmail. com wrote:
>I want to learn C++! does anyone have any advice?

Lee

Yes, get started. I personally like accelerated C++.
http://www.amazon.com/Accelerated-C%...2463388&sr=8-1

It would depend on how much experience you have with programming.
Start by learning the compiler do a hello world program. Learn the
basics. A few years ago I was in the beginner mode. It is very
challenging. Take your time experiment. start with the standard
inputs and outputs. Learn the data types learn program flow. Don't
get too caught up with pointers, learn about the standard libraries
especially string and vector. C++ is a strict language but there are
ways to get around the strict rules. Learn the rules first.
Seconded. Also, DO NOT USE VISUAL C++ 6.0!!!!! If you're using
Windows, start with "console" programs, do not use MFC. Avoid
Microsoft-isms (stdafx.h and _TCHAR/_tmain). MinGW is available for
free and is highly Standard compliant (modulo "export"), and so is
Visual Studio 2005 Express, also compliant (assuming /Za. again modulo
"export").
Jun 21 '07 #3
red floyd pisze:
>
Seconded. Also, DO NOT USE VISUAL C++ 6.0!!!!! If you're using
Windows, start with "console" programs, do not use MFC. Avoid
Microsoft-isms (stdafx.h and _TCHAR/_tmain). MinGW is available for
free and is highly Standard compliant (modulo "export"), and so is
Visual Studio 2005 Express, also compliant (assuming /Za. again modulo
"export").
I am also new in C++ programming. I use VC++ 2005 Express and that is
why I want to ask you about additional VC++ compiler/linker settings
which can assure the best ISO C++ standard compatibility because MS
created many self-owned C++ extensions, I don't interested at all.
Jun 22 '07 #4
depends on how much programming experience you have already.
If you have no experience, here is what helped me:
http://math.hws.edu/javanotes/
this is a great tutorial for java. learn that, the skills will
transfer over to c++ and the syntax is very similar. after that, you
can gather the rest from c++ code examples all over the web.

Josh.

Lee.k...@gmail. com wrote:
I want to learn C++! does anyone have any advice?

Lee
Jun 22 '07 #5
Joshua Moore wrote:
>
Lee.k...@gmail. com wrote:
>I want to learn C++! does anyone have any advice?
depends on how much programming experience you have already.
If you have no experience, here is what helped me:
http://math.hws.edu/javanotes/
this is a great tutorial for java. learn that, the skills will
transfer over to c++ and the syntax is very similar. after that, you
can gather the rest from c++ code examples all over the web.
1. Do not top post. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.4

2. Java skills do not transfer easily to C++. Often what we see here is
people trying to write Java in C++ and making novice mistakes (new-ing
everything, etc..).
Jun 22 '07 #6
>
Seconded. Also, DO NOT USE VISUAL C++ 6.0!!!!! If you're using
Windows, start with "console" programs, do not use MFC. Avoid
Microsoft-isms (stdafx.h and _TCHAR/_tmain). MinGW is available for
free and is highly Standard compliant (modulo "export"), and so is
Visual Studio 2005 Express, also compliant (assuming /Za. again modulo
"export").
Interesting that you say this about msvc++6.0 Right now I'm in the
middle of Prata's C++ Primer Plus. Once done, I intended to work
through this tutorial:

http://www.stromcode.com/wiki/index....Win32_Tutorial

to get some experience of using C++ with the Windows API. The writer
of this tutorial seems to agree with you in that he urges users to
download vs2005. Right now I'm using Dev-Cpp and am somewhat
intimidated about using a different ide/compiler. Is the transition
pretty simple?

Jun 22 '07 #7
On 22 Jun, 02:24, Joshua Moore <joshu...@gmail .comwrote:
Lee.k...@gmail. com wrote:
I want to learn C++! does anyone have any advice?
depends on how much programming experience you have already.
If you have no experience, here is what helped me:http://math.hws.edu/javanotes/
this is a great tutorial for java. learn that, the skills will
transfer over to c++ and the syntax is very similar. after that, you
can gather the rest from c++ code examples all over the web.
Please don't top-post. Thank you. Rearranged.

The OP wants to learn C++. You're the first person I've ever seen
suggest that they way to do that is to learn Java first. I can't
imagine how that can accelerate the process of learning C++. From what
I know of Java and of Java programmers trying to learn C++, I can
however imagine a lot of confusion for the OP if they go that route.

As for code examples on the web, I'm not sure that's a good idea in
general either. By definition, someone learning the language is
incapable of differentiating between the good examples and the awful
examples, and unfortunately there are a lot of the latter. I would
suggest the OP treats any C++ website with caution unless it comes
recommended by a reliable source. I would regard the general consensus
of this group as one reliable source.

To the OP: As well as "Accelerate d C++", suggested elsethread, you
might want to look at "Thinking in C++"

http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

I'm not personally familiar with it but it is often recommended in
this group. It's online and free.

Gavin Deane

Jun 22 '07 #8
I'd say it depends on whether you are used to OOP (Object-Oriented
Programming) or not. If you're not, it can be horribly confusing.
Especially once you get into it and you suddenly have pointers flying
everywhere and not understanding when you're copying something and
when you're copying the address.

My suggestion if you don't know OOP, is you learn C#. C# on the very
basic level (before web, multi-threading, databases, etc), is fairly
close to C++. Infact, it's built off of it. I don't mean tinker
long, but long enough to learn how objects work, without having to
worry about the difference between a pointer and a reference. Once
you start to understand OOP (it shouldn't take too long), then
switching is much easier. Then it's just pointer manipulations of
what you've already done.

Obviously, some people will disagree with me. There are a lot of
places to start. Unfortunately, there are a lot of bad ones too.

Jun 22 '07 #9

"Scoots" <bs*******@trax corp.comwrote in message
news:11******** **************@ k79g2000hse.goo glegroups.com.. .
I'd say it depends on whether you are used to OOP (Object-Oriented
Programming) or not.
I'd say it doesn't. C++ is not inherently an 'OOP language'.
It does have built-in support for OOP, but that's only one
of many styles it supports.
If you're not, it can be horribly confusing.
Disagree.
Especially once you get into it and you suddenly have pointers flying
everywhere
(Raw) pointers are rarely needed in C++.
and not understanding when you're copying something and
when you're copying the address.
The copying of objects and how it works does need to be understood,
but imo that's not difficult at all.
>
My suggestion if you don't know OOP, is you learn C#.
C++ != OOP.
C# on the very
basic level (before web, multi-threading, databases, etc), is fairly
close to C++. Infact, it's built off of it. I don't mean tinker
long, but long enough to learn how objects work, without having to
worry about the difference between a pointer and a reference. Once
you start to understand OOP (it shouldn't take too long), then
switching is much easier. Then it's just pointer manipulations of
what you've already done.
Concentrating on pointers in order to learn C++ is imo a mistake.
>
Obviously, some people will disagree with me.
:-)
There are a lot of
places to start. Unfortunately, there are a lot of bad ones too.
Yup.

-Mike

Jun 22 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1786
by: Aziz McTang | last post by:
Hi Group, I am not an experienced programmer at all. I've learned html and css well enough to hand-write simple websites. I'm now looking to move to the next step. Initially, I'd like to do 3 things: 1) Generate web pages This one's fairly obvious maybe. 2) Create a simplified translation package specific to my line of work:
5
2645
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more demand for. Looking at jobs there seems to be a better chance in getting a java job rather than a oracle or c++ job. Also is java and oracle a good combiantion?
9
1651
by: Eric | last post by:
I have a few questions: 1. Should I learn C first or VB? 2. Should I get a book or learn from websites? 3. What book or which website is best? 4. Or should I take a course?
182
7491
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
89
3808
by: Homer J Simpson | last post by:
I am coming to the conclusion that Microsoft doesn't want you to use VB ..Net, based on my experiences. I've downloaded the Express version and signed up for various support options etc. At every turn I have found the whole experience frustrating, involving endless non functioning software, broken links, incomprehensible and irrelevant information, examples that don't work, help files that don't help and a complete lack of any sort of...
6
2306
by: damod.php | last post by:
hai , friends, am new one to this group, I want to know About frame works in php Which one is best i want learn any one frame work can you help me Am workin in PHP MY SQL i want to learn it. which one is esy and best and peek pls help me thanks
2
1373
by: harpreetsingh911 | last post by:
i am student of MCA. i want to know what things are needed to be a efficient programmer in c and c++.
1
2042
Xx r3negade
by: Xx r3negade | last post by:
Just to do something different, I want to learn a functional language such as scheme, common lisp, haskell, or F#. Popularity, usefulness, or easy of use are not important. Which one do you recommend I learn? I don't necessarily want the "best" language, I just want one that will teach me a lot of new concepts that aren't covered by imperative languages.
0
8278
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.