473,378 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

If onlyMS had a C++ getting started site

So now that I graduated to object oriented programming C#, and I'd like to
try C++ but I can't find anything that gets me an understanding of some
aspects of the language/compiler.

Like what is the meaning of the single underscores? How did the include
files cdef and others get their name? So confusing.

Also what is the meaning of a "template"? Is that something with < and >?
Generics in C# are not too hard to grasp, so I figure templates are next on
my things to learn but I can't find a site that can explain this to me.

Any help would be appreciated.
Jan 23 '06 #1
3 956
try www.codeproject.com
it has lots of good articles on all kinds of technology, including C++.

templates are what the name literally says. you implement a class that is of
template type T.
you then code your class using types of T internally and in the parameter
lists as if they were real types.
during compilation the compiler then creates an instance of your class,
replacing T with the type you specified. it is only then that the compiler
can know if what you supplied for type will compile or not.

if you are new to C++ i give your the advice to buy scott meyers his books:
'effective C++' and 'more effective C++'.
stroustrub s book 'the C++ programming language' is also good, but can be
dense to read through.

kind regards,
Bruno.
"Scottie_do" <Sc*******@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
So now that I graduated to object oriented programming C#, and I'd like to
try C++ but I can't find anything that gets me an understanding of some
aspects of the language/compiler.

Like what is the meaning of the single underscores? How did the include
files cdef and others get their name? So confusing.

Also what is the meaning of a "template"? Is that something with < and >?
Generics in C# are not too hard to grasp, so I figure templates are next
on
my things to learn but I can't find a site that can explain this to me.

Any help would be appreciated.

Jan 23 '06 #2
just remembered:
single underscores indicate microsoft specific extensions to the standard.
there are lots of them in the string handling runtime functions.

double underscores followed by a capital letter are reserved for internal
usage. if you look inside the sdt headers, they use this naming comvention.

kind regards,
Bruno.

"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:OQ*************@TK2MSFTNGP14.phx.gbl...
try www.codeproject.com
it has lots of good articles on all kinds of technology, including C++.

templates are what the name literally says. you implement a class that is
of template type T.
you then code your class using types of T internally and in the parameter
lists as if they were real types.
during compilation the compiler then creates an instance of your class,
replacing T with the type you specified. it is only then that the compiler
can know if what you supplied for type will compile or not.

if you are new to C++ i give your the advice to buy scott meyers his
books: 'effective C++' and 'more effective C++'.
stroustrub s book 'the C++ programming language' is also good, but can be
dense to read through.

kind regards,
Bruno.
"Scottie_do" <Sc*******@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
So now that I graduated to object oriented programming C#, and I'd like
to
try C++ but I can't find anything that gets me an understanding of some
aspects of the language/compiler.

Like what is the meaning of the single underscores? How did the include
files cdef and others get their name? So confusing.

Also what is the meaning of a "template"? Is that something with < and >?
Generics in C# are not too hard to grasp, so I figure templates are next
on
my things to learn but I can't find a site that can explain this to me.

Any help would be appreciated.


Jan 23 '06 #3
Scottie_do wrote:
So now that I graduated to object oriented programming C#, and I'd like to
try C++ but I can't find anything that gets me an understanding of some
aspects of the language/compiler.

Like what is the meaning of the single underscores? How did the include
files cdef and others get their name? So confusing.

Also what is the meaning of a "template"? Is that something with < and >?
Generics in C# are not too hard to grasp, so I figure templates are next on
my things to learn but I can't find a site that can explain this to me.

Any help would be appreciated.


I was in the same position as you were a few months ago. I understood
C# well but knew nothing of C++ and wanted to learn. I bought
Stroustrup's book "The C++ Programming Language" and that answered all
my questions like "What's a template?" (yours) and lots of others. It's
the only computer book I've ever bought and it was worth it.

Scott
Jan 24 '06 #4

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

Similar topics

0
by: Jim | last post by:
I need some help getting started with a .NET web project for a commercial site. I am new to .NET and my understanding of some (but not all) of its concepts is a little sparse. I apologize for the...
0
by: Jim | last post by:
This si a repost, I apologize but perhaps my original inquiry got buried under all the usenet spam... I need some help getting started with a .NET web project for a commercial site. I am new to...
4
by: Stephanie_Stowe | last post by:
I am an experienced ASp (classic) and VB developer. My organization will be moving to DOTNET. I need to get started figuring out the framework, C# and ASP.NET. (Yeah, yeah I am a little late.) The...
6
by: Binoy | last post by:
Hello, I am getting this error once in a while from my web sites. When I will refresh web browser, it goes off and sites are working fine. Directory structures and file names are as below- ...
2
by: Frank Schumacher | last post by:
Hi Folks, I have a problem with the order of events fired by ASP.NET. I found many articles which explaining the lifecycle of a site, but I found none which took the event from a Control on the...
5
by: Greg Smith | last post by:
I have been using the following to get the client IP address: Request.ServerVariables All of a sudden it has started returning 127.0.0.1 all the time. Does anybody have any idea why this...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: Kevin Audleman | last post by:
Yesterday my site unexpectedly stopped loading. I tracked it down to the CSS file for the site. When I commented it out, the site was okay. When I put it back in, it was not. I tried connecting to...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm about to finally make the jump and start a new site using AJAX. THe question i have for all of you AJAX developers out there is which one? 1. The Standard AJAX frame work 2. The Tool kit....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.