summaryrefslogtreecommitdiff
path: root/sim/ucsim/gstring_basic.cc
blob: f894c2e7172ac896e33b4a74748e1f0e3510bb01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <gstring.h>
#include <iostream.h>
#include <fstream.h>

/**
 * Basic uses of the gstring.
 */
int main(void)
{
	gstring a = "Hello";

	cout << "Variable is set to: " << a << endl;

	a = a + " ";
	a += "World!";
	cout << "String is added to variable: " << a << endl;

	return 0;
}