#include <iostream>
#include <string>
#include <boost/foreach.hpp>
using namespace std;
using namespace boost;
int main()
{
string str = "United Online";
char c;
BOOST_FOREACH(c, str)
{
cout<<c;
}
cout<<endl;
list l = {1,2,3,4,5};
BOOST_FOREACH(int i, l)
{
cout<<i;
}
cout<<endl;
}
#include <string>
#include <boost/foreach.hpp>
using namespace std;
using namespace boost;
int main()
{
string str = "United Online";
char c;
BOOST_FOREACH(c, str)
{
cout<<c;
}
cout<<endl;
list l = {1,2,3,4,5};
BOOST_FOREACH(int i, l)
{
cout<<i;
}
cout<<endl;
}
No comments:
Post a Comment