• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Basic question (getline function)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic question (getline function)


  • Subject: Basic question (getline function)
  • From: "A.J." <email@hidden>
  • Date: Sun, 29 Oct 2006 16:10:45 -0800

Hey everybody,

I have a quick question that involves the getline function. From the resource that I have, it says that this is valid:

...
cin.getline(strn_text, 255);
...

but when I put this into xcode, it gives me the following errors:
Invalid conversion from 'char' to 'char*'
initializing argument 1 of... 

What is wrong with this?

+-------------------------------------------+
| My computer's Stats                      |
| Mac OS 10.4.7                               |
| 1 Ghz Apple Powerbook G4        |
| Xcode v. 2.2                                    |
+-------------------------------------------+

All help is appreciated and thanks in advance.

~ < [ / adamh \ ] > ~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please keep your posts straight and 
to the point. Also please comment 
the code you use as I am still learning 
Xcode and may not yet understand 
the meaning of the command.
 Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Basic question (getline function)
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: XCode Falls Short - for now
  • Next by Date: Re: Basic question (getline function)
  • Previous by thread: including private headers
  • Next by thread: Re: Basic question (getline function)
  • Index(es):
    • Date
    • Thread