• 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
Re: Xcode-users Digest, Vol 3, Issue 705
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode-users Digest, Vol 3, Issue 705


  • Subject: Re: Xcode-users Digest, Vol 3, Issue 705
  • From: "A.J." <email@hidden>
  • Date: Tue, 31 Oct 2006 21:20:12 -0800

On Oct 29, 2006, at 4:10 PM, adamh wrote:

...
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 guess is strn_text is a char rather than an array or a pointer to an array of chars.

-- Steve Checkoway

Thank you for answering my question.
If strn_text was a char, wouldn't that defeat the purpose of getLINE? I thought it might be a pointer, but that didn't make any sense to me... putting a pointer in for the function works, but it doesn't produce the results that I was looking for, plus wouldn't it be redundant to have 2 arrays doing the same job?




+-------------------------------------------+
| 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
OpenGL and 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: Xcode-users Digest, Vol 3, Issue 705
      • From: Markus Ruggiero <email@hidden>
  • Prev by Date: Re: XCode Falls Short - for now
  • Next by Date: Re: "could not load inserted library" (DevToolsBundleInjection.framework): why not?
  • Previous by thread: Re: "could not load inserted library" (DevToolsBundleInjection.framework): why not?
  • Next by thread: Re: Xcode-users Digest, Vol 3, Issue 705
  • Index(es):
    • Date
    • Thread