Using stringtok with multiarray
Hi
My overall goal is to read a csv file and then create a graph out of this.
Which can be provided as an input to the
boost graph library.For creating vertex set i have used vector and for
edges i m making use of multiarray.
The sample code snippet is provided below.. (This is not the actual code)
/*
vector<string> vect;
string str="L1,L2,L3,L4,L5";
string str1="L1,0,0,0,0";
string str2="L2,0,0,0,0";
boost::stringtok(vect,str,",");
typedef boost::multi_array
Hi! Abhishek V schrieb:
Also let me know if this is the best way to perform the task or something else will be better...
Try the tokenizer: http://www.boost.org/libs/tokenizer/escaped_list_separator.htm You can directly initialize a container with these iterators: vector<string> values(tok.begin(), tok.end()); Frank
Hi I m trying to run Kelvin-bacon program provided by BGL (http://www.boost.org/libs/graph/example/kevin-bacon.cpp) in VC++ but even after including the required header files it gives me following compilation errors :- "c:\boostlib\boost_1_34_0\boost\graph\detail\adjacency_list.hpp(2166) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) " What could be the possible reason for this... Thanks Abhishek Vyas Tata Consultancy Services Mailto: abhishek.v@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ boost-users-bounces@lists.boost.org wrote on 08/31/2007 03:26:26 PM:
Hi!
Abhishek V schrieb:
Also let me know if this is the best way to perform the task or something else will be better...
Try the tokenizer: http://www.boost.org/libs/tokenizer/escaped_list_separator.htm
You can directly initialize a container with these iterators:
vector<string> values(tok.begin(), tok.end());
Frank
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
ForwardSourceID:NT00047B3A =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Abhishek V wrote:
Hi I m trying to run Kelvin-bacon program provided by BGL (http://www.boost.org/libs/graph/example/kevin-bacon.cpp) in VC++ but even after including the required header files it gives me following compilation errors :-
"c:\boostlib\boost_1_34_0\boost\graph\detail\adjacency_list.hpp(2166) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) "
What could be the possible reason for this...
You should start a new message thread when changing topics like this. Placing [BGL] in the subject line will likely get the attention of those with familiarity with the library. What version of MSVC? Did you run BGL tests on your platform? Jeff Flinn
Hi I m trying to run Kelvin-bacon program provided by BGL (http://www.boost.org/libs/graph/example/kevin-bacon.cpp) in VC++ but even after including the required header files it gives me following compilation errors :-
"c:\boostlib\boost_1_34_0\boost\graph\detail\adjacency_list.hpp(2166) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) "
What could be the possible reason for this... MY MSVC version is 6.0
Abhishek Vyas Tata Consultancy Services Mailto: abhishek.v@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Abhishek V wrote:
Hi I m trying to run Kelvin-bacon program provided by BGL (http://www.boost.org/libs/graph/example/kevin-bacon.cpp) in VC++ but even after including the required header files it gives me following compilation errors :-
"c:\boostlib\boost_1_34_0\boost\graph\detail\adjacency_list.hpp(2166) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) "
What could be the possible reason for this... MY MSVC version is 6.0
Well http://engineering.meta-comm.com/boost-regression/1_34_1/user/graph_release.... shows the graph library as "unusable" on MSVC6. You'll need to upgrade to a non-ancient version of VC. Jeff Flinn
Which version of VC i should use. Abhishek Vyas Tata Consultancy Services Mailto: abhishek.v@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ boost-users-bounces@lists.boost.org wrote on 09/03/2007 06:47:04 PM:
Abhishek V wrote:
Hi I m trying to run Kelvin-bacon program provided by BGL (http://www.boost.org/libs/graph/example/kevin-bacon.cpp) in VC++ but even after including the required header files it gives
me
following compilation errors :-
"c:\boostlib\boost_1_34_0\boost\graph\detail\adjacency_list.hpp(2166) :
fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) "
What could be the possible reason for this... MY MSVC version is 6.0
Well http://engineering.meta-comm.com/boost- regression/1_34_1/user/graph_release.html shows the graph library as "unusable" on MSVC6. You'll need to upgrade to a non-ancient version of VC.
Jeff Flinn
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
ForwardSourceID:NT00047C6A =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Ok fine what else can be done I have Solaris version5.8 and fedora7. I failed install Bjam on Solaris.. Can i run boost on Fedora7 till i get newer version of VC++ Abhishek Vyas Tata Consultancy Services Mailto: abhishek.v@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ boost-users-bounces@lists.boost.org wrote on 09/04/2007 10:01:53 AM:
On 9/3/07, Abhishek V
wrote: Which version of VC i should use.
vc++ 2005 would be good. vc6 is not regarded as a c++ compiler by most.
-- Cory Nelson _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
ForwardSourceID:NT00047CD2 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Abhishek V wrote:
Ok fine what else can be done I have Solaris version5.8 and fedora7. I failed install Bjam on Solaris.. Can i run boost on Fedora7 till i get newer version of VC++
The link that I previously posted lists the status of all of the compilers that boost supports, and how usable the graph library features of interest are. Here's the link for the graph library again: http://engineering.meta-comm.com/boost-regression/1_34_1/user/graph_release.... The status of any library can be accessed from the www.boost.org web page at the top right under the "Regression Tests" heading, click on "Release". For older versions, under the "Other Resources" section, click on "Snapshots". Jeff Flinn
participants (4)
-
Abhishek V
-
Cory Nelson
-
Frank Birbacher
-
Jeff Flinn