http://groups.google.com/group/comp.lang.c++?hl=en
comp.lang.c++@googlegroups.com
Today's topics:
* ♬♪♫ ♪Cheap price wholesale Puma Shoes and LV Shoes with high quality at
website: www.fjrjtrade.com (paypal payment) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/2d72ade91daaaede?hl=en
* operator<< with template class doesn't work - 8 messages, 4 authors
http://groups.google.com/group/comp.lang.c++/t/afc6312ea682b43b?hl=en
* Wholesale Brand Hat: football club hat adidas puma NBA nike new era A&F usa
gucci hat bape ED hardy Hat <www.guoshitrade.com> - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/f175b24f275f7353?hl=en
* ▶▶▶▶▶High quality and cheap price discount brand shoes at website: www.
fjrjtrade.com (paypal payment) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/4ef766a7b12e36b2?hl=en
* Weird warning about data type range - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/c0fda54bd4ba1f60?hl=en
* ✪✪✪China factory wholesale NFL,mlb,nhl,nbaJerseys Free Shipping Paypal
payment - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5224e3982b57b809?hl=en
* 。◕ω◕。Wholesame D&G Shoes Cheap D&G Men Shoes www.guomeitrade.com - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/8a6418ca8e83b558?hl=en
* ╰☆╮China factory wholesale NFL,mlb,nhl,nbaJerseys Free Shipping Paypal
payment╰☆╮ - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/688ed9b536c1b289?hl=en
* canceling noncopyable feature - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5add783081f15e0e?hl=en
* Discount Wholesale GUCCI Watch Paypal Payment Free Shipping <www.guomeitrade.
com> - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/7c71760567283ca9?hl=en
* OT: "Search This Group" not working here - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/62aa2491f31521e5?hl=en
* g++ 3.4.5 doesn't zero-initialize - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/9c689fc29201ceec?hl=en
* ╃♡╃♡╃Wholesale 100% Naturel Latex Standard Pillow,Massager Pillow,Latex Baby
Pillow,Latex Car Pillow, Latex Ergonomic Pillow,Latex Cushion,Latex Mattresses
The best china Latex products supplier - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/39d6567c6a5795bb?hl=en
* ☆♥☆100% Naturel Latex Standard Pillow,Massager Pillow,Latex Baby Pillow,
Latex Car Pillow, Latex Ergonomic Pillow,Latex Cushion,Latex Mattresses - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/70c36d7fe0e71335?hl=en
==============================================================================
TOPIC: ♬♪♫ ♪Cheap price wholesale Puma Shoes and LV Shoes with high quality at
website: www.fjrjtrade.com (paypal payment)
http://groups.google.com/group/comp.lang.c++/t/2d72ade91daaaede?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 9:59 am
From: candy
♬♪♫ ♪Cheap price wholesale Puma Shoes and LV Shoes with high quality
at website: www.fjrjtrade.com (paypal payment)
Welcome to visit www.fjrjtrade.com
Men size 40,41,42,43,44,45,46. Women size 36,37,38,39,40.
High quality wholesale Air Force One shoes, Nike Jordan, Nike,Air Max,
Nike Shox, UGG Shoes, Puma Shoes, Nike shoes, Adidas Shoes, Christian
Louboutin, Chanel Shoes, Coach Shoes, D&G Shoes, Dior Shoes, ED Hardy
Shoes, Evisu Shoes, Fendi Shoes, AFF shoes, Bape shoes, Gucci Shoes,
Hogan shoes, Bikkembergs Shoes, Dsquared Shoes, LV Shoes, Timberland
Shoes, Boss shoes, Versace Shoes, Prada Shoes, Lacoste Shoes, Mauri
Shoes, DC shoes ect. More other shoes at website www.fjrjtrade.com
Cheap wholesale Puma Shoes
http://www.fjrjtrade.com/category-923-b0-Puma-Shoes.html
Cheap wholesale Puma M&W Shoes
http://www.fjrjtrade.com/category-1836-b0-Puma-Shoes-MW.html
Cheap wholesale Puma Men Shoes
http://www.fjrjtrade.com/category-1837-b0-Puma-Shoes-Man.html
Cheap wholesale Puma AAA Shoes
http://www.fjrjtrade.com/category-1129-b0-PUMA-AAA.html
Cheap wholesale Puma Women Shoes
http://www.fjrjtrade.com/category-1131-b0-Puma-Woman-Shoes.html
Men size 40,41,42,43,44,45,46. Women size 36,37,38,39,40.
Cheap wholesale LV Shoes
http://www.fjrjtrade.com/category-940-b0-LV-Shoes.html
Cheap wholesale LV Boots
http://www.fjrjtrade.com/category-1877-b0-LV-Boots.html
Cheap wholesale LV Men High Shoes
http://www.fjrjtrade.com/category-1878-b0-LV-Shoes-Man-High.html
Cheap wholesale LV Men Shoes
http://www.fjrjtrade.com/category-1619-b0-LV-Shoes-Man.html
Cheap wholesale LV Women Shoes
http://www.fjrjtrade.com/category-1617-b0-LV-Shoes-Woman.html
Cheap wholesale LV Kids' Shoes
http://www.fjrjtrade.com/category-1618-b0-LV-Shoes-Kids.html
Cheap wholesale Puma Shoes
http://www.fjrjtrade.com/category-923-b0-Puma-Shoes.html
Cheap wholesale Puma M&W Shoes
http://www.fjrjtrade.com/category-1836-b0-Puma-Shoes-MW.html
Cheap wholesale Puma Men Shoes
http://www.fjrjtrade.com/category-1837-b0-Puma-Shoes-Man.html
Cheap wholesale Puma AAA Shoes
http://www.fjrjtrade.com/category-1129-b0-PUMA-AAA.html
Cheap wholesale Puma Women Shoes
http://www.fjrjtrade.com/category-1131-b0-Puma-Woman-Shoes.html
Men size 40,41,42,43,44,45,46. Women size 36,37,38,39,40.
Cheap wholesale LV Shoes
http://www.fjrjtrade.com/category-940-b0-LV-Shoes.html
Cheap wholesale LV Boots
http://www.fjrjtrade.com/category-1877-b0-LV-Boots.html
Cheap wholesale LV Men High Shoes
http://www.fjrjtrade.com/category-1878-b0-LV-Shoes-Man-High.html
Cheap wholesale LV Men Shoes
http://www.fjrjtrade.com/category-1619-b0-LV-Shoes-Man.html
Cheap wholesale LV Women Shoes
http://www.fjrjtrade.com/category-1617-b0-LV-Shoes-Woman.html
Cheap wholesale LV Kids' Shoes
http://www.fjrjtrade.com/category-1618-b0-LV-Shoes-Kids.html
More Others Shoes At WEBSITE:
http://www.fjrjtrade.com
==============================================================================
TOPIC: operator<< with template class doesn't work
http://groups.google.com/group/comp.lang.c++/t/afc6312ea682b43b?hl=en
==============================================================================
== 1 of 8 ==
Date: Sun, Aug 30 2009 10:12 am
From: Wolfnoliir
Hi,
I am trying to output a template class to 'cout' but my code doesn't
compile; here is gcc's error message:
/tmp/ccnNaceV.o: In function `main':
main.cpp:(.text+0x6d): undefined reference to
`std::basic_ostream<char, std::char_traits<char> >& operator<<
<char>(std::basic_ostream<char, std::char_traits<char> >&,
Sudoku<char>&)'
collect2: ld returned 1 exit status
and here is the code:
157 template<class T>
158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
159 {
160 for (char i=0; i < s.size; i++)
161 {
162 for (char j=0; j < s.size; j++)
163 {
164 if ( s.is_true(i, j) && HAS_BOLD )
165 {
166 os << "\033[1m" << s.get(i,j) << "\033[0m\t";
167 }
168 else
169 os << s.matrix->at(i,j) << "\t";
170 }
171 os << "\n";
172 }
173 return os;
174 }
175
176 int main()
177 {
178 Sudoku<char> s;
179 //cout << s;
180 operator<<(cout, s);
181 return 0;
182 }
I have declared
friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
in the template class Sudoku.
Thanks.
== 2 of 8 ==
Date: Sun, Aug 30 2009 10:37 am
From: Victor Bazarov
Wolfnoliir wrote:
> [..] and here is the code:
>
> 157 template<class T>
> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
>
> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
Read the two declarations carefully and see if you can notice any
difference[s].
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
== 3 of 8 ==
Date: Sun, Aug 30 2009 10:39 am
From: Francesco
On 30 Ago, 19:12, Wolfnoliir <wolfnol...@gmail.com> wrote:
> Hi,
>
> I am trying to output a template class to 'cout' but my code doesn't
> compile; here is gcc's error message:
>
> /tmp/ccnNaceV.o: In function `main':
> main.cpp:(.text+0x6d): undefined reference to
> `std::basic_ostream<char, std::char_traits<char> >& operator<<
> <char>(std::basic_ostream<char, std::char_traits<char> >&,
> Sudoku<char>&)'
> collect2: ld returned 1 exit status
>
> and here is the code:
>
> 157 template<class T>
> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
> 159 {
> 160 for (char i=0; i < s.size; i++)
> 161 {
> 162 for (char j=0; j < s.size; j++)
> 163 {
> 164 if ( s.is_true(i, j) && HAS_BOLD )
> 165 {
> 166 os << "\033[1m" << s.get(i,j) << "\033[0m\t";
> 167 }
> 168 else
> 169 os << s.matrix->at(i,j) << "\t";
> 170 }
> 171 os << "\n";
> 172 }
> 173 return os;
> 174 }
> 175
> 176 int main()
> 177 {
> 178 Sudoku<char> s;
> 179 //cout << s;
> 180 operator<<(cout, s);
> 181 return 0;
> 182 }
>
> I have declared
> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
> in the template class Sudoku.
>
> Thanks.
Well, to be precise, it compiles. Your problem is that it doesn't
link. Please post sufficient, self contained code that reproduces the
same problem, so that people can copy, paste and test it to help you,
with reference to http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.8
Cheers,
Francesco
== 4 of 8 ==
Date: Sun, Aug 30 2009 10:58 am
From: Wolfnoliir
Victor Bazarov wrote:
> Wolfnoliir wrote:
>> [..] and here is the code:
>>
>> 157 template<class T>
>> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
>>
>> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
>
> Read the two declarations carefully and see if you can notice any
> difference[s].
>
> V
If you are talking about the T2 instead of T; I had to make that
change because to was already declared as the template class of
the Sudoku class so I had to change it.
I am quite shure this is not the origin of the problem.
but thanks.
== 5 of 8 ==
Date: Sun, Aug 30 2009 11:02 am
From: Wolfnoliir
Francesco wrote:
> Well, to be precise, it compiles. Your problem is that it doesn't
> link. Please post sufficient, self contained code that reproduces the
> same problem, so that people can copy, paste and test it to help you,
> with reference to http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.8
>
> Cheers,
> Francesco
compiled with
g++ main.cpp -o main -W -Wall
Here is the entire code:
#include <iostream>
#include <assert.h>
#include <math.h>
#define HAS_BOLD 1
using namespace std;
template<class T> class SimpleMatrix
{
public:
SimpleMatrix(int x, int y) : sizex(x), sizey(y)
{
matrix = new T[x*y];
}
T& at(int x, int y)
{
assert( x < sizex );
assert( y < sizey );
return &matrix[x*sizey + sizex];
}
void set(int x, int y, T s)
{
assert( x < sizex );
assert( y < sizey );
this.at(x, y) = s;
}
void set_all(T s)
{
int size = sizex*sizey;
for (int i=0; i<size; i++)
{
matrix[i] = s;
}
}
private:
T *matrix;
int sizex;
int sizey;
};
template<class T> class Sudoku
{
template<class T2>
friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
public:
Sudoku() : size(9)
{
matrix = new SimpleMatrix<T>(9,9);
truthMatrix = new SimpleMatrix<char>(9,9);
sqrtSize = (T)sqrt(size);
assert( (double)sqrtSize == sqrt(size) );
//T must be a signed type:
assert( (T)(-1) == (int)(-1) );
matrix->set_all(-1);
truthMatrix->set_all(0);
}
T get(T x, T y)
{
return *matrix->at(x,y);
}
char is_true(T x, T y)
{
return *truthMatrix->at(x,y);
}
char set(T x, T y, T s)
{
assert( x < size );
assert( y < size );
if ( !(is_true(x, y)) )
matrix->set(x, y, s);
else
return -1;
return 0;
}
void set_as_true(T x, T y, T s)
{
matrix->set(x, y, s);
truthMatrix->set(x, y, 1);
}
T get_section(T x)
//sections go from 1 to $size
{
return (T)ceil( (double)x / (double)sqrtSize );
}
T* test_coherence(T x, T y)
{
//check lines and columns:
for (T i=0; i < size; i++)
{
if ( matrix->at(i,y) == matrix->at(x,y) && &matrix->at(i,y) !=
&matrix->at(x,y) )
{
return &matrix->at(i,y);
}
else if ( matrix->at(x,i) == matrix->at(x,y) && &matrix->at(x,i) !=
&matrix->at(x,y) )
{
return &matrix->at(x,i);
}
}
//check submatrix:
T sx = get_section(x);
T sy = get_section(y);
T minx = (sx-1)*sqrtSize;
T miny = (sy-1)*sqrtSize;
T maxx = sx*sqrtSize;
T maxy = sy*sqrtSize;
for (T i=minx; i < maxx; i++)
{
for (T j=miny; j < maxy; j++)
{
if (matrix->at(i,j) == matrix->at(x,y) && &matrix->at(x,y) !=
&matrix->at(i,j))
{
return &matrix->at(i,j);
}
}
}
return (T)(-1);
}
private:
SimpleMatrix<T> *matrix;
SimpleMatrix<char> *truthMatrix;
T size;
T sqrtSize;
void set_matrix(T* matrix, T c)
{
for (T i=0; i < size; i++)
{
for (T j=0; j<size; j++)
{
matrix->at(i,j) = c;
}
}
}
};
/*
istream& operator>>(istream& is, Sudoku<T>& s)
{
return NULL;
}
*/
template<class T>
ostream& operator<<(ostream& os, const Sudoku<T>& s)
{
for (char i=0; i < s.size; i++)
{
for (char j=0; j < s.size; j++)
{
if ( s.is_true(i, j) && HAS_BOLD )
{
os << "\033[1m" << s.get(i,j) << "\033[0m\t";
}
else
os << s.matrix->at(i,j) << "\t";
}
os << "\n";
}
return os;
}
int main()
{
Sudoku<char> s;
//cout << s;
operator<<(cout, s);
return 0;
}
== 6 of 8 ==
Date: Sun, Aug 30 2009 11:32 am
From: Jerry Coffin
In article <4a9abdb8$0$31038$426a74cc@news.free.fr>,
wolfnoliir@gmail.com says...
>
> Victor Bazarov wrote:
> > Wolfnoliir wrote:
> >> [..] and here is the code:
> >>
> >> 157 template<class T>
> >> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
> >>
> >> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
> >
> > Read the two declarations carefully and see if you can notice any
> > difference[s].
> >
> > V
>
> If you are talking about the T2 instead of T; I had to make that
> change because to was already declared as the template class of
> the Sudoku class so I had to change it.
> I am quite shure this is not the origin of the problem.
Look at it again, and see if you don't see another difference -- a
word (a keyword) that's present in one, but not the other...
--
Later,
Jerry.
== 7 of 8 ==
Date: Sun, Aug 30 2009 11:51 am
From: Wolfnoliir
Jerry Coffin wrote:
> In article <4a9abdb8$0$31038$426a74cc@news.free.fr>,
> wolfnoliir@gmail.com says...
>> Victor Bazarov wrote:
>>> Wolfnoliir wrote:
>>>> [..] and here is the code:
>>>>
>>>> 157 template<class T>
>>>> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
>>>>
>>>> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
>>> Read the two declarations carefully and see if you can notice any
>>> difference[s].
>>>
>>> V
>> If you are talking about the T2 instead of T; I had to make that
>> change because to was already declared as the template class of
>> the Sudoku class so I had to change it.
>> I am quite shure this is not the origin of the problem.
>
> Look at it again, and see if you don't see another difference -- a
> word (a keyword) that's present in one, but not the other...
>
I indeed forgot the 'const'. That was a pretty stupid mistake.
I think I can now solve my problem by adding a few other 'const's
that I forgot.
Thank you.
== 8 of 8 ==
Date: Sun, Aug 30 2009 12:00 pm
From: Francesco
On 30 Ago, 20:51, Wolfnoliir <wolfnol...@gmail.com> wrote:
> Jerry Coffin wrote:
> > In article <4a9abdb8$0$31038$426a7...@news.free.fr>,
> > wolfnol...@gmail.com says...
> >> Victor Bazarov wrote:
> >>> Wolfnoliir wrote:
> >>>> [..] and here is the code:
>
> >>>> 157 template<class T>
> >>>> 158 ostream& operator<<(ostream& os, const Sudoku<T>& s)
>
> >>>> friend ostream& operator<<(ostream& os, Sudoku<T2>& s);
> >>> Read the two declarations carefully and see if you can notice any
> >>> difference[s].
>
> >>> V
> >> If you are talking about the T2 instead of T; I had to make that
> >> change because to was already declared as the template class of
> >> the Sudoku class so I had to change it.
> >> I am quite shure this is not the origin of the problem.
>
> > Look at it again, and see if you don't see another difference -- a
> > word (a keyword) that's present in one, but not the other...
>
> I indeed forgot the 'const'. That was a pretty stupid mistake.
> I think I can now solve my problem by adding a few other 'const's
> that I forgot.
>
> Thank you.
Fine, now that you have solved that issue, please note that there are
several other points you can fix/improve:
- the C-style casts
- the use of #define
- the possible memory leak due to your use of operator new
- the test for signed types (use the functions found in <limits>
instead)
Refer to the FAQ I linked and you'll find solutions to most of your
issues, along with their rationales.
Keep improving your code,
cheers,
Francesco
==============================================================================
TOPIC: Wholesale Brand Hat: football club hat adidas puma NBA nike new era A&F
usa gucci hat bape ED hardy Hat <www.guoshitrade.com>
http://groups.google.com/group/comp.lang.c++/t/f175b24f275f7353?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 11:06 am
From: wendy
Discount wholesale Aff CAP
Discount wholesale Bape Baseball CAP ( www.guoshitrade.com ) (paypal
payment)
Discount wholesale C CAP
Discount wholesale CA CAP
Discount wholesale Cincinnati Reds CAP
Discount wholesale Colorado Rockies CAP ( www.guoshitrade.com )
(paypal payment)
Discount wholesale Coogi CAP
Discount wholesale DC Baseball CAP
Discount wholesale Detroit Tigers CAP
Discount wholesale ED CAP ( www.guoshitrade.com ) (paypal payment)
Discount wholesale ED Winter hat
Discount wholesale Gucci CAP
Discount wholesale Gucci Winter hat ( www.guoshitrade.com ) (paypal
payment)
Discount wholesale Houston Astros CAP
Discount wholesale Jordan CAP
Discount wholesale Kansas City Royals CAP
Discount wholesale DSQ CAP
Discount wholesale LA CAP ( www.guoshitrade.com ) (paypal payment)
Discount wholesale LV CAP
Discount wholesale Minnesota Twins CAP
Discount wholesale POLO CAP
Discount wholesale NBA CAP ( www.guoshitrade.com ) (paypal payment)
Discount wholesale NEWERA CAP
Discount wholesale New era1 CAP
Discount wholesale New era2 CAP ( www.guoshitrade.com ) (paypal
payment)
Discount wholesale New Era Winter hat
Discount wholesale Oakland Athletics CAP
Discount wholesale P CAP
Discount wholesale Philadelphia Phillies CAP ( www.guoshitrade.com )
(paypal payment)
Discount wholesale Red Bull CAP
Discount wholesale San Diego Padres CAP
Discount wholesale Sf Baseball CAP
Discount wholesale Smet CAP ( www.guoshitrade.com ) (paypal
payment)
Discount wholesale Sox CAP
Discount wholesale St. Louis Cardinals CAP
Discount wholesale Texas Rangers CAP
Discount wholesale Washington Nationals CAP ( www.guoshitrade.com )
(paypal payment)
==============================================================================
TOPIC: ▶▶▶▶▶High quality and cheap price discount brand shoes at website: www.
fjrjtrade.com (paypal payment)
http://groups.google.com/group/comp.lang.c++/t/4ef766a7b12e36b2?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 11:07 am
From: candy
▶▶▶▶▶High quality and cheap price discount brand shoes at website:
www.fjrjtrade.com (paypal payment)
wholesale discounts authentic shoes
nike sneakers
AF1 shoes
adidas 35th shoes
nike shoes,jordan shoes
Air Force 1 shoes
(http://www.fjrjtrade.com/category-916-b0-Air-Force-one.html)
kids shoes
nike air max TN shoes
(http://www.fjrjtrade.com/category-920-b0-Nike-Air-Max.html)
nike MAX LTD shoes
nike air MAX 180 sports shoes
nike air max 360 basketball shoes
nike air max 2003 running shoes
nike air max 97 sport shoes
nike air max 95 basketball shoes
nike air max 90 running shoes
nike air max 87 fashion shoes
(http://www.fjrjtrade.com/category-921-b0-Nike-Shox.html)
nike Shox TL1 men shoes
nike shox TL3 sports shoes
nike shox NZ running shoes
nike shox OZ basketball shoes
nike shox R3 sport shoes
nike shox R4 fashion shoes
nike shox R5 running shoes
puma shoes
(http://www.fjrjtrade.com/category-923-b0-Puma-Shoes.html)
bape shoes
(http://www.fjrjtrade.com/category-1852-b0-Bape-shoes.html )
Gucci shoes
(http://www.fjrjtrade.com/category-935-b0-GUCCI-Shoes.html)
Lacoste shoes
(http://www.fjrjtrade.com/category-937-b0-Lacoste-Shoes.html )
LV shoes
(http://www.fjrjtrade.com/category-940-b0-LV-Shoes.html)
Timberland shoes
(http://www.fjrjtrade.com/category-948-b0-Timberland-Shoes.html )
Evisu shoes
(http://www.fjrjtrade.com/category-933-b0-Evisu-Shoes.html)
D&G shoes
(http://www.fjrjtrade.com/category-929-b0-DG-Shoes.html )
nike running
prada shoes
(http://www.fjrjtrade.com/category-945-b0-Prada-Shoes.html )
DSQ shoes
(http://www.fjrjtrade.com/category-931-b0-DSQUARED-Shoes.html)
nike football shoes
nike DUNK shoes
Rift shoes
(http://www.fjrjtrade.com/category-914-b0-Adidas-Shoes.html)
NBA basketball shoes
(http://www.fjrjtrade.com/category-914-b0-Adidas-Shoes.html)
adidas running
adidas NBA shoes
adidas 35th anniversary shoes
adicolor shoes
adidas football shoes
GGG hoody
(http://www.fjrjtrade.com/category-871-b0-T-Shirt.html)
GGG T-shirt
Armani T-shirt
Armani shirt
armani long t-shirt
AF women trousrs
AF men and women coat
(http://www.fjrjtrade.com/category-804-b0-Coat.html)
D&G jeans
A&G T-shirt
BBC scanties
BBC jeans
BBC hoody
BBC T-shirt
LRG jeans
(http://www.fjrjtrade.com/category-1261-b0-Jean.html)
LRG hoody
LRG T-shirt
Bape jeans
Bape hoody
Bape t-shirt
Evisu long t-shit
Evisu original jeans
Evisu jeans wear
Evisu hoody
Evisu jeans
Evisu T-shirt
POLO T-shirt
Googi jeans
Googi hoody
Googi T-shirt
juicy
10Deep jeans
10 Deep hoody
10Deep T-shirt
Lacoste T-shirt
Lacoste sweater
Burberry jacket
Buberry T-shirt
Buberry shirt
ED hardy hoody
ED hardy jeans
Website:
http://www.fjrjtrade.com
==============================================================================
TOPIC: Weird warning about data type range
http://groups.google.com/group/comp.lang.c++/t/c0fda54bd4ba1f60?hl=en
==============================================================================
== 1 of 2 ==
Date: Sun, Aug 30 2009 11:27 am
From: Jerry Coffin
In article <ad7ec9cc-6e85-4d12-8ebf-6072d20e2617
@z4g2000prh.googlegroups.com>, digital_puer@hotmail.com says...
>
> Thanks for everyone's help.
>
> What I am really trying to do is to test if
> characters in a std::string are alphanumeric
> characters in the Latin-1 encoding. I have
> the following:
>
>
> #define IS_ALPHANUMERIC(x) ( \
> ((x) >= 48 && (x) <= 57 ) || \
> ((x) >= 65 && (x) <= 90 ) || \
> ((x) >= 97 && (x) <= 122) || \
> ((x) >= 192 && (x) <= 214) || \
> ((x) >= 216 && (x) <= 246) || \
> ((x) >= 248 && (x) <= 255) )
>
> string s = getLatin1Text();
> int len = s.size();
> for (int i = 0; i < len; i++)
> {
> if (! IS_ALPHANUMERIC(s.at(i)))
> {
> ...
> }
> }
If I had to do this, I think I'd use something like this:
#include <climits>
#include <vector>
#include <algorithm>
struct alphanumeric_table {
std::vector<bool> table;
public:
#define elements(r) (sizeof(r)/sizeof(r[0]))
alphanumeric_table() : table(UCHAR_MAX+2, false) {
static const int ranges[] = {
48, 57,
65, 90,
97, 122,
192, 214,
216, 246,
248, 255
};
for (int i=0; i<elements(ranges); i+=2)
std::fill(table.begin()+ranges[i]+1,
table.begin()+ranges[i+1]+2,
true);
}
bool operator[](int n) { return table[unsigned char(n+1)]; }
} alpha_table;
inline bool is_alphanumeric(int n) {
return alpha_table[n];
}
This assumes that EOF is -1. Technically this isn't required (any
negative value is allowed) but it's extremely common -- to the point
that I'm not sure I've ever seen or heard of it actually having any
other value. In any case, the reason for the "+1"in most places is to
get a range from 0 through the maximum, so we can use it directly as
an index into the vector.
--
Later,
Jerry.
== 2 of 2 ==
Date: Sun, Aug 30 2009 3:31 pm
From: Digital Puer
On Aug 30, 11:27 am, Jerry Coffin <jerryvcof...@yahoo.com> wrote:
> In article <ad7ec9cc-6e85-4d12-8ebf-6072d20e2617
> @z4g2000prh.googlegroups.com>, digital_p...@hotmail.com says...
>
>
>
>
>
>
>
> > Thanks for everyone's help.
>
> > What I am really trying to do is to test if
> > characters in a std::string are alphanumeric
> > characters in the Latin-1 encoding. I have
> > the following:
>
> > #define IS_ALPHANUMERIC(x) ( \
> > ((x) >= 48 && (x) <= 57 ) || \
> > ((x) >= 65 && (x) <= 90 ) || \
> > ((x) >= 97 && (x) <= 122) || \
> > ((x) >= 192 && (x) <= 214) || \
> > ((x) >= 216 && (x) <= 246) || \
> > ((x) >= 248 && (x) <= 255) )
>
> > string s = getLatin1Text();
> > int len = s.size();
> > for (int i = 0; i < len; i++)
> > {
> > if (! IS_ALPHANUMERIC(s.at(i)))
> > {
> > ...
> > }
> > }
>
> If I had to do this, I think I'd use something like this:
>
> #include <climits>
> #include <vector>
> #include <algorithm>
>
> struct alphanumeric_table {
> std::vector<bool> table;
> public:
> #define elements(r) (sizeof(r)/sizeof(r[0]))
>
> alphanumeric_table() : table(UCHAR_MAX+2, false) {
> static const int ranges[] = {
> 48, 57,
> 65, 90,
> 97, 122,
> 192, 214,
> 216, 246,
> 248, 255
> };
>
> for (int i=0; i<elements(ranges); i+=2)
> std::fill(table.begin()+ranges[i]+1,
> table.begin()+ranges[i+1]+2,
> true);
> }
>
> bool operator[](int n) { return table[unsigned char(n+1)]; }
>
> } alpha_table;
>
> inline bool is_alphanumeric(int n) {
> return alpha_table[n];
>
> }
>
> This assumes that EOF is -1. Technically this isn't required (any
> negative value is allowed) but it's extremely common -- to the point
> that I'm not sure I've ever seen or heard of it actually having any
> other value. In any case, the reason for the "+1"in most places is to
> get a range from 0 through the maximum, so we can use it directly as
> an index into the vector.
>
> --
> Later,
> Jerry.
Thanks. This is great. A self-contained class like
this is much better than my #define macro. It's also
faster since the lookup is immediate rather than
through a bunch of if-in-range statements.
==============================================================================
TOPIC: ✪✪✪China factory wholesale NFL,mlb,nhl,nbaJerseys Free Shipping Paypal
payment
http://groups.google.com/group/comp.lang.c++/t/5224e3982b57b809?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 11:29 am
From: guoshibb
NFL Jerseys
Pro Bowl
http://www.guoshitrade.com/category-2087-b0-Pro+Bowl.html
Super Bowl
http://www.guoshitrade.com/category-2088-b0-Super+Bowl.html
Arizona Cardinals
http://www.guoshitrade.com/category-1391-b0-Arizona+Cardinals.html
Atlanta Falcons
http://www.guoshitrade.com/category-1392-b0-Atlanta+Falcons.html
Baltimore Ravens
http://www.guoshitrade.com/category-1393-b0-Baltimore+Ravens.html
Buffalo Bills
http://www.guoshitrade.com/category-1394-b0-Buffalo+Bills.html
Carolina Panthers
http://www.guoshitrade.com/category-1395-b0-Carolina+Panthers.html
Chicago Bears
http://www.guoshitrade.com/category-1396-b0-Chicago+Bears.html
Cincinnati Bengals
http://www.guoshitrade.com/category-1399-b0-Cincinnati+Bengals.html
Cleveland Browns
http://www.guoshitrade.com/category-1397-b0-Cleveland+Browns.html
Dallas Cowboys
http://www.guoshitrade.com/category-1398-b0-Dallas+Cowboys.html
Denver Broncos
http://www.guoshitrade.com/category-1400-b0-Denver+Broncos.html
Detroit Lions
http://www.guoshitrade.com/category-1401-b0-Detroit+Lions.html
Green Bay Packers
http://www.guoshitrade.com/category-1402-b0-Green+Bay+Packers.html
Houston Texans
http://www.guoshitrade.com/category-1403-b0-Houston+Texans.html
Indianapolis Colts
http://www.guoshitrade.com/category-1404-b0-Indianapolis+Colts.html
Jacksonville Jaguars
http://www.guoshitrade.com/category-1405-b0-Jacksonville+Jaguars.html
Kansas City Chiefs
http://www.guoshitrade.com/category-1406-b0-Kansas+City+Chiefs.html
Miami Dolphins
http://www.guoshitrade.com/category-1407-b0-Miami+Dolphins.html
Minnesota Vikings
http://www.guoshitrade.com/category-1408-b0-Minnesota+Vikings.html
New England Patriots
http://www.guoshitrade.com/category-1409-b0-New+England+Patriots.html
New Orleans Saints
http://www.guoshitrade.com/category-1410-b0-New+Orleans+Saints.html
New York Giants
http://www.guoshitrade.com/category-1411-b0-New+York+Giants.html
New York Jets
http://www.guoshitrade.com/category-1412-b0-New+York+Jets.html
Oakland Raiders
http://www.guoshitrade.com/category-1413-b0-Oakland+Raiders.html
Philadelphia Eagles
http://www.guoshitrade.com/category-1414-b0-Philadelphia+Eagles.html
Pittsburgh Steelers
http://www.guoshitrade.com/category-1415-b0-Pittsburgh+Steelers.html
San Diego Chargers
http://www.guoshitrade.com/category-1416-b0-San+Diego+Chargers.html
San Francisco 49ers
http://www.guoshitrade.com/category-1417-b0-San+Francisco+49ers.html
Seattle Seahawks
http://www.guoshitrade.com/category-1418-b0-Seattle+Seahawks.html
St. Louis Rams
http://www.guoshitrade.com/category-1419-b0-St+Louis+Rams.html
Tampa Bay Buccaneers
http://www.guoshitrade.com/category-1420-b0-Tampa+Bay+Buccaneers.html
Tennessee Titans
http://www.guoshitrade.com/category-1421-b0-Tennessee+Titans.html
Washington Redskins
http://www.guoshitrade.com/category-1422-b0-Washington+Redskins.html
MLB Jerseys
Boston Red Sox
http://www.guoshitrade.com/category-1364-b0-Boston+Red+Sox.html
Chicago Cubs
http://www.guoshitrade.com/category-1365-b0-Chicago+Cubs.html
Chicago White Sox
http://www.guoshitrade.com/category-1366-b0-Chicago+White+Sox.html
Cleveland Indians
http://www.guoshitrade.com/category-1368-b0-Cleveland+Indians.html
Detroit Tigers
http://www.guoshitrade.com/category-1370-b0-Detroit+Tigers.html
Los Angeles Dodgers
http://www.guoshitrade.com/category-1375-b0-Los+Angeles+Dodgers.html
Milwaukee Brewers
http://www.guoshitrade.com/category-1376-b0-Milwaukee+Brewers.html
Minnesota Twins
http://www.guoshitrade.com/category-1377-b0-Minnesota+Twins.html
New York Mets
http://www.guoshitrade.com/category-1378-b0-New+York+Mets.html
New York Yankees
http://www.guoshitrade.com/category-1379-b0-New+York+Yankees.html
Philadelphia Phillies
http://www.guoshitrade.com/category-1381-b0-Philadelphia+Phillies.html
Pittsburgh Pirates
http://www.guoshitrade.com/category-1382-b0-Pittsburgh+Pirates.html
Seattle Mariners
http://www.guoshitrade.com/category-1385-b0-Seattle+Mariners.html
St. Louis Cardinals
http://www.guoshitrade.com/category-1386-b0-St+Louis+Cardinals.html
Tampa Bay Rays
http://www.guoshitrade.com/category-1387-b0-Tampa+Bay+Rays.html
Toronto Blue Jays
http://www.guoshitrade.com/category-1389-b0-Toronto+Blue+Jays.html
NHL Jerseys
Boston Bruins
http://www.guoshitrade.com/category-1426-b0-Boston+Bruins.html
Buffalo Sabres
http://www.guoshitrade.com/category-1427-b0-Buffalo+Sabres.html
Calgary Flames
http://www.guoshitrade.com/category-1428-b0-Calgary+Flames.html
Chicago Blackhawks
http://www.guoshitrade.com/category-1430-b0-Chicago+Blackhawks.html
Detroit Red Wings
http://www.guoshitrade.com/category-1434-b0-Detroit+Red+Wings.html
Edmonton Oilers
http://www.guoshitrade.com/category-1435-b0-Edmonton+Oilers.html
Minnesota Wild
http://www.guoshitrade.com/category-1438-b0-Minnesota+Wild.html
Montreal Canadiens
http://www.guoshitrade.com/category-1439-b0-Montreal+Canadiens.html
New Jersey Devils
http://www.guoshitrade.com/category-1441-b0-New+Jersey+Devils.html
New York Rangers
http://www.guoshitrade.com/category-1443-b0-New+York+Rangers.html
Philadelphia Flyers
http://www.guoshitrade.com/category-1445-b0-Philadelphia+Flyers.html
Pittsburgh Penguins
http://www.guoshitrade.com/category-1447-b0-Pittsburgh+Penguins.html
San Jose Sharks
http://www.guoshitrade.com/category-1448-b0-San+Jose+Sharks.html
Toronto Maple Leafs
http://www.guoshitrade.com/category-1451-b0-Toronto+Maple+Leafs.html
Washington Capitals
http://www.guoshitrade.com/category-1453-b0-Washington+Capitals.html
==============================================================================
TOPIC: 。◕ω◕。Wholesame D&G Shoes Cheap D&G Men Shoes www.guomeitrade.com
http://groups.google.com/group/comp.lang.c++/t/8a6418ca8e83b558?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 12:04 pm
From: "www.guomeitrade.com"
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Jeans
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Shoes
shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Jeans
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Handbags
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Kid's
shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach Bags
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Men
Shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior
Handbags
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Women
shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq Shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Jeans
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach
Handbags
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Jeans
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Shoes
shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Jeans
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale COURT FORCE
(paypal payment)( www.guomeitrade.com ) paypal wholesale converse
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Handbags
(paypal payment)( www.guomeitrade.com ) paypal wholesale Dior shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale D&G Kid's
shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale dsq shoes
(paypal payment)( www.guomeitrade.com ) paypal wholesale Clarks
(paypal payment)( www.guomeitrade.com ) paypal wholesale Coach Bags
==============================================================================
TOPIC: ╰☆╮China factory wholesale NFL,mlb,nhl,nbaJerseys Free Shipping Paypal
payment╰☆╮
http://groups.google.com/group/comp.lang.c++/t/688ed9b536c1b289?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 12:07 pm
From: guoshibb
NFL Jerseys
Pro Bowl
http://www.guoshitrade.com/category-2087-b0-Pro+Bowl.html
Super Bowl
http://www.guoshitrade.com/category-2088-b0-Super+Bowl.html
Arizona Cardinals
http://www.guoshitrade.com/category-1391-b0-Arizona+Cardinals.html
Atlanta Falcons
http://www.guoshitrade.com/category-1392-b0-Atlanta+Falcons.html
Baltimore Ravens
http://www.guoshitrade.com/category-1393-b0-Baltimore+Ravens.html
Buffalo Bills
http://www.guoshitrade.com/category-1394-b0-Buffalo+Bills.html
Carolina Panthers
http://www.guoshitrade.com/category-1395-b0-Carolina+Panthers.html
Chicago Bears
http://www.guoshitrade.com/category-1396-b0-Chicago+Bears.html
Cincinnati Bengals
http://www.guoshitrade.com/category-1399-b0-Cincinnati+Bengals.html
Cleveland Browns
http://www.guoshitrade.com/category-1397-b0-Cleveland+Browns.html
Dallas Cowboys
http://www.guoshitrade.com/category-1398-b0-Dallas+Cowboys.html
Denver Broncos
http://www.guoshitrade.com/category-1400-b0-Denver+Broncos.html
Detroit Lions
http://www.guoshitrade.com/category-1401-b0-Detroit+Lions.html
Green Bay Packers
http://www.guoshitrade.com/category-1402-b0-Green+Bay+Packers.html
Houston Texans
http://www.guoshitrade.com/category-1403-b0-Houston+Texans.html
Indianapolis Colts
http://www.guoshitrade.com/category-1404-b0-Indianapolis+Colts.html
Jacksonville Jaguars
http://www.guoshitrade.com/category-1405-b0-Jacksonville+Jaguars.html
Kansas City Chiefs
http://www.guoshitrade.com/category-1406-b0-Kansas+City+Chiefs.html
Miami Dolphins
http://www.guoshitrade.com/category-1407-b0-Miami+Dolphins.html
Minnesota Vikings
http://www.guoshitrade.com/category-1408-b0-Minnesota+Vikings.html
New England Patriots
http://www.guoshitrade.com/category-1409-b0-New+England+Patriots.html
New Orleans Saints
http://www.guoshitrade.com/category-1410-b0-New+Orleans+Saints.html
New York Giants
http://www.guoshitrade.com/category-1411-b0-New+York+Giants.html
New York Jets
http://www.guoshitrade.com/category-1412-b0-New+York+Jets.html
Oakland Raiders
http://www.guoshitrade.com/category-1413-b0-Oakland+Raiders.html
Philadelphia Eagles
http://www.guoshitrade.com/category-1414-b0-Philadelphia+Eagles.html
Pittsburgh Steelers
http://www.guoshitrade.com/category-1415-b0-Pittsburgh+Steelers.html
San Diego Chargers
http://www.guoshitrade.com/category-1416-b0-San+Diego+Chargers.html
San Francisco 49ers
http://www.guoshitrade.com/category-1417-b0-San+Francisco+49ers.html
Seattle Seahawks
http://www.guoshitrade.com/category-1418-b0-Seattle+Seahawks.html
St. Louis Rams
http://www.guoshitrade.com/category-1419-b0-St+Louis+Rams.html
Tampa Bay Buccaneers
http://www.guoshitrade.com/category-1420-b0-Tampa+Bay+Buccaneers.html
Tennessee Titans
http://www.guoshitrade.com/category-1421-b0-Tennessee+Titans.html
Washington Redskins
http://www.guoshitrade.com/category-1422-b0-Washington+Redskins.html
MLB Jerseys
Boston Red Sox
http://www.guoshitrade.com/category-1364-b0-Boston+Red+Sox.html
Chicago Cubs
http://www.guoshitrade.com/category-1365-b0-Chicago+Cubs.html
Chicago White Sox
http://www.guoshitrade.com/category-1366-b0-Chicago+White+Sox.html
Cleveland Indians
http://www.guoshitrade.com/category-1368-b0-Cleveland+Indians.html
Detroit Tigers
http://www.guoshitrade.com/category-1370-b0-Detroit+Tigers.html
Los Angeles Dodgers
http://www.guoshitrade.com/category-1375-b0-Los+Angeles+Dodgers.html
Milwaukee Brewers
http://www.guoshitrade.com/category-1376-b0-Milwaukee+Brewers.html
Minnesota Twins
http://www.guoshitrade.com/category-1377-b0-Minnesota+Twins.html
New York Mets
http://www.guoshitrade.com/category-1378-b0-New+York+Mets.html
New York Yankees
http://www.guoshitrade.com/category-1379-b0-New+York+Yankees.html
Philadelphia Phillies
http://www.guoshitrade.com/category-1381-b0-Philadelphia+Phillies.html
Pittsburgh Pirates
http://www.guoshitrade.com/category-1382-b0-Pittsburgh+Pirates.html
Seattle Mariners
http://www.guoshitrade.com/category-1385-b0-Seattle+Mariners.html
St. Louis Cardinals
http://www.guoshitrade.com/category-1386-b0-St+Louis+Cardinals.html
Tampa Bay Rays
http://www.guoshitrade.com/category-1387-b0-Tampa+Bay+Rays.html
Toronto Blue Jays
http://www.guoshitrade.com/category-1389-b0-Toronto+Blue+Jays.html
NHL Jerseys
Boston Bruins
http://www.guoshitrade.com/category-1426-b0-Boston+Bruins.html
Buffalo Sabres
http://www.guoshitrade.com/category-1427-b0-Buffalo+Sabres.html
Calgary Flames
http://www.guoshitrade.com/category-1428-b0-Calgary+Flames.html
Chicago Blackhawks
http://www.guoshitrade.com/category-1430-b0-Chicago+Blackhawks.html
Detroit Red Wings
http://www.guoshitrade.com/category-1434-b0-Detroit+Red+Wings.html
Edmonton Oilers
http://www.guoshitrade.com/category-1435-b0-Edmonton+Oilers.html
Minnesota Wild
http://www.guoshitrade.com/category-1438-b0-Minnesota+Wild.html
Montreal Canadiens
http://www.guoshitrade.com/category-1439-b0-Montreal+Canadiens.html
New Jersey Devils
http://www.guoshitrade.com/category-1441-b0-New+Jersey+Devils.html
New York Rangers
http://www.guoshitrade.com/category-1443-b0-New+York+Rangers.html
Philadelphia Flyers
http://www.guoshitrade.com/category-1445-b0-Philadelphia+Flyers.html
Pittsburgh Penguins
http://www.guoshitrade.com/category-1447-b0-Pittsburgh+Penguins.html
San Jose Sharks
http://www.guoshitrade.com/category-1448-b0-San+Jose+Sharks.html
Toronto Maple Leafs
http://www.guoshitrade.com/category-1451-b0-Toronto+Maple+Leafs.html
Washington Capitals
http://www.guoshitrade.com/category-1453-b0-Washington+Capitals.html
==============================================================================
TOPIC: canceling noncopyable feature
http://groups.google.com/group/comp.lang.c++/t/5add783081f15e0e?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 12:24 pm
From: "Chris M. Thomasson"
"Michal" <rabbitko@tenbit.pl> wrote in message
news:m2prahs93x.fsf@tenbit.pl...
> Hallo Group Members
>
> The following simple program allows for copying non-copyable function.
>
> #include <boost/noncopyable.hpp>
> #include <iostream>
>
> using namespace std;
>
> class Original: boost::noncopyable {
>
> public:
> Original() {
> cout << "Original constructor" << endl;
> }
> Original(const Original& rhs) {
> // this definition is the reason!!!!
> }
> };
>
>
> int main(int argc, char *argv[])
> {
> Original o;
> Original o2 = o;
> return 0;
> }
>
>
> Do You know how is it possible?
You created an explicit public copy-constructor for `Original'.
==============================================================================
TOPIC: Discount Wholesale GUCCI Watch Paypal Payment Free Shipping <www.
guomeitrade.com>
http://groups.google.com/group/comp.lang.c++/t/7c71760567283ca9?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 12:25 pm
From: wendy
Discount wholesale Ebel Watch (www.guomeitrade.com) (paypal payment)
Discount wholesale Bape Watch
Discount wholaesale Bell&Ross Watch
Discount wholesale Breit Ling Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Burberry Watch
Discount wholesale Cartier Watch
Discount wholesale Chopard Watch
Discount wholesale D&G Watch
Discount wholesale Givenchy Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Jacob&Co Watch
Discount wholesale Kappa Watch
Discount wholesale Prada Watch
Discount wholesale Tissot Watch
Discount wholesale Titoni Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale U-BOAT Watch
Discount wholesale Zenith Watch
Discount wholesale A.Lange&Sohne Watch
Discount wholesale Audemars Piguet Watch
Discount wholesale Baume&Mercier Watch
Discount wholesale Blancpain Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Breguet Watch
Discount wholesale BRM Watch
Discount wholesale Bvlgari Watch
Discount wholesale Chanel Watch
Discount wholesale Concord Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Corum Watch
Discount wholesale Dewitt Watch
Discount wholesale Ferrari Watch
Discount wholesale Franck Muller Watch
Discount wholesale Girard Perregaux Watch
Discount wholesale Glashutte Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Graham Watch
Discount wholesale GUCCI Watch
Discount wholesale GUESS Watch
Discount wholesale Hamilton Watch
Discount wholesale Hermes Watch
Discount wholesale Hublot Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale IWC Watch
Discount wholesale Jaeger Le Coultre Watch
Discount wholesale Longines Watch
Discount wholesale LV Watch
Discount wholesale Montblanc Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Movado Watch
Discount wholesale Omega Watch
Discount wholesale Oris Watch
Discount wholesale Paket Philippe Watch
Discount wholesale Panerai Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Parmigiani Fleurier Watch
Discount wholesale Piaget Watch
Discount wholesale Porsche Design Watch
Discount wholesale Rolex Watch (www.guomeitrade.com) (paypal
payment)
Discount wholesale Romain Jerome Titanic-Dna Watch
Discount wholesale Tag Heuer Watch
Discount wholesale Tudor Watch
Discount wholesale Vach.Constantine Watch
Discount wholesale Armani Watch
Discount wholesale RADO Watch (www.guomeitrade.com) (paypal
payment)
==============================================================================
TOPIC: OT: "Search This Group" not working here
http://groups.google.com/group/comp.lang.c++/t/62aa2491f31521e5?hl=en
==============================================================================
== 1 of 3 ==
Date: Sun, Aug 30 2009 12:28 pm
From: Brian
With the release of Boost 1.40, I am planning to update this page
http://webEbenezer.net/comparison.html.
I wanted to review a past thread on the subject of benchmarks and
I entered 'O_LARGEFILE "brian wood"' and clicked on "Search
this group." Google groups reported no threads matched the
search, so I used scroogle.org/scraper.html and put in the same
terms. That came back with the thread I was looking for titled
"Execution time of code?." http://preview.tinyurl.com/l9j7or
Have others had any problem like that? When I left off the
O_LARGEFILE and just searched on my name, the only
threads that came up were recent threads.
Thanks in advance,
Brian Wood
www.webEbenezer.net
== 2 of 3 ==
Date: Sun, Aug 30 2009 12:48 pm
From: "Balog Pal"
"Brian" <coal@mailvault.com>
> With the release of Boost 1.40, I am planning to update this page
> http://webEbenezer.net/comparison.html.
>
> I wanted to review a past thread on the subject of benchmarks and
> I entered 'O_LARGEFILE "brian wood"' and clicked on "Search
> this group." Google groups reported no threads matched the
> search, so I used scroogle.org/scraper.html and put in the same
> terms. That came back with the thread I was looking for titled
> "Execution time of code?." http://preview.tinyurl.com/l9j7or
>
> Have others had any problem like that? When I left off the
> O_LARGEFILE and just searched on my name, the only
> threads that came up were recent threads.
GG search malfunctions for at least two months to different degrees, and
last time I checked (1-2 days ago) it was completely on the knees.
== 3 of 3 ==
Date: Sun, Aug 30 2009 12:55 pm
From: Francesco
On 30 Ago, 21:28, Brian <c...@mailvault.com> wrote:
> With the release of Boost 1.40, I am planning to update this pagehttp://webEbenezer.net/comparison.html.
>
> I wanted to review a past thread on the subject of benchmarks and
> I entered 'O_LARGEFILE "brian wood"' and clicked on "Search
> this group." Google groups reported no threads matched the
> search, so I used scroogle.org/scraper.html and put in the same
> terms. That came back with the thread I was looking for titled
> "Execution time of code?." http://preview.tinyurl.com/l9j7or
>
> Have others had any problem like that? When I left off the
> O_LARGEFILE and just searched on my name, the only
> threads that came up were recent threads.
>
> Thanks in advance,
> Brian Woodwww.webEbenezer.net
I believe the groups are/were undergoing some kind of maintenance.
Some days ago I tried to login and I got a server error, then all the
stats in my groups' page where reset to zero and started reporting web
views, messages etc. from there on. Maybe they're just a bit behind
with the indexes rebuilding.
Francesco
==============================================================================
TOPIC: g++ 3.4.5 doesn't zero-initialize
http://groups.google.com/group/comp.lang.c++/t/9c689fc29201ceec?hl=en
==============================================================================
== 1 of 2 ==
Date: Sun, Aug 30 2009 1:18 pm
From: "Balog Pal"
"Alf P. Steinbach" <alfps@start.no>
.
> Grr.
>
> What's wrong with this code?
>
> struct WndClassEx: WNDCLASSEX
> {
> WndClassEx(
> cppx::WideString const& name,
> Params const& params
> )
> : WNDCLASSEX()
> {
> cbSize = sizeof( WNDCLASSEX );
> style = params.style();
> lpfnWndProc = &DefWindowProc;
> hInstance = params.module();
> hCursor = ::LoadCursor( 0, IDC_ARROW );
> hbrBackground = reinterpret_cast<HBRUSH>( COLOR_BTNFACE +
> 1 );
> lpszClassName = name.cStr();
> }
>
> WndClassEx const* ptr() const
> {
> return this;
> }
> };
>
> Answer: nothing in particular, at least when one knows that it's just a
> little local helper class where 'name' arg has lifetime guaranteed to be
> enough.
The problem is you build on working 'value-init' that is known to have
real-world problems.
> But MinGW g++ doesn't zero-initialize the WNDCLASSEX as it should (this is
> a plain struct with no constructor, provided by the Windows API).
>
> Argh!
>
> I knew old MSVC doesn't always zero-initialize /arrays/ when told to.
>
> But I didn't know that g++ doesn't zero-initialize /structs/ when told to.
Does that version claim support for C++03? IIRC C++98 did not have the value
init for structs, and I guess the 3.x versions were about the turning point.
Even if it did claim TC1 I tend to doubt fair implementation in the first
year.
Honestly, the calendar is 2009 by now, but I'd not rely in value init even
of current compielrs -- at least without first checking the version and
include some defense cludges in code should it migrate away...
> And by the way, the gdb debugger is driving me crazy.
Too bad -- if doing windows, why not use the windows toolset? I doubt gdb
will ever come close to Visual's... If your prog is portable, it will go in
VS express, if not -- what is the wisdom behind locking into a compiler
that is poorly supported on the target platform?
And if porting win code away, why to an archaic version of gcc instead of a
current?
> Ignoring breakpoints and telling me the source code for some stack frame
> is at arbitrary location in arbitrary file. And yes, optimizations turned
> off, which is another annoyance, since g++ needs optimizations on to e.g.
> warn about uninitialized things.
And inside ddd it crashes on all kind of ocasions, sometimes gets confused
of the objects to show, etc...
== 2 of 2 ==
Date: Sun, Aug 30 2009 4:34 pm
From: "Alf P. Steinbach"
* Balog Pal:
> "Alf P. Steinbach" <alfps@start.no>
> .
>> Grr.
>>
>> What's wrong with this code?
>>
>> struct WndClassEx: WNDCLASSEX
>> {
>> WndClassEx(
>> cppx::WideString const& name,
>> Params const& params
>> )
>> : WNDCLASSEX()
>> {
>> cbSize = sizeof( WNDCLASSEX );
>> style = params.style();
>> lpfnWndProc = &DefWindowProc;
>> hInstance = params.module();
>> hCursor = ::LoadCursor( 0, IDC_ARROW );
>> hbrBackground = reinterpret_cast<HBRUSH>( COLOR_BTNFACE +
>> 1 );
>> lpszClassName = name.cStr();
>> }
>>
>> WndClassEx const* ptr() const
>> {
>> return this;
>> }
>> };
>>
>> Answer: nothing in particular, at least when one knows that it's just a
>> little local helper class where 'name' arg has lifetime guaranteed to be
>> enough.
>
> The problem is you build on working 'value-init' that is known to have
> real-world problems.
So has everything. :-)
I'd not know what to not avoid.
I think the statement is founded on blissful ignorance of how many constructs of
C++ that have real world problems with some popular compilers.
That includes exceptions, it includes RTTI such as dynamic_cast, even for-loops
(scope). It even includes standard 'main' (linking).
Avoiding for-loops, standard main, RTTI, default-initialization, exceptions...,
one would have, well, not C++!
>> But MinGW g++ doesn't zero-initialize the WNDCLASSEX as it should (this is
>> a plain struct with no constructor, provided by the Windows API).
>>
>> Argh!
>>
>> I knew old MSVC doesn't always zero-initialize /arrays/ when told to.
>>
>> But I didn't know that g++ doesn't zero-initialize /structs/ when told to.
>
> Does that version claim support for C++03? IIRC C++98 did not have the value
> init for structs, and I guess the 3.x versions were about the turning point.
> Even if it did claim TC1 I tend to doubt fair implementation in the first
> year.
The code does not depend on C++03 value initialization.
It uses only the subset of that functionality that was present in C++98, there
known as default-initialization.
C++98 had just zero-initialization and default initialization. For a POD, such
as in the code above, the latter is the *same* as value initialization, reducing
recursively to zero-initialization of the PODs elements. Andrew Koenig (IIRC)
introduced value initialization in C++03 to help address the inconsistent
behavior one got for non-PODs, that is, for aggregate structs, e.g. if you had a
std::string in there.
And since WNDCLASSEX is a POD structure, the above should work with a C++98
compiler.
Happily it turned out that it's only in the context of a memory initializer list
that g++ goofs up the default initialization, so the code's now
struct WndClassEx: WNDCLASSEX
{
WndClassEx(
cppx::WideString const& name,
Params const& params
)
//: WNDCLASSEX()
{
*static_cast<WNDCLASSEX*>( this ) = WNDCLASSEX(); // MinGW g++.
cbSize = sizeof( WNDCLASSEX );
style = params.style();
//cbClsExtra = 0;
//cbWndExtra = 0;
lpfnWndProc = &DefWindowProc;
hInstance = params.module();
//hIcon = 0;
hCursor = ::LoadCursor( 0, IDC_ARROW );
hbrBackground = reinterpret_cast<HBRUSH>( COLOR_BTNFACE + 1 );
lpszClassName = name.cStr();
//hIconSm = 0;
}
WndClassEx const* ptr() const
{
return this;
}
};
> Honestly, the calendar is 2009 by now, but I'd not rely in value init even
> of current compielrs -- at least without first checking the version and
> include some defense cludges in code should it migrate away...
>
>> And by the way, the gdb debugger is driving me crazy.
>
> Too bad -- if doing windows, why not use the windows toolset? I doubt gdb
> will ever come close to Visual's... If your prog is portable, it will go in
> VS express, if not -- what is the wisdom behind locking into a compiler
> that is poorly supported on the target platform?
On the contrary, to avoid a compiler lock-in one should compile the code with at
least 2 different compilers.
I use MingW for that purpose.
For the code that the above is part of it did spot two access issues and two
invalid extra semicolons! ;-)
However, I had to provide a number of declarations of Windows API things not
supported by the g++ Windows headers and import libraries.
Those were not, as one would expect, "new" things, but rather archaic things
where Microsoft has provided more complicated-to-use alternatives.
> And if porting win code away, why to an archaic version of gcc instead of a
> current?
g++ 3.4.5 *is*, unfortunately, the still current version of MinGW. :-(
There are of course "unofficial" Windows builds of later g++ versions since g++
is into version 4.x on *nix.
But I think it's best (at least for my purposes) to write code that will compile
with current versions of popupular compilers.
Cheers,
- Alf
==============================================================================
TOPIC: ╃♡╃♡╃Wholesale 100% Naturel Latex Standard Pillow,Massager Pillow,Latex
Baby Pillow,Latex Car Pillow, Latex Ergonomic Pillow,Latex Cushion,Latex
Mattresses The best china Latex products supplier
http://groups.google.com/group/comp.lang.c++/t/39d6567c6a5795bb?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 6:23 pm
From: Gao wendy
╃♡╃♡╃Wholesale 100% Naturel Latex Standard Pillow http://aoatrade.en.china.cn/,Massager
Pillow http://aoatrade.en.china.cn/,Latex Baby Pillow http://aoatrade.en.china.cn/,Latex
Car Pillow http://aoatrade.en.china.cn/, Latex Ergonomic Pillow
http://aoatrade.en.china.cn/,Latex Cushion http://aoatrade.en.china.cn/,Latex
Mattresses http://aoatrade.en.china.cn/
The best china Latex products supplier
==============================================================================
TOPIC: ☆♥☆100% Naturel Latex Standard Pillow,Massager Pillow,Latex Baby Pillow,
Latex Car Pillow, Latex Ergonomic Pillow,Latex Cushion,Latex Mattresses
http://groups.google.com/group/comp.lang.c++/t/70c36d7fe0e71335?hl=en
==============================================================================
== 1 of 1 ==
Date: Sun, Aug 30 2009 6:25 pm
From: Gao wendy
☆♥☆Wholesale 100% Naturel Latex Standard Pillow http://aoatrade.en.china.cn/,Massager
Pillow http://aoatrade.en.china.cn/,Latex Baby Pillow http://aoatrade.en.china.cn/,Latex
Car Pillow http://aoatrade.en.china.cn/, Latex Ergonomic Pillow
http://aoatrade.en.china.cn/,Latex Cushion http://aoatrade.en.china.cn/,Latex
Mattresses http://aoatrade.en.china.cn/
The best china Latex products supplier
==============================================================================
You received this message because you are subscribed to the Google Groups "comp.lang.c++"
group.
To post to this group, visit http://groups.google.com/group/comp.lang.c++?hl=en
To unsubscribe from this group, send email to comp.lang.c+++unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c++/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=en
No comments:
Post a Comment