R
Ramon F Herrera
I am an experienced C developer, but also a newbie in C++.
I am trying to compile and run the following code snippet on Linux:
FieldIterator itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
Console.WriteLine("Field name: {0}", field.GetName());
itr.Next();
}
Since my g++ compiler doesn't like the "Console.WriteLine()"
statement, I googled for it, and it seems to be some Windows-specific
construct. What can I use as a replacement? Obviously, I tried
"printf()" but the argument is not a string.
TIA,
-RFH
I am trying to compile and run the following code snippet on Linux:
FieldIterator itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
Console.WriteLine("Field name: {0}", field.GetName());
itr.Next();
}
Since my g++ compiler doesn't like the "Console.WriteLine()"
statement, I googled for it, and it seems to be some Windows-specific
construct. What can I use as a replacement? Obviously, I tried
"printf()" but the argument is not a string.
TIA,
-RFH