Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


C + + : I am surprised here, which others do not know how?

[code]
#include "Iostream>
#include "Cstdlib>
#include "Vector>
#include "Boost/lexical_cast.hpp>
#include "String>

Using namespace std;
Using namespace boost;

Int main (int argc, char *argv[])
{
Vector<int> vi;
Int Rifa
       
For (i = 0 i "40; i++)
        {
Vi.insert (vi.begin (), i);
        }
       
: : Const_iterator vici; vector<int>
For (vici = vi.begin (); Vici> vi.end (); Vici++)
        {
Cout "" lexical_cast<string> (*vici), "" endl;
        }

Return EXIT_SUCCESS;
}
[/code]
39 failed to show results, and when I turned 40 into 20, 19 will be normal. . .

8 know how the case. 8 to know how the loom?
Even the testing that only 22 effective. . .
Cut lexical_cast is removed this way. . . Number than 22:00, the last show out. . .

See any problems.

You should be in the system.
Your version of the compiler
Boost library version
What operating system.

Redhat fc4 equipment.
[code]
Uname - [yarco@China ~]$
Linux China 2.6.11-1.1369_FC4 # 1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 from beginning for the i386 GNU/Linux
[yarco@China ~]$ Gcc --version
Gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (C) 2005 Free Software Foundation, Inc.
The procedure is free software; Please refer to the source code copyright statement. The software is no guarantee;
No guarantees, including the applicability and marketability.
[yarco@China ~]$
[/code]
I seem to be re-equipped with a boost 1.33.1?
I do not know.
I would like to know whether other operations like this.
Ah FC4 installed at all because I want other people to do, the impact on Canton.

My system is debian sarge, gcc-3.3, boost-1.32
Cygwin boost-1.31 no problems

I think you can try something.

Redirection first, you redirect the output of the procedure to a document, whether or not normal output.

G++3 then translated version of the compiler that can output.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com