<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FCplusplus%2FF%2F07%2F02%2F02%2F00%2Fget_vector_lines.cpp</id>
	<title>Yurttas/PL/OOL/Cplusplus/F/07/02/02/00/get vector lines.cpp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FCplusplus%2FF%2F07%2F02%2F02%2F00%2Fget_vector_lines.cpp"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/07/02/02/00/get_vector_lines.cpp&amp;action=history"/>
	<updated>2026-05-18T17:17:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/07/02/02/00/get_vector_lines.cpp&amp;diff=155855&amp;oldid=prev</id>
		<title>MassBot1: Created page with &quot;&lt;syntaxhighlight lang=&quot;cpp&quot; line start=&quot;1&quot; enclose=&quot;div&quot;&gt;/*     Copyright(C) 2002     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..       Perm...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/07/02/02/00/get_vector_lines.cpp&amp;diff=155855&amp;oldid=prev"/>
		<updated>2013-11-07T05:03:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/*     Copyright(C) 2002     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..       Perm...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/*&lt;br /&gt;
   Copyright(C) 2002&lt;br /&gt;
   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..&lt;br /&gt;
&lt;br /&gt;
   Permission to use, copy, modify, and distribute this&lt;br /&gt;
   software and its documentation for EDUCATIONAL purposes&lt;br /&gt;
   and without fee is hereby granted provided that this&lt;br /&gt;
   copyright notice appears in all copies.&lt;br /&gt;
&lt;br /&gt;
   date   : September 1, 2002.&lt;br /&gt;
   author : Salih Yurttas.&lt;br /&gt;
&lt;br /&gt;
   get_vector_lines.cpp&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;common.h&amp;quot;&lt;br /&gt;
#include &amp;quot;io.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
vector&amp;lt;string&amp;gt; get_vector_lines() {&lt;br /&gt;
  vector&amp;lt;string&amp;gt; lines;&lt;br /&gt;
&lt;br /&gt;
  string filename;&lt;br /&gt;
&lt;br /&gt;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
  cout &amp;lt;&amp;lt; &amp;quot;--&amp;gt; input filename : &amp;quot;;&lt;br /&gt;
  cin &amp;gt;&amp;gt; filename;&lt;br /&gt;
&lt;br /&gt;
  ifstream f_in(filename.c_str());&lt;br /&gt;
&lt;br /&gt;
  if(!f_in) {&lt;br /&gt;
    cerr &amp;lt;&amp;lt; &amp;quot;File named as &amp;quot; &amp;lt;&amp;lt; filename &amp;lt;&amp;lt; &amp;quot; is not opened for input.&amp;quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;
    exit(1);&lt;br /&gt;
  }&lt;br /&gt;
  else {&lt;br /&gt;
    string t;&lt;br /&gt;
&lt;br /&gt;
    while(getline(f_in,&lt;br /&gt;
                  t,&lt;br /&gt;
                  '\n'))&lt;br /&gt;
      lines.push_back(t);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  f_in.close();&lt;br /&gt;
&lt;br /&gt;
  return lines;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MassBot1</name></author>
	</entry>
</feed>