Today's Messages (OFF)  | Unanswered Messages (ON)

Forum: c++
 Topic: Free books
Free books [message #17420] Mon, 08 October 2007 01:48
akira  is currently offline akira
Messages: 4
Registered: October 2007
Junior Member
Hi.. I update my c++ e-books.. take a look at: http://freebooks2007.blogspot.com
 Topic: Release file descriptor in c/c++
Release file descriptor in c/c++ [message #17416] Mon, 08 October 2007 00:33
yinglcs  is currently offline yinglcs
Messages: 6
Registered: August 2007
Junior Member
I have a c/c++ program in linux.

I would like to know if I kill my program (e.g. exit(1)), will it
release all the file descriptors my program held (regardless if I call
close(fd) of each file descriptor)?

Thank you.
 Topic: the counter
the counter [message #17397] Sun, 07 October 2007 12:00
CuTe_Engineer  is currently offline CuTe_Engineer
Messages: 5
Registered: September 2007
Junior Member
hii,

i wrote this prog

//header file


#include <string>

using namespace std;

class expenditure
{
public: //public member function
void set(string, int,int,int);
void get(string&, int&,int&,int&) const;
static int getCount();
static int gettotalexpenditure( );
void print() const;
expenditure (string = "Al-Mullah", int= 800, int = 2400, int= 1200);
~ expenditure ();
static double averageExpenditure();

private: // private member function
string name;
int utilities ;
int food;
int personal;
int subtotal;
static int count;
static int totalexpenditure ;
};

// ExpenditureImp.cpp



#include<iostream>
#include<string>
#include"Ex.h"

using namespace std;

int expenditure :: count=0;
int expenditure ::totalexpenditure=0;

void expenditure::set(string N , int u , int f, int p) // set
function
{

totalexpenditure -=subtotal;

name=N;
utilities = u;
food=f;
personal=p;

subtotal=food+personal+utilities;

totalexpenditure += subtotal;
}
void expenditure::get(string& N , int& u , int& f , int& p)const //
get function
{
N=name;
f=food;
p=personal;
u=utilities;
}
expenditure::expenditure(string N, int u, int f , int p) //
constructor
{

subtotal=0;
set(N,u,f,p);

count++;

}

int expenditure::getCount() // get count
{

return count;

}


int expenditure::gettotalexpenditure( ) //return totalexpenditure
{
return totalexpenditure;
}

expenditure::~expenditure() //distructor
{
count--;
totalexpenditure -= subtotal;
cout << "Number of families is: " << count << " and total Expenditure
is: " << totalexpenditure <<endl;
}

void expenditure::print() const // print
{

cout << name << " Expenditure is: " << subtotal << endl;
}
double expenditure::averageExpenditure( )
{
return totalexpenditure/count;

}

#include <iostream>
#include <fstream>
#include <string>
#include "Ex.h"

using namespace std;
const int arraySize = 10;
int main()
{
string N;
int p ,f ,u;
int i;
int numberoffamilies=0;
ifstream inFile("expenditure.txt", ios::in); // reading from file



expenditure A[arraySize]; // array
for(i=0; i<arraySize; i++)
{
A[i].print();
}

cout << "Number of families is: " << expenditure::getCount() << " and
total Expenditure is: " << expenditure::gettotalexpenditure( ) <<
endl;


while(inFile >>N >> u >> f >>p)
A[numberoffamilies++].set(N,u,f,p); // number of families
for(i=0; i<numberoffamilies; i++)
{
A[i].print();
}
cout << "Number of families is: " << expenditure::getCount() << "
and total Expenditure is: " << expenditure::gettotalexpenditure( ) <<
endl;
cout<<" Average families expenditure is:
"<<expenditure::averageExpenditure()<<endl;
return 0;

}

my Question is that when i want to start counting families from the
number 7 instead of 10 what should i do ?do i need to use a new
function or what ??

this is the output i want get

Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Al-Mullah expenditure is: 4400
Number of families is: 10 and total expenditure is: 44000
Al-Mullah expenditure is: 5100
Al-Issa expenditure is: 5300
Al-Roome expenditure is: 5457
Al-Shebani expenditure is: 4150
Al-Kurdi expenditure is: 4880
Al-Ali expenditure is: 4720
Al-Walled expenditure is: 3940
Number of families is: 7 and total expenditure is: 33547<<<< here is
my mistake instead of 7 i
Average families expenditure is:
4792.4 am getting 10

Total number of families is: 6 and total expanditure is: 29147
Total number of families is: 5 and total expanditure is: 24747
Total number of families is: 4 and total expanditure is: 20347
Total number of families is: 3 and total expanditure is: 16407
Total number of families is: 2 and total expanditure is: 11687
Total number of families is: 1 and total expanditure is: 6807
Total number of families is: 0 and total expanditure is: 2657
Total number of families is: -1 and total expanditure is: -2800
Total number of families is: -2 and total expanditure is: -8100
Total number of families is: -3 and total expanditure is: -13200
 Topic: Re: Reverse a String
Re: Reverse a String [message #17253] Fri, 05 October 2007 09:05
Erik-wikstrom  is currently offline Erik-wikstrom
Messages: 412
Registered: July 2007
Senior Member
On 2007-10-05 13:34, arnuld wrote:
> PURPOSE: This program asks the user to input words and then it
> prints all of them in the same order but each word is reversed. e.g.
> INPUT -> C++ Bjarne
> OUTPUT -> ++C enrajB
> */
>
> PROBLEM: I am not able to reverse the individual strings :-(

You can always iterate over the characters in each string using a
reverse iterator, unless you actually reverse the words read in as
Gianni Mariani suggested.

--
Erik Wikström
 Topic: Re: Reverse a String
Re: Reverse a String [message #17245] Fri, 05 October 2007 08:03
Gianni Mariani  is currently offline Gianni Mariani
Messages: 153
Registered: July 2007
Senior Member
arnuld wrote:
> PURPOSE: This program asks the user to input words and then it
> prints all of them in the same order but each word is reversed. e.g.
> INPUT -> C++ Bjarne
> OUTPUT -> ++C enrajB
> */
>
> PROBLEM: I am not able to reverse the individual strings :-(

Why not use std::reverse() ?
 Topic: Re: Reverse a String
Re: Reverse a String [message #17244] Fri, 05 October 2007 07:51
Barry Ding  is currently offline Barry Ding
Messages: 32
Registered: September 2007
Member
arnuld wrote:
>
> I tried to use "reverse_copy" in place of 1st std::copy:
>
> std::reverse_copy( std::istream_iterator<std::string>( std::cin ),
> std::istream_iterator<std::string>(),
> std::back_inserter(svec ) );
>
>

reverse_copy need the input to be BidirectionalIterator, while
istream_iterator is of ForwardIterator
 Topic: Re: class method static variable same across isntances?
Re: class method static variable same across isntances? [message #17197] Thu, 04 October 2007 21:15
Ian Collins  is currently offline Ian Collins
Messages: 227
Registered: July 2007
Senior Member
Jim Langston wrote:
> The output of the following program for me is:
> Same
> 0 1 2
>
> Which is what I want. I just want to confirm this is well defined behavior,
> that a static local variable to a class function/method is the same instance
> across classes.
>
Yes, it is. Member functions are unique.

--
Ian Collins.
 Topic: Re: Better/prettier way to copy from one set to another?
Re: Better/prettier way to copy from one set to another? [message #17178] Thu, 04 October 2007 16:09
werasm  is currently offline werasm
Messages: 101
Registered: August 2007
Senior Member
On Oct 4, 9:45 pm, "Jim Langston" <tazmas...@rocketmail.com> wrote:
> I normally do my own iterations using containers, but have been striving to
> learn the standard algorithms and use them. One one point in my code I
> simply want to elements from one set into another. This is what I was able
> to piece together copying the elements from std::set<size_t> Triangles to
> std::set<size_t> SelectedSet:
>
> std::copy( Triangles.begin(), Triangles.end(),
> std::insert_iterator<std::set<size_t> >( SelectedSet,
> SelectedSet.begin() ) );
>
> std::insert_iterator<std::set<size_t> >( SelectedSet, SelectedSet.begin() )
> is a mouthful. Is there a simpler way?

std::inserter( SelectedSet, SelectedSet.begin() );

//...
#include <set>
#include <iterator>

int main()
{
std::set<int> s1;
std::set<int> s2;

std::copy(
s1.begin(), s1.end(),
std::inserter( s2, s2.begin() ) );
return 0;
}

Regards,

Werner
 Topic: Check it out:Very good online resources,tons of cool men and beautiful women eager for lovers....:
Check it out:Very good online resources,tons of cool men and beautiful women eager for lovers....: [message #17142] Thu, 04 October 2007 08:05
jack[1]  is currently offline jack[1]
Messages: 2
Registered: October 2007
Junior Member
Check it out:Very good online resources,tons of cool men and beautiful
women eager for lovers....:

1.Buy tickets online:
http://groups.google.com/group/all-good-things/web/want-to-b uy-tickets-online-come-here

2.No 1 social network:
http://groups.google.com/group/all-good-things/web/1-social- network

3.Very good online resources:
http://groups.google.com/group/all-good-things/web/very-usef ul-websites

4.cool men and beautiful women eager for lovers
http://groups.google.com/group/all-good-things/web/tons-of-m en-and-women-are-looking-lovers

5.Best affiliate programs:
http://www.apsense.com/abc/ymapsense/business.html
 Topic: Re: Specifying address of const overloaded function
Re: Specifying address of const overloaded function [message #17115] Thu, 04 October 2007 05:50
rolkA  is currently offline rolkA
Messages: 5
Registered: September 2007
Junior Member
Ok they have answered you, but I see something strange in your code :
you are using "tuple_t::get<0>()" : to take the adress of a function,
whatever its type is, you have to remove the brackets !
 Topic: Computer Security Information (Free Articles and eBooks)
Computer Security Information (Free Articles and eBooks) [message #17064] Wed, 03 October 2007 20:08
murray.james.com.use  is currently offline murray.james.com.use
Messages: 2
Registered: October 2007
Junior Member
Dear Reader,

I Want To Share Computer Security Information To All Internet Netter.

A. Computer Security Articles
--------------------------------
1. Firewalls Torn Apart
2. Guide To Social Engineering
3. Social Engineering And Email Account Cracking
4. Network Firewall Security
5. Hijacking Hotmail Accounts For Newbies
6. Various Ways To Hack Or Over Ride Foolproof
7. Configuring ZoneAlarm Securely
8. IP Masquerading Tutorial
9. Interesting Things You Didnt Know About Your Computers Hardware
10. Advanced Number Systems Made Easy
11. Hacking Dictionary
12. Hacking The Bios By Anand Bhaskar
13. DNS The What The How And The Why
14. Exploit Mihirs Guide To Inserting Logo To System Properties
15. Getting Geographical Information Using An IP Address
16. Create A Lightweight E Mailer
17. Telnet Explained By Abhisek Datta
18. Installing A Webserver For Newbies Part II
19. The IP Adress
20. Being A Hacker On The Meaning Of Being A Hacker
21. Well Known Port Numbers
22. Samba How To
23. Removing Banners
24. Port Numbers Part 1
25. Port Numbers Part 2
26. Port Numbers Part 3
27. Port Numbers Part 4
28. Port Numbers Part 5
29. Port Numbers Part 6
30. Port Numbers Part 7
31. Port Numbers Part 8
32. Port Numbers Part 9
33. The OSI Model
34. The Basic Elements Of Cracking
35. Beginners Step By Step Security Guide
36. Linking Rules For Hacking And Other Alternative Websites
37. Installing A Webserver For Newbies
38. Glossary
39. Wireless Security And Hacking
40. Wireless Network
41. Demystifying Remote Host Part 1
42. Exploiting Design Flaws In The Win32 API For Privilege Escalation
43. Wireless LAN Technologies and Windows XP
44. Understanding NetBIOS
45. The Complete Guide To Computers
46. Things You Need
47. How To Clear The Past Mapped Network Drives List
48. You Got This File From
49. Msn Tutorial Ugw Securtiy Information Base
50. The Basics Of Cryptography
51. PGP Encryption For Beginners Learn How PGP Works
52. Cryptography FAQ
53. Cryptography Split Wide Open
54. W2K File System
55. A More Indepth Article About The Basics To Encryption
56. Protecting Your Scripts
57. Breaking Script Encoder
58. Windows 2000 Encrypting File System And Disk Wipe Software
Vulnerability
59. Buffer Overflow Basics
60. Deadly Dos Attack
61. MS Office XP The More Money I Give To Microsoft The More
Vulnerable My Windows Computers Are
62. Dos Attacks Explained
63. Introduction To Denial Of Service
64. Miscellaneous Groups Publications
65. Documents About General Hardening
66. Documents About Unix Hardening
67. Basic Steps To Hardening A Standalone Windows 2000 Installation
68. Setting Up IIS And Securing Streamed Content
69. Articles On How To Securing Hardening BSD
70. Step By Step Guide To Secure Win2k
71. Documents About Windows9x ME Hardening
72. Documents About General Hardening
73. Securing Your Web Pages With Apache
74. Documents About Windows9x ME Hardening
75. Documents About IIS Hardening Securing
76. Basic Steps To Hardening A Standalone Windows 2000 Installation
77. Excellent Analysis Of The ICQ Trojans
78. The ICQ Security Tutorial

B. Computer Security eBooks
---------------------------------
1. Attack Detection And Defense
2. Banking On Phishing
3. Commercial Video Call Software
4. Cyber Adversary Characterization
5. Dealing With The Data
6. Deploying WSUS In The Enterprise
7. Dictionary Of Information Security
8. Enterprise Scanning
9. Examining The ISA Server 2004 Feature Set
10. File Services
11. Filters
12. Forensic Detection And Removal
13. Format String Attacks
14. Four Layers Of IPS Actions
15. Hacking And The Passion For Knowledge
16. Implementing Windows Cluster Services And Network Load Balancing
17. Introducing Network Analysis
18. Introduction To Hardware Hacking
19. Managing Microsoft Exchange
20. Managing Sessions
21. Managing Snort Alerts
22. Medium Business
23. Microsoft Vista - Trusted Platform Module Services
24. Monitoring And Detecting Deviations
25. Monitoring And Intrusion Detection
26. Navigating Corporate Politics
27. Permissions - Shares And Group Policy
28. Plugins And Preprocessors
29. Product Of Fate - The Evolution Of A Hacker
30. Programmer's Ultimate Security Deskref
31. Prologue
32. Quality From The Ground Up
33. Reconnaissance - Social Engineering For Profit
34. Regulatory Compliance
35. RFID Attacks - Securing Communications Using RFID Middleware
36. Scoping The Evaluation
37. Server Cloning And Other Disaster Recovery Techniques
38. Services
39. Spam Filters - Detection And Evasion
40. System Information Criticality
41. Ten Password Pointers - Building Strong Passwords
42. Ten Simple Security Searches That Work
43. The Fight For The Primulus Network - Yaseen Vs Nathan
44. The Physical Design
45. The Suppliers
46. Unseen Planning
47. Virtual Networking
48. Writing Exploits III

--- Thank You ---

Source:
http://www.security.fx-vista.com
 Topic: Re: Specifying address of const overloaded function
Re: Specifying address of const overloaded function [message #17028] Wed, 03 October 2007 14:03
Pete Becker  is currently offline Pete Becker
Messages: 101
Registered: August 2007
Senior Member
On 2007-10-03 07:46:43 -1000, Noah Roberts <user@example.net> said:

> Ok, I have to move on to another problem so I created a little function
> that simply calls the function instead of trying to bind to its
> address. I'm stumped as to how to solve the original problem and I
> would very much like to know how to do this. Google hasn't turned up
> anything of use and I tried looking in the standard for anything
> appropriate but couldn't find it. I'm at a loss. If anyone knows,
> please explain.

To take the address of an overloaded function you use a cast to select
the one you want, or you assign it directly to a variable of the
corresponding type.

--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)
 Topic: Product Manager/ Sr. Product Manager
Product Manager/ Sr. Product Manager [message #16980] Wed, 03 October 2007 08:30
padma  is currently offline padma
Messages: 2
Registered: October 2007
Junior Member
Greetings for the day!!!

Summit HR Worldwide is an award winning human resource services firm
that delivers a full suite of comprehensive HR and Recruitment Process
Outsourcing services to leading companies in United States., Europe
and India. Headquartered in Los Altos, CA, with state-of-the-art
client service centers in Chennai & Pune, India.

Summit HR has highly experienced HR and Recruitment Process
Outsourcing professionals, who understand in depth the service needs
and business dynamics of companies and people.

We are having openings with one of our Gaint Client for the
following:

Postion: Product Manager/ Sr. Product Manager

Yahoo! is looking for a dynamic and talented product manager to join
the team. You will be responsible for driving our next-generation
products and services for Yahoo! And Yahoo! HotJobs. Working closely
with business development, marketing, engineering and GUI, you will
lead the charge to market for products through the entire lifecycle -
from concept to end-of-life. Responsibilities include identifying
customer segments and market opportunities, driving the marketing
objectives and strategies, developing product positioning and
messaging that stands up to competitors. In addition, you will work
closely with business development, marketing, and engineering to
develop and implement the overall product, business and revenue plans,
visions and strategies. Sound interes! ting? If you are our ideal
candidate, you are highly organized and have great communication and
leadership skills and have an excellent track record of developing,
launching, selling and marketing products. You have strong
quantitative skills and are able to evaluate and communicate financial
impacts of potential product features. You think creatively and
possess a strong knowledge of Internet products and services,
including products such as talent management solutions. You are a team
player, and enjoy working in a collaborative environment. A BA/BS is
required and 3+ years of product management experience are required.
An MBA is a plus.

Responsibilities/Requirements:

Drive core product management efforts for enterprise and consumer
targeted software products.

Lead the charge to market for products through the entire lifecycle -
from concept to end-of-life.

Identify customer segments and market opportunities, drive the
marketing objectives and strategies, develop product positioning and
messaging that stands up to competitors, and spokesperson for the
product.

Work closely with business development, marketing, and engineering to
develop and implement the overall product, business and revenue plans,
visions and strategies

Act as a leader in the organization and as a key interface to the rest
of the organization.

3+ years of product management experience with a solid understanding
of product lifecycle management including:

Identifying customer requirements based on actual customer
interaction.

Translate these requirements into product features.

Prioritizing features into releases based on market realities.

Developing product roadmaps and migration strategies.

Pls give us the following details
1. Your updated CV(Word document)
2.Total IT Exp:
3.Relavant IT exp:
4.Current CTC details:
5.Notice Period in your current company:

Kindly revert back for any further clarification. Pls let us know your
interest to proceed further. An immediate response will be highly
appreciated.

NOTE: Please do forward to any of your friends/colleagues, who would
like to explore this opportunity.,

Regards,
Padmaja B
Senior Recruitment Specialist



Summit HR Worldwide
Bangalore Office
No: 74, 1st A Cross, 4th Main
Domlur II Stage
Bangalore - 560 071
Phone - (91) 80 253 543 33/4/5 Extn : 234

Fax (91) 80 253 534 21
Email: padmajab@summithrww.com
www.summithrww.com
 Topic: www.yedil.com best hindi entertainment site
www.yedil.com best hindi entertainment site [message #16893] Tue, 02 October 2007 14:45
diprat7  is currently offline diprat7
Messages: 2
Registered: October 2007
Junior Member
www.yedil.com best hindi entertainment site
with vidoes,photo sharing,photo rating features
its really gona rock you
www.yedil.com
 Topic: a new tool for understanding millions of lines at www.integrech.cn
a new tool for understanding millions of lines at www.integrech.cn [message #16868] Tue, 02 October 2007 12:08
ranstrew  is currently offline ranstrew
Messages: 1
Registered: October 2007
Junior Member
I've found a new C++ tool for understanding very large codes. I'd like
to recommend you a try.
 Topic: want to earn money from web?? 100% gurantee
want to earn money from web?? 100% gurantee [message #16839] Tue, 02 October 2007 07:10
vaishali  is currently offline vaishali
Messages: 1
Registered: October 2007
Junior Member
hello you can also earn so much money by adsense i have earn just
look my site about tips and tricks
http://publisherone.blogspot.com/
 Topic: Updating new e-books!!
Updating new e-books!! [message #16694] Mon, 01 October 2007 05:50
akira  is currently offline akira
Messages: 4
Registered: October 2007
Junior Member
Hello!! once again i'm updating my e-books!!
Check this out!!
http://freebooks2007.blogspot.com

thank youu!! have a nice day! ^^
 Topic: ONLINE CODING EVENT AT INNOVISION@NSIT
ONLINE CODING EVENT AT INNOVISION@NSIT [message #16631] Sun, 30 September 2007 12:43
atulnsit89  is currently offline atulnsit89
Messages: 1
Registered: September 2007
Junior Member
Hello friends!

NSIT is back with its challenging techfest INNOVISION '07. This year
we present to you, a mega coding event with umpteen new dimensions -
"AI CHALLENGE, come win the Battle". This event provides u with an
opportunity to rub your shoulders with great coders n geeks from all
over the globe by showcasing your programming skills.

Description:-

The legendary Harry Potter has stepped into seventh year of his
schooling. Voldemort-the most evil wizard till date, is also rising to
power and torturing the wizarding world. The only last hope of
wizarding community is Harry Potter. Now you have to design a code
which would fight Voldemort on Harry's behalf.

The game starts with Harry and Voldemort pitted against each other.
Anybody can get the first chance. Whoever starts first will be casting
an attacking weapon( spell) on Voldemort and the second player will
get a chance to defend himself. Then it will be second player's turn
to cast an attacking spell and other player will defend himself and
the cycle goes on. Three battles will take place. You will be judged
on basis of three powers, power to throw a weapon (spell power), power
to move on a given arena(agility), power to sustain injuries of spells
casted on you (health). If you emerge as a winner in the first battle,
then only you will be allowed to take part in successive battle.

If your code is able to see through the treacherous strategies adopted
by your opponent and does not succumb to the attack of your opponent,
you will ultimately emerge victorious. The truth will triumph over
improbity.



For more details visit http://aichallenge.innovision07.com or
contact :

Deepank Gupta 9899116377
Naveen Aggarwal 9891890248
Mohit Taneja
Pankhuri Gupta
Atul Bhatia
 Topic: Super
Super [message #16616] Sun, 30 September 2007 09:37
sureshmurali2003  is currently offline sureshmurali2003
Messages: 1
Registered: September 2007
Junior Member
Super Question
 Topic: Fashion Footwear Industrial Co.,Ltd(Fujian,CHINA) www.fashion-sky.com
Fashion Footwear Industrial Co.,Ltd(Fujian,CHINA) www.fashion-sky.com [message #16605] Sun, 30 September 2007 06:46
fashion-sky  is currently offline fashion-sky
Messages: 2
Registered: August 2007
Junior Member
Dear my friend
It is our pleasure to meet you here.
we are wholesaler sport shoes,clothing,electrons in Fujian of China.
our website: http://www.fashion-sky.com
We are professional and honest wholesaler of all kinds of brand
sneaks and apparel.the products
our company supply are as follows:
1).Nike Jordans
Jordan 1 jordan 1.5 jordan 2 jordan 3 jordan 3.5 jordan 4 jordan 5
jordan 5.5 jordan 6 jordan 6.5 jordan 7 jordan 8 jordan 9 jordan 9.5
jordan 10 jordan 11 jordan 12 jordan 13 jordan 13.5 jordan 14 jordan
15 jordan 16 jordan 17 jordan 18 jordan 18.5 jordan 19 jordan 20
jordan 21 jordan 21.5 jordan 22 jordan King jordan Dub Zero Jordan 23
Jordan 7.5
2).Air Force One Air Force one (low) Air Force one (High) Air Force
one (Mid) Air Force one (clear) Air Force One 25 year
3).SHOX Shox R3 Shox R4 Shox R5 Shox TL1 Shox TL2 Shox TL3 Shox NZ
Shox OZ Shox Turbo Show GO Shox CL Shox Coqnescenti Shox Energia Shox
Explodine Shox Monster Shox Rhythmic Shox Warrior
4).Bape Shoes Bape Bape (transparent)
5).Air max AirMax 90 AirMax 95 AirMax 97 AirMax 2003 AirMax 2004
AirMax 2005 Air Max 2006 AirMax 180 AirMax LTD AirMax TN AirMax solas
AirMax 87 AirMax Rift
6).Puma Puma Rpt2 Puma SK6 Puma Jayfi Puma Cir Puma Speed Puma Repli
Puma Future Cat Puma Mostro Puma Lifestyle
7).Dunk SB Dunk High Dunk Low
8).Timberland Timberland High Timberland Low
9).Adidas Adidas 35 Adicolor Country city sense Adidas NBA
11).Prada & Gucci Prada Gucci
12).Footballer Shoes Footballer
13).Locaste
14).converse & Reebok converse Reebok
15).D&G shoes
16).Dsquared2 shoes
17).James shoes
18).Nike King
9).Children shoes Jordan Shox
20).Women shoes Women Jordans Women Shox R3 Women Shox R4 Women AirMax
95&97 Women AirMax 03&06 Women Dunk Women Shox NZ Women AF1
21).sandal & baboosh Nike Puma Gucci Prada
CLOTHES 1).Bape 2).ED Hardy 3).BBC 4).CLH 5).LRG 6).Artful Dodger
Hoodies 7).GINO GREEN GLOBAL 8).10 Deep 9).A&F Coat 11).Jersey NBA
Jersey Football Jersey 12).Juicy Bikini 13).Adidas Coat 14).F1 Coat
15).D&G Coat 16).Superman Coat 17).NBA Coat
JEAN 1).E&D Jeans 2).BBC Jeans 3).BAPE Jeans 4).D&G Jeans 5).EVSIU
Jeans 6).Red monkey 7).COOGI Jeans
T-shirt 1).POLO 2007 polo(women) 2007 POLO IIII(Men) POLO (stripe)
polo (small )
2).Lacoste Lacoste (LONG) Lacoste (SHORT) 3).Name Brand shirt D&G
Shirt Giorgio Armani TN Shirt 4).BBC T-shirt 5).LRG & gina green
glalal 6).Triumvir 7).ED handy 8).Evsiu 9).R.M.B 10).CLOT
Burse & Handbag 1).LV Bag 2).Gucci Bag 3).Dior Bag 4).Chanel Bag
5).Fendi Bag 6).Coach Bag 7).Burberrys Bag 8).Prada Bag 9).Man Leisure
Bag 11).D&G bag 12).nike bag 13).Wallet 14).Suitcase
Electronics 1).Vertu Mobile 2).New iphone Mobile 3).Nokia Mobile
4).moto Mobile 5).PSP Game & memory card 6).Sony Mobile 7).Samsung
Mobile 8).Ipod nano 9).Sony PS3 10).Laptops IBM laptops DELL laptops
Sony laptops ASUS laptops
CAP 1).ED Hardy Cap 2).New Bape & NY Cap 3).RMC Cap 4).New era NBA
5).F1 6).Chanel 7).D&G 8).gucci 9).LV 10).Prada 11).PUMA 12).wool
WATCH 1).Rolex 2).Omega 3).Cartier 4).Chanel 5).Piaget 6).Breitling
7).Bvlgari 8).Corum
Sunglasses 1).Gucci Sunglasses 2).D&G Sunglasses 3).Dior Sunglasses
4).LV Sunglasses 5).Chanel Sunglasses 6).Prada Sunglasses 7).Versace
Sunglasses 8).Giorgio Armani
Strap 1).Bape Strap 2).D&G Strap 3).Gucci Strap 4).LV Strap 5).Scarf
Other 1).Lighter

