alt.comp.lang.learn.c-c++
  Home FAQ Contact Sign in
alt.comp.lang.learn.c-c++ only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
alt.comp.lang.learn.c-c++ Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  tha.creed@live.com is my email         


Author: brian1775
Date: Jan 31, 2008 13:39

tha.creed@live.com is my email
---
Posted with http://www.nnseek.com/


no comments
  Re: Deriving from std::exception         


Author: Daniel T.
Date: Jan 26, 2007 12:24

af300wsm@gmail.com wrote:
> Since I don't have good documentation on the STL, I'm not sure how to
> use the exception class.
no comments
  Re: Some confusion about datatypes and classes         


Author: Francis Glassborow
Date: Jan 19, 2007 04:01

In article , James Dennett
acm.org> writes
>You could just use long, and it would work -- or do you have
>some specific requirements on range checking or wraparound?
>If so, using a class and operator overloading would be the
>way to go.
It is actually quite hard to produce a class type that behaves like an
integer type but has some added constraint unless one forgoes implicit
outward conversions (i.e. do not provide any conversion operators)

--
Francis Glassborow ACCU
Author of 'You Can Do It!' and "You Can Program in C++"
see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects
1 Comment
  Re: Testing         


Author: hit_pc
Date: Jan 18, 2007 20:50

this is alse a test~~
On Fri, 19 Jan 2007 08:47:32 +0800, Alan L Brown optusnet.com.au>> wrote:
> James Martin balthazar.headbusiness.com> wrote in
> news:pan.2007.01.18.19.41.27.134500@balthazar.headbusiness.com:
>
>> Sorry, this isn't real.
>>
>
> Try the newsgroup test or alt.test for testing :)
>
> Alan

--
Hello,World!
----legolaskiss.
no comments
  Re: Code being skipped         


Author: Mike Wahler
Date: Jan 18, 2007 09:30

"Bill" allstate.com> wrote in message
news:1169052187.659170.262530@l53g2000cwa.googlegroups.com...
> Thanks everyone for the help. I tried using fgets instead of getchar
> and now the program executes once and exits immediately. I have no
> idea what's going on here.

Please don't top-post.

Show us the new code, and we'll try
to point out where things went wrong.

-Mike
no comments
  Issue of threads         


Author: Frankie
Date: Jan 18, 2007 01:46

Hi guys,

Is there any thread implementation of C++ code as it is explicitly in
Java?
Any book or reference if you guys know it...
no comments
  Re: Is there any way to get the size of any data type or ADT without using sizeof         


Author: Frankie
Date: Jan 18, 2007 01:43

> The way to get the size of something is to use sizeof. There are
> complex and unreliable ways to get sizes of certain things without
> using the sizeof operator, but there's no good reason not to use
> sizeof.

So Keith, what are the complex and unreliable ways if there are any?
Just for the kicks...
no comments
  Re: Changing a const value         


Author: Frankie
Date: Jan 18, 2007 01:34

Nah, nothing as such, it's just the odd question that pops during the
odd headache.

How do you guys get to know all this info? Is it just through
experience or tinkering with something? It couldn't be a book for sure.
1 Comment
  Re: Is there any way to get the size of any data type or ADT without using sizeof         


Author: Frankie
Date: Jan 18, 2007 01:20

Hi James,

Thanks for your prompt reply. Actually I wanted to know how it works.

How does sizeof() actually find out the size of?"
no comments
  Re: Changing a const value         


Author: James Dennett
Date: Jan 17, 2007 21:19

Keith Thompson wrote:
> "Frankie" gmail.com> writes:
>> How can we change an already const defined data type without using the
>> keyword mutable?
>>
>> eg
>>
>> {
>> const int x = 6;
>> x = 7; // will give an error.
>> }
>>
>> So is there any other way to do it?
>
> If you want to be able to change it, don't declare it const.
>
> Something like this:
>
> *(int*)x = 7;
> ...
Show full article (0.93Kb)
no comments
 
1 2 3 4 5 6 7 8 9