Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Replacement for...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 43734 of 48020
Post > Topic >>

Replacement for Console.WriteLine?

by Ramon F Herrera <ramon@[EMAIL PROTECTED] > Mar 6, 2008 at 01:55 PM

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
 




 2 Posts in Topic:
Replacement for Console.WriteLine?
Ramon F Herrera <ramon  2008-03-06 13:55:29 
Re: Replacement for Console.WriteLine?
Christopher <cpisz@[EM  2008-03-06 14:06:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 9:02:45 CDT 2008.