String Loop

Integrating Your 4 Freedoms (Part 2 of 9) - String Theory
String Theory
The theory of strings, sometimes referred to as the theory of everything,i is considered by many physicists to be the most promising explanation to date for the nature of ultimate reality. It suggests the possibility that there is a connection, as well as a separation, between the realms of the material and consciousness. Both conditions can exist at the same time.
According to physicist David Gross:
There is about as complete unification as one could desire. Within this theory one is not saying that there are a few kinds of objects, and that everything else is built out of them. In some sense, we are saying that in string theory there is one object.... In the same way that if you take a violin string, and you pluck it, it has many kinds of vibrations. So, one violin string can give rise to many sounds. All of the tones of a vibrating string are different modes of one object.... That is true unification of everything, in that all the particles in the theory, and all the interactions, the particles that govern interactions, are all vibrations of the same string.
In other words, a string is not a building block, as we have previously imagined particles to be. Apparently the universe is not made by adding a bunch of strings together in different combinations to create all the different things we observe, such as giraffes and people, buildings and stars. In Gross's view, there is only one string.
If physical reality is not ultimately made out of matter, but rather vibrates out of something called a string, then it is possible that material reality and consciousness, rather than being dualistically separate, are instead intimately connected, affecting each other in mutual feedback loops. They not only have points at which they interact but are a single undivided system.
Excerpted from our new book Sensual Love Secrets for Couples: The Four Freedoms of Body, Mind, Heart and Soul, by Al Link and Pala Copeland, Llewellyn, 2007
About the Author
Al Link and Pala Copeland own and operate 4 Freedoms Relationship Tantra. They regularly host lover's romantic weekends near Ottawa Canada, and weeklong retreats in exotic locations. For more info Visit www.tantra-sex.com, www.sexyspiritualrelationships.com and their blog www.askaboutloveandsex.com or send email: 4freedoms@tantraloving.com
C++ a loop with string.erase !?
I want to get rid of all numbers in my sentence. This only gets rid of hte first number. What am I doing wrong in the loop?
#include
#include
#include
using namespace std;
int main()
{
string myString="I have 24 bananas.";
size_t len = myString.length();
size_t i=0;
while (i
if ( isdigit(myString[i]) )
(myString.erase(i,1));
++i;
}
cout << myString<< endl;
return 0;
}
The other answers are generally on mark but the bottom line is that this is not the best erase() method to use in that kind of loop.
myString.erase(i, 1) actually returns a new string reference. You are ignoring the return value but the underlying string has still changed. You have to be careful with stl containers (which include std::string) that the container and its iterators aren't invalidated with operations that mutate the state.
I think the single iterator form of string::erase() is a better choice for what you are doing. Something like:
string::iterator it = myString.begin();
while (it != myString.end())
{
if (isdigit(*it))
it = myString.erase(it);
else
it++;
}
Upton Bass Gut String "Loop Making" Demonstration
![]() |
![]() Paradox String Loop Flame 10' D loop US $4.00
|
![]() Paradox String Loop White 10' D loop US $4.00
|
![]() BCY d loop string drop away cord material you choose color and length US $5.50
|
![]() Osborn's Firecracker String loop " NEON GREEN" US $.99
|
![]() Osborn's Firecracker String loop " HOT PINK" US $.99
|
![]() Chief AJ Black Super Powerband with Arrow Nock String and Bow Release Loop US $11.95
|
![]() 2 ft Camo BCY d loop, release string drop away US $2.20
|
![]() 5 ft black BCY d loop, release string, drop away cord US $4.00
|
![]() 5 ft PINK BCY d loop, release string, drop away cord US $4.00
|
![]() 10 ft CAMO BCY d loop, release string, drop away cord US $4.99
|
![]() 5 ft RED BCY d loop, release string, drop away cord US $4.25
|
![]() 2 ft FLO GREEN BCY d loop, release string drop away US $2.40
|
![]() 5 ft Flo Orange BCY d loop, release string drop away US $4.25
|
![]() 3ft Purple BCY d loop, release string drop away US $3.00
|
![]() 5 ft CAMO BCY d loop, release string, drop away cord US $4.25
|
![]() 59.5 inch long 12 strand double loop bow string In exellent condition US $8.00
|
![]() 5' CIR CUT Archery D RELEASE BOW STRING LOOP ROPE RED US $5.95
|
| Powered by phpBay Pro |


US $4.00