size chart
Men Size:
US: 7 8 8.5 9 9.5 10 10.5 11 11.5 12 13 14 15
UK: 6 7 7.5 8 8.5 9 9.5 10 10.5 11 12 13 14
EUR: 40 41 42 42.5 43 44 44.5 45 45.5 46 47.5 48 49
Women Size:
US: 5 5.5 6 6.5 7 7.5 8 8.5
UK: 2.5 3 3.5 4 4.5 5 5.5 6
EUR: 35.5 36 36.5 37.5 38 38.5 39 40

Kid's
US: 1 2 3 4 5 6 7 7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5 13 13.5
UK: 13 1 2 3 4 5 6 6.5 7 7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5
EUR:17 18 19 20 21 22 23 24 24.5 25 25.5 26 26.5 27 27.5 28 29 30 30.5
31

Clothing Size:
S M L XL XXL XXXL XXXXL XXXXXL

7.because the space of the website is limited,we can also supply many
other products which be not showed out in our site. if you have the
photos of the products you need , we are pleasure to supply for your
orders.
And our company can supply for our customers ,as follow:
1. top quality.all our products have top quality.
2. most rational price. we offer the most competitive price to you to
open your market. So today most of our products have sold well in the
America, Europe, Middle East, Southeast Asia etc..
3. safe and fast shipment. As different country you are in, we will
deliver the products to you by different ways and pledge to arrive to
your address 100%.and we will send the products to you within 24h
after we get your payment.
4.many products in stock. We have many products in stock and kinds of
size you need , also include kid's.
5.our credit. If the products can be not delivered to your address as
our reason, we will refund the money you paid.
Hope sincerely to have glad and long term business relationship with
you.
If you are interested in our products and have any problem, welcome
to
contact us.
Please trust us , we will be your best choice !!!
Website : http://www.fashion-sky.com
MSN and E-mail: fashion-sky@hotmail.com
Yahoo ID:mallinchina@yahoo.com.cn
Michael
Fashion Footwear Industrial Co.,Ltd.(Fujian,CHINA)
 Topic: Fractal program code taken down
