Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
net.cpp AND what on earth is vector<string>::const_ite
06-11-2006, 03:12 PM,
#11
 
nael Wrote:
Code:
vector<string>::const_iterator i

That part was in main.cpp. I am still not sure how to convert this type to an integer. Ill check those docs, maybe ill find something.

I added that in. It is just looping through the command line arguments which have been converted to an std::vector<std:Confusedtring> object.

Just me trying to clean up the code.

Also for comverting from one type to another there is boost::lexical_cast. boost::lexical_cast<int>("3") would return 3. I think it uses stringstreams under the hood. We of course, are not using any boost libs, but I could write us something very similar.
Reply


Messages In This Thread
[No subject] - by thelusiv - 06-05-2006, 05:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-05-2006, 09:44 PM
[No subject] - by thelusiv - 06-06-2006, 12:36 AM
[No subject] - by nael - 06-06-2006, 09:41 AM
[No subject] - by thelusiv - 06-06-2006, 12:49 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-06-2006, 08:02 PM
[No subject] - by nael - 06-07-2006, 01:51 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-07-2006, 08:52 PM
[No subject] - by matthew_i - 06-11-2006, 03:12 PM
[No subject] - by nael - 06-12-2006, 09:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-12-2006, 08:09 PM
[No subject] - by nael - 06-13-2006, 10:59 AM
[No subject] - by thelusiv - 06-13-2006, 02:02 PM
[No subject] - by nael - 06-14-2006, 01:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)