Hi everyone,
in this thing I inherited there's a statement like this:
a &= ~b;
where a is an int and b has been declared this way:
const b = 0x0002;
and thus is probably an int as well.
My question: What's the tilde doing there? Is that standard C++? What
does it mean?
Cheers &= thanks
Benjamin
Apr 4 '06
12 18004
"Thomas Tutone" <Th***********@ yahoo.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . Howard wrote: >> (You really should get yourself a good C++ book, by >> the way.) > > Uhm possible ... though I'll rather concentrate on the standard library > and the likes if I have the choice ... >
You lost me there. What do you mean by the "standard library"? The "standard template library" [STL]? The STL is a set of templates, written in C++. If you're referring to the C++ run-time library, then you're talking about a given compiler vendor's implementation of the C++ language features (such as I/O, basic math functions, etc.). Perhaps you're talking about some on-line Help system in your compiler's IDE?
Have you really not heard of the C++ standard library? If not, perhaps you need to follow your own good advice and get yourself a good book as well. I highly recommend Josuttis' The C++ Standard Library. Or perhaps I misunderstood you (I seem to do that at times).
I see your point. My book (The C++ Programming Language", Stroustrup),
refers to the "standard library", but it's kind of talking about everything
in the C++ language, including the STL. (In fact, in answering his own
question: "what should be in the standard library?", he answers:
"everything !".) So really, saying the "standard library" doesn't mean all
that much, does it? Mostly people talk about the STL, otherwise they're
really just talking about the language as a whole, right?
And anyway, my point was really: what about using the "standard library"
negates needing a book to study it? The OP was saying he'd "rather
concentrate on the standard library..." when I suggested getting a C++ book,
as if one precluded the other. That statement is really what made no sense
to me.
-Howard
Howard wrote: You lost me there. What do you mean by the "standard library"? The "standard template library" [STL]? The STL is a set of templates, written in C++. If you're referring to the C++ run-time library, then you're talking about a given compiler vendor's implementation of the C++ language features (such as I/O, basic math functions, etc.). Perhaps you're talking about some on-line Help system in your compiler's IDE? Have you really not heard of the C++ standard library? If not, perhaps you need to follow your own good advice and get yourself a good book as well. I highly recommend Josuttis' The C++ Standard Library. Or perhaps I misunderstood you (I seem to do that at times).
I see your point. My book (The C++ Programming Language", Stroustrup), refers to the "standard library", but it's kind of talking about everything in the C++ language, including the STL.
Maybe by "STL" you do mean the standard library, because the C++ standard
library is AFAIK based on the STL to a great degree.
(In fact, in answering his own question: "what should be in the standard library?", he answers: "everything !".) So really, saying the "standard library" doesn't mean all that much, does it?
Well, what should be and what is in the standard library are two different
things.
Mostly people talk about the STL, otherwise they're really just talking about the language as a whole, right?
If people here talk about "the standard library", they usually mean the
library that is part of standard C++, i.e. defined in the C++ standard.
And anyway, my point was really: what about using the "standard library" negates needing a book to study it? The OP was saying he'd "rather concentrate on the standard library..." when I suggested getting a C++ book, as if one precluded the other. That statement is really what made no sense to me.
Right. It doesn't make much sense to get all the details about the C++
standard library without even knowing the basics about the C++ syntax.
Benjamin B. wrote: Howard wrote: (You really should get yourself a good C++ book, by the way.)
Uhm possible ... though I'll rather concentrate on the standard library and the likes if I have the choice ...
You still need to learn the *language*.
--
Mike Smith This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CHristian Niss |
last post by:
hi there,
in a lot of user controls we are using "~" in server tags to reference objects
like images <img src="~/images/something.gif" runat="server" />.
with framework 1.0 the tilde got replaced by "/virtualdir" for example. now in
framework 1.1 tilde is replaced with relative paths like "../../"
this makes a lot of trouble, especially when you dynamically load user controls
to an aspx-page. it seems that this relative "../.."-path...
|
by: MB2 |
last post by:
I have code in a User Control for an image button like this:
<asp:ImageButton id="__0" runat="server" text="Delete"
ImageUrl="~/Images/ImageLibrary/icon_delete.gif" />
This used to work and it would display the image properly.
However, since installing the latest service pack for the .NET
Framework 1.1, the tilde seems to be expanding improperly. The code
that is expanded to shows this:
<input type="image"...
|
by: Shawn |
last post by:
Hi,
For a few years, I have been developing each of my clients websites using a
seperate web site (unique IP) to solve problems with relative URL's between
my local dev station and the production server.
Recently, I have needed to collaborate with other developers using Source
Safe. But, in order to get source safe working properly, you really need to
be working in virtual directories of the default web site.
|
by: Jared Tullis |
last post by:
We have an .NET 1.1 application running on 4 2K3 load balanced servers
(using WLBS). IIS has the .NET aspnet_isapi.dll mapped as a wildcard
application map. The web.config points *.html to a HttpHandler of our
design. This setup serves over a million page views daily with almost no
hassle whatsoever. We have brought a few affiliates onto our system who
have URLs still floating in Google, Y! and other search engines from before
they...
|
by: Karo |
last post by:
I have troubles with tilde (~) character on my host. It gets replaced by
server name instead of domain name from where redirect is coming from. Code
HttpContext.Current.Response.Redirect("~/Install/Install.aspx?mode=Install")
redirects to host domain.
Does anyone know where the problem could be? .NET framework, IIS or
somewhere else?
| |
by: Mythran |
last post by:
In other web servers, more specifically apache and even non-web servers you
can use the tilde character to specify the root directory, or home. Before
I go reinventing the wheel (by parsing a tilde in the web controls for iis)
is there a setting that allows similar functionality in IIS?
Thanks,
Mythran
|
by: ibiza |
last post by:
Hi all,
I have a problem which I don't understand with the "~" mark in a
NavigateUrl property of an asp:HyperLink. I have this in a master page,
to build the standard menu (rMenuItems is a Repeater):
Protected Sub rMenuItems_ItemDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.RepeaterItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
|
by: jbolty |
last post by:
There have been a few threads talking about using the tilde ~, to
reference the webroot path. My problem though is handling an unexpected
tilde in a url.
this url:
http://localhost/mysite/~Default.aspx
returns this error:
|
by: John Nagle |
last post by:
I have XML replies in a DOM which contain entity escapes,
like "&". What's the proper way to replace them with
the ordinary characters? Preferably something that will work in
most browsers?
I know about ".innerText", but that's not portable; some
browsers convert escapes when reading from innerText and some
don't.
John Nagle
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |