comp.lang.c++
  Home FAQ Contact Sign in
comp.lang.c++ only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.c++ Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to use map containers whith odjects of user classes         


Author: Hatzigiannakis Nikos
Date: Feb 19, 2008 23:09

I want to use a map container with objects of the following class
rectangle. Each object will be accosiated with a key of type string:.

#include
#include
#include

using namespace std;

class rectangle
{
float side_a;
float side_b;
public:
float area() {return side_a * side_b;}
rectangle(float a, float b) {side_a=a; side_b=b;}
};

map mymap;

main()
{
rectangle rec1(10,20);
Show full article (0.85Kb)
9 Comments
  Implement Connection point crash when debug it.         


Author: akshayimpetus
Date: Feb 19, 2008 22:29

Implement Connection point crash when debug it.
2 Comments
  Microsoft Visual C++ 2008 compiler bug on access specifier - left alone for long time         


Author: Amal
Date: Feb 19, 2008 22:05

Hey,

I felt it hard to see such an issue in Microsoft Visual C++ 2008
kept unfixed. I reported an issue that the private virtual base
destructor is being accessed by most derived class for Microsoft
Visual C++ 2005 & 2003. And this issue still persist on Microsoft
Visual C++ 2008. It is hard to see this being a developer who uses
Microsoft Compiler.

The problem is detailed at blog entry
http://amalp.blogspot.com/2007/07/microsoft-vc-2005-compiler-bug-1.html

I will also explain the problem out here.

In C++ there is no standard way to make a class non derivable.
Instead we uses a trick. The trick consist of 2 major concepts. One is
the virtual base class constructor and destructor will be called by
the most derived class. Most derived class is the class which is
instantiated. This is how we fix the diamond problem. Then the second
one is a friend class can access private members of whom it is friend.
Mixing up both of these together we can make a class non derivable.
The same access goes to constructor and destructor.
Show full article (2.52Kb)
1 Comment
  Online Part Time Work...!         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:44

Online Part Time Work...!

Huge Earning Opportunity.,,!

No Registration Fees.....Guaranteed Payments.

Join Now.. Start your Earning with in ..4-5.. Minutes

Register FREE;;;;
--> http://moneycosmos.com/?r=337130

(....Free Offer is Valid Only For First 250 members who Registered...)
no comments
  Earn $ 50000 PM....Earn While Searching Any Things!!!         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:44

Earn $ 50000 PM....Earn While Searching Any Things!!!

* Do Work only Search... As We Searches Normally in Google!, Yahoo!...
Search Engines....

Join here Free Now .. Start Searching Any Topics and Look Your
Earnings Growth...!

Register here... http://www.slashmysearch.com/earn/id/83527

Free Offer Valid for First 500 members...

Glab this opportunity Right Now!!
no comments
  Great Internet Earning Opportunity.,,Earn $ 10000 Per Month...!         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:43

Great Internet Earning Opportunity.,,Earn $ 10000 Per Month...!

No Registration Fees.

Guaranteed Payments...

JOIN IT NOW.!
Its Absolutely FREE!!

Register here Rigth Now :- http://www.ongoingprofit.com/idevaffiliate/index.php?ref=2691
no comments
  Great Internet Earning Opportunity.,,Earn $ 10000 Per Month...!         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:43

Great Internet Earning Opportunity.,,Earn $ 10000 Per Month...!

No Registration Fees.

Guaranteed Payments...

JOIN IT NOW.!
Its Absolutely FREE!!

Register here Rigth Now :- http://www.ongoingprofit.com/idevaffiliate/index.php?ref=2691
no comments
  Required urgently Home typist for genuine Indian Home Based job work company.         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:43

Required urgently Home typist for genuine Indian Home Based job work
company.

Description : Genuine Indian Home Based job work company urgetnly
requires Home typist to work part time from home. You can apply at :

http://www.homepagepublicity.com/earn4free.asp?referer=32000
no comments
  Call Any Phone FREE...!         


Author: * Its my Pleasure *
Date: Feb 19, 2008 21:42

Call Any Phone FREE...!

Send SMS FREE...!

Call Anywhere in the World FREE...!

Registration is Also FREE...!!

Register here...http://offr.biz/HLGB7337130BVGMJPF

(....Free Offer is Valid Only For First 250 members who Registered...)
no comments
  Help with sockets         


Author: CAwehking
Date: Feb 19, 2008 18:41

Hello, I'm having some troubles with sockets in C++!
1. Do i really need VC++? or could i just use Dev-C++?
2. How do I link winsock to my project?
3. I've never actually made a socket before! I'm trying to find
something that will actually work! without changing to another
programming language!

So could someone help me? I just need a very simple server and client
without to much of a hassle or frustration! I don't need anything big
like couple Gs. Only a couple megabytes for a file. I only want a
something that one person puts a file on, and another person downloads
it. Though i'm not sure if i would like multi-thread?! Could someone
help me? I'm really having troubles with sockets.
PLEASE reply soon! =)
11 Comments
1 2 3