<?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%2F06%2F02%2F02%2Fget_string_values.cpp</id>
	<title>Yurttas/PL/OOL/Cplusplus/F/06/02/02/get string values.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%2F06%2F02%2F02%2Fget_string_values.cpp"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/06/02/02/get_string_values.cpp&amp;action=history"/>
	<updated>2026-05-18T16:27:53Z</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/06/02/02/get_string_values.cpp&amp;diff=155609&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) 1998     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..          P...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Cplusplus/F/06/02/02/get_string_values.cpp&amp;diff=155609&amp;oldid=prev"/>
		<updated>2013-11-07T04:55:06Z</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) 1998     All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..          P...&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) 1998&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   : January 1, 1998.&lt;br /&gt;
   author : Salih Yurttas.&lt;br /&gt;
&lt;br /&gt;
   get_string_values.cpp&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;fstream&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;memory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
const int MAX_SIZE_STRING=32;&lt;br /&gt;
&lt;br /&gt;
int get_string_values(char* v[]) {&lt;br /&gt;
  char filename[MAX_SIZE_STRING];&lt;br /&gt;
  int i;&lt;br /&gt;
&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;
  cout &amp;lt;&amp;lt; endl;&lt;br /&gt;
&lt;br /&gt;
  ifstream f_in(filename);&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;
    i = 0;&lt;br /&gt;
    do {&lt;br /&gt;
      v[i] = (char *) calloc(MAX_SIZE_STRING, sizeof(char));&lt;br /&gt;
    } while(f_in&amp;gt;&amp;gt;v[i++]);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  f_in.close();&lt;br /&gt;
&lt;br /&gt;
  return --i; /* number of input values counted. */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MassBot1</name></author>
	</entry>
</feed>