On 8/19/2010 6:17 AM, Rob Richardson wrote:
>
> Surely there is some way you could tell us about the run-time error.  If
> you can see that an error happened, you must be able to tell use what
> you are seeing.
>
> Could your problem be related to misspelling the word "pause"?
>
> RobR
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of WLJiang WLJiang
> Sent: Wednesday, August 18, 2010 2:35 AM
> To: [email protected]
> Subject: Re: [c-prog] vector<bool>  does not working?
>
> #include<vector>
> #include<iostream>
>
> using namespace std;
>
> int main(void)
> {
> typedef vector<bool>  BVEC;
> BVEC bv;
> bv.push_back(false);
> bool b = bv.at(0);
> cout<<  b;
> system("PUASE");
> return 0;
> }
>
> //vector<bool>   is working...

What compiler?

-- 
Thomas Hruska
CubicleSoft President

Barebones CMS is a high-performance, open source content management 
system for web developers operating in a team environment.

An open source CubicleSoft initiative.
Your choice of a MIT or LGPL license.

http://barebonescms.com/

Reply via email to