Fractal program code taken down [message #16592] Sun, 30 September 2007 03:03
mike3  is currently offline mike3
Messages: 56
Registered: August 2007
Member
Hi.

Just wanted to inform you that the code for the C++ fractal program
has been taken down, the one that I had been debugging and was
discussed in the threads "Bug in my C++ program seems really strange"
and "Frustrating bug in C++ program", which now seem dead (hence why I
didn't post this in either of them, I didn't know if it would get
seen.). I wanted to thank you for your help, and I hope I can make
this program better. Besides, the code I had up is now way out of
date.

Just thought I'd let you know.
 Topic: All Quick Test Professional (QTP) FAQs
All Quick Test Professional (QTP) FAQs [message #16586] Sun, 30 September 2007 01:40
netguru7575  is currently offline netguru7575
Messages: 2
Registered: September 2007
Junior Member
All Quick Test Professional (QTP) FAQs



QuickTest Professional (QTP) Questions and Answers Part # 1

http://softwareqatestings.com/content/view/188/38/



QuickTest Professional (QTP) Questions and Answers Part # 2

http://softwareqatestings.com/content/view/189/38/



QuickTest Professional (QTP) Questions and Answers Part # 3

http://softwareqatestings.com/content/view/190/38/



QuickTest Professional (QTP) Questions and Answers Part # 4

http://softwareqatestings.com/content/view/191/38/



QuickTest Professional (QTP) Questions and Answers Part # 5

http://softwareqatestings.com/content/view/192/38/
 Topic: syntax for mem_fun needed
syntax for mem_fun needed [message #16578] Sat, 29 September 2007 22:44
subramanian100in  is currently offline subramanian100in
Messages: 29
Registered: August 2007
Junior Member
Suppose I have

class WordAndLineNumbers
{
public:
void print( );

// other member functions
private:
// data members
};

vector<WordAndLineNumbers> v;

for_each( v.begin( ), v.end( ), mem_fun(&WordAndLineNumbers::print));

The above usage of mem_fun gives compilation error.

Kindly correct me and give the right syntax for mem_fun.

Thanks
V.Subramanian
 Topic: loan website has been uploaded
loan website has been uploaded [message #16553] Sat, 29 September 2007 16:13
louis  is currently offline louis
Messages: 1
Registered: September 2007
Junior Member
Hi, the website url is www.loans-website.com
thanks
 Topic: c++ tips
c++ tips [message #16549] Sat, 29 September 2007 14:41
lawry_jim  is currently offline lawry_jim
Messages: 1
Registered: September 2007
Junior Member
http://computer-programmings.blogspot.com
 Topic: Thanks, the problem has been solved.
Thanks, the problem has been solved. [message #16502] Sat, 29 September 2007 09:14
Colonel  is currently offline Colonel
Messages: 4
Registered: September 2007
Junior Member
No Message Body
 Topic: A Problem about istream ">>" overloading
A Problem about istream ">>" overloading [message #16499] Sat, 29 September 2007 08:43
Colonel  is currently offline Colonel
Messages: 4
Registered: September 2007
Junior Member
It seems that the problems have something to do with the overloading of
istream operator ">>", but I just can't find the exact problem.

// the declaration
friend std::istream & operator>> (std::istream & in, const Complex & a);

// the methods correspond to the friend
std::istream & operator>> (std::istream & in, const Complex & a)
{
std::cout << "real: ";
in >> a.real;
std::cout << "imaginary: ";
in >> a.imaginary;
return in;
}

When complex0.cpp was compiled, such problem appeared:

Compiling...
complex0.cpp
D:\C++\complex\complex0.cpp(45) : error C2679: binary '>>' : no operator
defined which takes a right-hand operand of type 'const double' (or there is
no acceptable conversion)
D:\C++\complex\complex0.cpp(47) : error C2679: binary '>>' : no operator
defined which takes a right-hand operand of type 'const double' (or there is
no acceptable conversion)
Error executing cl.exe.

complex0.obj - 2 error(s), 0 warning(s)

IDE: VC++ 6.0
Can anybody point out the errors with the ">>" overloading?

The overall code is as follows:

// complex0.h -- definition of class Complex
// used for complex operation
#ifndef COMPLEX0_H_
#define COMPLEX0_H_
#include <iostream>

class Complex
{
private:
double real;
double imaginary;
public:
Complex (); // default constructor
Complex (double r, double i);
~Complex (); // destructor

Complex operator- (const Complex & a) const;
Complex operator- () const;
Complex operator~ () const;

friend std::istream & operator>> (std::istream & in, const Complex &
a);
friend Complex operator+ (const Complex & a, const Complex & b);
friend Complex operator* (const Complex & a, const Complex & b);
friend std::ostream & operator<< (std::ostream & os, const Complex &
a);
};
#endif

// complex0.cpp -- methods for class Complex
// compiled with complex0.h
#include "complex0.h" // constructors
Complex::Complex ()
{
real = imaginary = 0.0;
}
Complex::Complex (double r, double i)
{
real = r;
imaginary = i;
}
Complex::~Complex () // destructors
{
}

// operators overloading

Complex Complex::operator - (const Complex & a) const // substract
Complex a
{
return Complex (real - a.real, imaginary - a.imaginary);
}

Complex Complex::operator - () const // reverse sign
of Complex
{
return Complex (-real, -imaginary);
}
Complex Complex::operator ~ () const // conjugate
sign of Complex
{
return Complex (real, -imaginary);
}

// friends methods
std::istream & operator>> (std::istream & in, const Complex & a)// input
Complex
{
std::cout << "real: ";
in >> a.real;
std::cout << "imaginary: ";
in >> a.imaginary;
return in;
}
Complex operator+ (const Complex & a, const Complex & b) // plus two
Complex
{
return Complex (a.real + b.real , a.imaginary + b.imaginary);
}

Complex operator* (const Complex & a, const Complex & b) // mutiple
Complex a and b
{
return Complex (a.real * b.real , a.imaginary * b.imaginary);
}

std::ostream & operator<< (std::ostream & os, const Complex & a) //
display Complex
{
os << "(" << a.real << ", " << a.imaginary << ")";
return os;
}
 Topic: Re: static variables and memory cleanup
Re: static variables and memory cleanup [message #16379] Fri, 28 September 2007 07:34
chrisval  is currently offline chrisval
Messages: 47
Registered: September 2007
Member
On Sep 28, 8:46 pm, Anonymous <no.re...@here.com> wrote:
> I want to carry out initialisation ONCE for use by a class.
>
> I am using a dummy static variable dummy to do this. However, during my
> initialisation code, I am allocating memory etc for various variables
> used by the class.
>
> Although I am not explicitly deallocating memory, alloc'd memory will be
> returned to the heap when the app terminates - but I am not happy with
> this. I am looking for a way to explicitly deallocate memory when there
> are no more instances of the class that requires the new'd variables.
>
> I can think of several ways of doing this - all of which seem a bit of a
> hack (or maybe even wrong?). i'd like some comments on my ideas, and
> pointers if any of my proposed solns are wrong or have side effects - or
> preferably, a better way of solving this problem.
>
> 1). Use a class variable for reference counting and explicitly
> "uninitialize" when last instance is dying
>
> 2). Wrap up all of the variables to be new'd during the initialisation
> process, into a data type (struct or class), make a class variable of
> that type, initialize it once, and deallocate in the new data types
> destructor
>
> Any more ideas ?

struct foo {
~foo() { std::cout << "Destructed\n"; }
};

int main()
{
foo* f = new foo();
f->~foo();

std::cin.get();
return 0;
}

Cheers,
Chris Val
 Topic: Re: Replacing a void* in C++
Re: Replacing a void* in C++ [message #16343] Thu, 27 September 2007 20:40
alfps  is currently offline alfps
Messages: 315
Registered: July 2007
Senior Member
* Jim Langston:
> I am using some code that I got that uses a form a message dispatching where
> the data is passed via a void*. I don't like void*'s so am experimenting
> with a different way to do them in C++. I don't use boost, and this is what
> I've come up with so far, but it seems fairly ugly.
>
> In actual use the final handler that handles the data would know what type
> the data should be based on other paramaters in the function call, so this
> is just proof of concept.
>
> Has anyone a better idea? I tend to like MessageHandler2 using a reference
> instead of a pointer.
>
> #include <iostream>
> #include <string>
>
> struct AIMsg
> {
> public:
> AIMsg( const std::string& MsgType ): MsgType( MsgType ) {}
> std::string MsgType;
> virtual ~AIMsg() {}
> };
>
> template <class T> class Message: public AIMsg
> {
> public:
> Message(): AIMsg( typeid(T).name() ) {}
> T Value;
> };
>
> void MessageHandler( AIMsg* Msg )
> {
> if ( Msg->MsgType == typeid(float).name() )
> std::cout << dynamic_cast<Message<float>*>( Msg )->Value << "\n";
> else if ( Msg->MsgType == typeid(int).name() )
> std::cout << dynamic_cast<Message<int>*>( Msg )->Value << "\n";
> }
>
> void MessageHandler2( AIMsg& Msg )
> {
> if ( Msg.MsgType == typeid(float).name() )
> std::cout << dynamic_cast<Message<float>* >( &Msg )->Value << "\n";
> if ( Msg.MsgType == typeid(int).name() )
> std::cout << dynamic_cast<Message<int>* >( &Msg )->Value << "\n";
> }
>
> int main()
> {
> Message<float> Bar;
> Bar.Value = 54321.123f;
> MessageHandler( &Bar );
> MessageHandler2( Bar );
>
> Message<int> Bar2;
> Bar2.Value = 123;
> MessageHandler( &Bar2 );
> MessageHandler2( Bar2 );
>
> return 0;
> }

Check out the visitor pattern.

Cheers, & hth.,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 Topic: Automatic type conversion to complex<T>?
Automatic type conversion to complex<T>? [message #16287] Thu, 27 September 2007 10:16
MWimmer  is currently offline MWimmer
Messages: 1
Registered: September 2007
Junior Member
Dear readers of this discussion group,

I have a problem concerning user defined type conversion and
functions, that are only defined as templates. Consider the following
code example:

------------------------------------------------------------ -----------

#include <complex>

using namespace std;

template<typename T>
class A {
public:
operator T() const
{
return T();
}
};

complex<double> f(const complex<double> &_a)
{
}

template<typename T>
complex<T> g(const complex<T> &_a)
{
}

main()
{
A<complex<double> > a;

complex<double> b=f(a); //OK
complex<double> c=g(a); //error: no matching function for call
// to 'g(A<std::complex<double> >&)'
}

-------------------------------------------

In this example, the compiler is not able to call the type conversion
function of class A int he case of function g, as it is only defined
as a template.

Unfortunately the code snippet mimics a real problem that I have: a
template class, that can be useful for double and complex<double> and
that should have an automatic type conversion to the respective type.
Now all the useful functions for complex<T> are defined as is function
g in my example, e.g. I cannot call A<complex<double> > a; sin(a) ,
wehreas A<double> a2; sin(a2) is OK.

Is there a way to circumvent this problem without writing things like
sin(complex<double>(a)) ?

Best regards,

Mike Wimmer
 Topic: Check it out:If you want to buy tickets,you can check this page,very easy and fast:
Check it out:If you want to buy tickets,you can check this page,very easy and fast: [message #16169] Wed, 26 September 2007 21:28
braz  is currently offline braz
Messages: 1
Registered: September 2007
Junior Member
Check it out:If you want to buy tickets,you can check this page,very
easy and fast:
http://groups.google.com/group/all-good-things/web/want-to-b uy-tickets-online-come-here
 Topic: Re: cpptcl on windows - someone got a working example dll sourcecodefor me? [crosspost comp.lang.tcl
Re: cpptcl on windows - someone got a working example dll sourcecodefor me? [crosspost comp.lang.tcl [message #16116] Wed, 26 September 2007 14:31
red floyd  is currently offline red floyd
Messages: 96
Registered: August 2007
Member
Michael Reichenbach wrote:
> Unfortunately cpptcl is not officially supported on windows, just on
> linux and unix. However, I am fiddling with it since a while and I did
> read from some people that it`s running on windows with some tweaks anyway.
>
> If someone want to help me, then post here working hello world example
> dll sourcecode for windows.

That's nice. What was your C++ language question?

F/u to c.l.tcl only
 Topic: Travel USA
Travel USA [message #16115] Wed, 26 September 2007 13:57
travelingwebs  is currently offline travelingwebs
Messages: 3
Registered: September 2007
Junior Member
http://world-traveling-destinations.blogspot.com/
 Topic: Guitars for 0$ !!!!!
Guitars for 0$ !!!!! [message #16113] Wed, 26 September 2007 13:52
nutsbreaker2  is currently offline nutsbreaker2
Messages: 2
Registered: September 2007
Junior Member
http://free-guitars.blogspot.com/
 Topic: combinations of substrings
combinations of substrings [message #16047] Wed, 26 September 2007 06:44
j_depp_99  is currently offline j_depp_99
Messages: 3
Registered: September 2007
Junior Member
The requirements for my program is to input a set of substrings into a
vector and produce permutations/ combinations of the substrings. The
resulting strings must be an integer multiple of
the length of the inputted substrings. My program only produces
permutations of each
substring with no replicates. i.e I input 'ab cd ef' into a vector
and
6 being the length of the results. The output I'm supposed to get
should be: " ababab ababcd ababef abcdab" ...etc.
My output is : " abcdef abefcd cdabef cdefab efabcd efcdab " . The
next_combination function is not part of the STL which I thought I
could use. Is there anyway to adjust the next_permutation command to
include repititions?? I though about using nested for loops to print
out each vector element; this works but is there a way using STL
functions.This is the repitition code portion:

<code/>

copy(subString.begin(),subString.end(),ostream_iterator<string >(cout,""));
cout << endl;
while (next_permutation(subString.begin(), subString.end()))
{



copy(subString.begin(),subString.end(),ostream_iterator<string >(cout,""));
cout << endl;
}
</code>

Please, does anyone have a suggestion.
 Topic: lovely modey
lovely modey [message #16040] Wed, 26 September 2007 05:47
modeyster  is currently offline modeyster
Messages: 2
Registered: September 2007
Junior Member
2uTmx+Qgx+HjzOPm2skgx+Hj5t7aIMfhzcfh7SDl5iA6Cmh0dHA6Ly9ncm91 cHMuZ29vZ2xlLmNv
bS9ncm91cC9sb3ZseS1tb2RleQrH4cjR7c8gx+HF4d/K0ebk7SDl5iA6Cmxv dmx5LW1vZGV5QGdv
b2dsZWdyb3Vwcy5jb20KCgrH4ebV3SDH4ePKzNEgx+HF4d/K0ebk7SAszcgs INTa0Swgx8/ILCDV
5tEgLN3kx+Tt5Cwg5e3dx8Eg5uXI7Cwgx9vH5OwsCsfd4cfjLCDH4drHyCAs yNHH48wg0+bdyiwg
zdPH4yDHyOYgx+HdyubNLCDM5sfhLCDkx+TT7CDj5t7aINrRyO0g7c3K5u0K 2uHsIMfd4cfjIMfb
x+TsINTa0SDHz8gg3uHJIMfPyCDdz+3mIN/h7cgg0+3H0+Ugx+Hax8gg0+3h 3yDR5s8g4+TKz+wK
x9Phx+PsIN/KyCDH0+HH4+3lIN3hx9THyiDNyCDR5uPH5NPt5SDmyNHH48wg 5uPk5trHygoKx+Hj
yszRIMfhxeHfytHm5O0gLM3ILCDU2tEsIMfPyCwg1ebRICzd5Mfk7eQsIOXt 3cfBIOblyOwsIMfb
x+TsLArH3eHH4ywgx+Hax8ggLMjRx+PMINPm3cosIM3Tx+Mgx8jmIMfh3crm zSwgzObH4Swg5Mfk
0+wg4+be2iDa0cjtIO3NyubtCtrh7CDH3eHH4yDH28fk7CDU2tEgx8/IIN7h ySDHz8gg3c/t5iDf
4e3IINPtx9PlIMfh2sfIINPt4d8g0ebPIOPkys/sCsfT4cfj7CDfysggx9Ph x+Pt5SDd4cfUx8og
zcgg0ebjx+TT7eUg5sjRx+PMIObj5Obax8oK
 Topic: Re: ambiguous constructor? Is it right?
Re: ambiguous constructor? Is it right? [message #16025] Wed, 26 September 2007 04:29
James Kanze  is currently offline James Kanze
Messages: 598
Registered: July 2007
Senior Member
On Sep 25, 3:58 pm, Barry <dhb2...@gmail.com> wrote:
> Zeppe wrote:
> > Barry wrote:
> >> Zeppe wrote:
> >>> I have the following problem, that I'll try to explain with a very
> >>> minimal example:

> >>> class A
> >>> {
> >>> };

> >>> class B
> >>> {
> >>> public:
> >>> B() { }
> >>> B(const A&) { }
> >>> B(const B&) { }
> >>> };

> >>> class C
> >>> {
> >>> public:
> >>> operator A() const { return A(); }
> >>> operator B() const { return B(); }
> >>> };

> >>> int main(){
> >>> const C& c = C();
> >>> B b = static_cast<B>(c);
> >>> return 0;
> >>> }

> >>> Basically, I would expect that casting a const C& to B
> >>> would call the operator B() of C and that the construction
> >>> C -> B (through the copy

> >> what makes "operator B()" have higher priority?

> > because I specified a method for the conversion of C into B,
> > in C. I would expect it to be called in the static cast. The
> > other way (C->A->B) implies one level of implicit
> > conversion, doesn't it?

According to §5.2.9/3 (static_cast):

Otherwise, an expression e can be explicitly converted
to a type T using a static_cast of the form
static_cast<T>(e) if the declaration T t(e); is
well-formed, for some invented temporary variable t
(8.5). The effect of such an explicit conversion is the
same as performing the declaration and initialization
and then using the temporary variable as the result of
the conversion. [...]

So overload resolution treats the expression as if it were:
B untamedTemp( c ) ;
(followed by B b( untamedTemp ) ;). B has two constructors, one
which takes a const A&, and one which takes a const B&. C can
convert (equally well) to one or the other.

> >>> constructor) would be preferred to C -> A -> B. In Visual C++ 9 it
> >>> actually does so, but gcc complains that there is an ambiguity. Who's
> >>> right (I guess Visual c++) and, in case, how could I nicely work
> >>> around the problem?

> >> gcc is right,
> >> You can compile using VC with /Za option, which disables the
> >> extension, and produces the compile error.
> >> I know ya gonna complain. :-)

> > No, I'm not, just a little bit disappointed :) And what about a
> > workaround? Is the only way to solve this to clean up one of the two
> > conversion ways?

> I think it is, since it violates the standard.

The "work-around" is to not define so many implicit conversions.
Generally, too many implicit conversions will lead to
ambiguities. And even if it doesn't, it leads to code which is
hard to understand and to maintain.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
 Topic: Who can hack NP?
Who can hack NP? [message #16002] Wed, 26 September 2007 01:05
pass86  is currently offline pass86
Messages: 3
Registered: September 2007
Junior Member
http://eng.nprotect.com/nprotect_gameguard.htm

CAN YOU?
mail me:pass86@gmail.com
 Topic: rel_ops and namespace
rel_ops and namespace [message #15999] Wed, 26 September 2007 00:40
PengYu.UT  is currently offline PengYu.UT
Messages: 4
Registered: September 2007
Junior Member
#include <iostream>
Hi,

I don't understand why "using" in namespace A is not working. I would
assume it is more reasonable to use Koenig lookup (http://
en.wikipedia.org/wiki/Argument_dependent_name_lookup).

For B is defined in namespace A, shall it be OK to using "rel_ops" in
A instead of the global namespace?

Thanks,
Peng

#include <utility>

namespace A {

// using namespace std::rel_ops; // not working
class B {
public:
B(int b):_b(b) { }
bool operator==(const B& b) const {
return _b == b._b;
}
private:
int _b;
};
}

using namespace std::rel_ops; // works

int main() {
A::B b1(10);
A::B b2(10);
std::cout << (b1 == b2) << std::endl;
std::cout << (b1 != b2) << std::endl;
}
 Topic: Survey about Visual Annotations for Software Models
Survey about Visual Annotations for Software Models [message #15948] Tue, 25 September 2007 14:28
Joerg Rech  is currently offline Joerg Rech
Messages: 2
Registered: September 2007
Junior Member
Dear software practitioner,
During software development, we often experience problems regarding
the compilability, quality (e.g., maintainability), or conformance of
our software. With a model-driven approach such as MDSD (Model-Driven
Software Development), we might work on a higher abstraction level
( i.e., software models), but we (will) still experience similar
problems during the development of our software models.

Therefore, in the context of the VIDE project, we are conducting a
survey about how software modeling environments should annotate
software models in order to provide additional information about these
problems. Our goal is to get feedback from you on several annotation
concepts and your opinion about other characteristics of defect
annotations.

Hence, we would like to invite you and members of your organization to
participate in the survey at http://www.online-poll.de/uc/vide-ma/.
Answering the survey should take about 20-30 minutes. The survey will
close on 1 Oct