Real NOOOOB C++ question for Xcode

Hi. I'm learning C++ in college and I've been using Visual Studio. We will be working using console applications and I would like to know if I can code those using Xcode rather than VisualStudio.
I have installed XCode, and see options for Cocoa C++, etc but don't know which I should select.
If anyone can give me a 1-2-3 step process of creating the project, creating the cpp file, then compiling/running it, I would appreciate it.
First I'd just like to get something simple to work:
#include <iostream>
using namespace std;
int main()
cout << "Hello World";
system("pause");
return 0;
Thanks,
Bryan

Short answer: Create a C++ Tool project.
For a walkthrough of a creation of a C++ Tool Xcode project, go to the following URL:
http://www.meandmark.com/articles.html
Read the Introduction to Xcode article.

Similar Messages

  • Question for Xcode 4.5.2

    mac os x 10.8 with xcode 4.5.2  ,   when i created a new project and ran it , there are some questions....
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff52c5bff8
    How can i solve the question....

    Coding questions are best asked in the Developer community. I'll ask the hosts to move this.
    But I can tell you that given the information you supplied there is no way the question can be answered. You'll need to explain what you were doing and supply the code causing the crash as a minimum.

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.   When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and

    Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
    When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
    I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
    However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
    So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
    Can I fully change the name without doing a complete re-install of Lion and all my apps?

    One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.

  • Hello , how r u,  can i ask 1 question about xcode, i have mac os x 10.7.5 , n xcode version 4.6.3 i want build apps for ios 7.1 n mac os 1.9 ,, , but my macbook is old late 2008 macbook 4,1,  so can i develop apps for ios7 n 1.9 using xcode 4.6.3, bcz my

    hello , how r u,
    can i ask 1 question about xcode, i have mac os x 10.7.5 , n xcode version 4.6.3 i want build apps for ios 7.1 n mac os 1.9 ,, , but my macbook is old late 2008 macbook 4,1,  so can i develop apps for ios7 n 1.9 using xcode 4.6.3, bcz my machine cant upadte on 1.8 n 10.9,, ihave 2gb ram . core 2 duo pr, plz rely asap,
    thnxs

    Please type complete sentences and words.  This isn't an instant message program.
    https://developer.apple.com/support/ios/ios-dev-center.html

  • I am having trouble answering my old security questions for my itunes account and it is creating a problem because I am not able to purchase apps/songs on my new IPAD. What phone number/email adress should I call to get a quick response to my issue?

    I have recently bought an IPAD 2 for my girlfriend and have encountered a problem with purchasing apps through my itunes account. It is requesting that I not only enter my pasword (which I know) but answer my old account questions, which I have forgotten the answers to. It had since locked me out of changing my questions for eight hours. Is there any number I can call to prove that I am the real owner of my itunes account so my girlfriend will be able to use her ipad to purchase new apps without having to go through the trouble of using one of my other apple devices? Random information: I believe my questions were set back in 2007 when I purchased my first ipod nano, since then I have used this same itunes account for my own ipod touch and ipad 2 and my girlfriends iphone 1st generation. I have never run into a problem regarding my questions before on any of these devices

    http://www.apple.com/support/itunes/contact/

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • Hi there how are you guys out there of this forum? I got a question for y'a

    Hi there how are you guys out there of this forum? I got a question for y’all
    I wanted to know how I could record different folders using iTunes
    Cause when recorded 2000 thongs on the DVD
    There were 2000 songs to go through
    So I really wanted to have had folders and then the music recorded inside them
    So I could get right to where I wanted real quickly
    Could anyone please teach me how to do that real quickly?
    Can we do it with iTunes?
    I know we can do it with Nero.

    1) Go to file, select new playlist. Creat the playlaist.
    2) Download your music into iTunes.
    NOTE: CHECK 'Recently Added' before you download your music.
    If the select boxes has a check in them, turn it off by
    holding down the 'ctrl' key and selecting one of the
    checked boxes. This shold turn off all the checks.
    It would be better to clear 'Resently Add' of all
    previous downloads, but I don't know how to do that
    yet.
    3) under 'PLAYLIST' on the right, select 'Recently Add'.
    all of your song should show there with a check in the selection
    box.
    4)Hold the shift key and select the frist (selete records name),
    then the last recorded tune. All of the recordings shouls light
    up blue.
    5) While holding the 'shift' key, drag one of the records to your new
    playlist. All of the blue highlighted song will transfer to the new
    playlist.

  • Sounds "sticking" in games and a question for Creat

    I'm not sure if this is the best place to do it but I'd like to kind of formally briing forward a bug in games that's not X-Fi dependent. I've had this happen with my Audigy 2 ZS and my Fatalty.
    I know this isn't anyone's fault but it's still quite annoying. Sometimes if a player near you starts shooting (usually it's shooting) then the server or he/she lags for a second, his/her gun will be stuck on firing. Till they die or change weapons or fire again, you have that sound looping constantly. At first I thought this was only in BF2 and a bug in the game. However, after playing FEAR online more now, I've had this happen several times. Although it's rare, it is a pain. Sometimes if you ask the player to fire their gun again they will other times they won't.
    My question for Creative is, would it be possible to have a "reset" command for the soundcards? Have it flash the RAM real quick or restart the sounds somehow? Just make it a hot key that players could push when it happens?

    I am pretty sure I have the same case.  The product description on Amazon says VTSO, but the metal tab actually says IVSO.  All of the ones I see look like they are probably the same or very similar case with a different name.  I bought the QuickShot cover, and it is OK, but it does nothing to protect the corners, which I consider very vulnerable spots.  The IVSO/VTSO provides all around coverage.  I don't think we are going to find anything much better.  If I do I will come back and post.

  • Real-time data acquisition for HR datasources

    Dear Experts,
    I have a couple of questions on real-time data acquisition...
    a) Can you tell me if any standard HR datasources support real-time data acquisition?
    b) Can we apply real-time data acquisition for generic datasources? If yes, is there any difference in the process compared to working with business content datasources when using real-time data acquisition?
    Hope you can provide some answers...as always, points will be awarded for answers that effectively address the questions.
    Thanks a bunch.
    K

    Hi Karthik,
    a)The decision to go for SAP remote cube depends on the volume of data and the frequency of queries. It is advicible not to use the SAP remote cube if the data volume is high and also, the query frequency is high. Which module in HR are yuo implementing? In HR, the data volume is generally high. So, if you go for loading the data from R/3 every 3 hours, you are asfe as long as the loading volumes are less. For example, for implementing Time management, I would not advice frequent loads as it is time consuming process. So, make a decision based on the above mentioned lines. If the data volume is not high, I would prefer the SAP ermote cube as it will reduce managing the loads.
    b)I mentioned FM extractor just for the sake of control of data selection. You can even go for view/table extractor.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Real time interview questions

    Hi gurus
    Can anyone of u pls give answers for the following real time interview questions.
    1.How do you implement a new object required by ur Client...and what are all the proccess up to Production Server....?
    2.What is the Role played by RFC is SAP Systems
    3.. What are all the initial things done to you while u are put in to the team....?
    Pls do the needfull
    Thanking you
    sure i will assign full points

    1._How do you implement a new object required by ur Client...and what are all the proccess up to Production Server....?_
    - Develop the New Info object
    - Test them Info object in Quality(if you got one in your Landscape)
       - To test in Quality,Firstly you need to "TRANSPORT"the obj to Quality(TRANSPORT CONNECTION - OBJ - TRANSPORT(assign to a Transport Request)(truck icon)
       - Once the obj is Tested fine without any bugs.errors,
    - Transport the obj from DEV to PROD
      - Transport Conn - Obj -Transport(truck icon)
       - SE09 (Release the particular Request)
       - STMS (Import the Request to PROD) (Can be done by BASIS)
    2)_What is the Role played by RFC is SAP Systems_ 
        -  RFC(Remote Function Call) used to help establish connection between the BW and the Source system.
        -  You setup the RFC in SM59
    3)_What are all the initial things done to you while u are put in to the team....?_
        - This literally depends on the Type of Project you are deployed.(Implementation/Support)
    Hope this stuff help you out..
    cheers

  • Real time interview questions in XI

    Hi guys,
               Can anyone send me Real time interview questions in XI to my mail id [email protected] will be awarded.
    Thanks in advance

    Hi , check some of the FAQS.
    Some of them not answered.
    . Which of the following are Components of XI
    MDM, Adapter Framework, RWB, SLD, IS

    2. What is a XI Pipeline?
    3. Source element occurs once whereas the target element it is mapped to is produced 3 times when the mapping is executed. Why does this happen?
    4. A context object is used in place of what?
    5. what is UDF? What are the mandatory functions that you use in a Java based UDF
    a. Init() , Execute(), Destroy(), Run(), SetParameter()
    6. ABAP mapping is implemented using what?
    7. When you don’t find the ABAP mapping option in IR what do u do?
    8. Any of the of different Mapping types (Java, MM, XSLT, ABAP) can be called in any order for Interface mapping ? True of False
    9. Is true case sensitive in case of a Boolean function and can 1 be interpreted a Boolean TRUE?
    10. what is Context Changes ?
    11. What are the protocols that the Mail adapter supports
    12. Why is a SAP BC used?
    13. WSDL representation of a Message Interface is used to generate what kind of proxies?
    a. ABAP Proxies
    b. Java Proxies
    c. Neither ABAP nor Java
    d. Both ABAP and Java proxies
    14. Would you configure a Sender IDOC communication channel?
    15. You are required to upload additional libraries for the JMS adapter. How would you do it?
    16. QoS that a Sender JDBC communication channel supports
    17. What are the transport protocols a JMS adapter supports?
    18. Would you configure the Integration Server as a Logical system in a scenario where IDOCs are being sent from a SAP R/3 system to XI?
    19. Why do we specify the Logical System name in the SLD?
    20. The pre-requisites for sending IDOCs to an XI system
    a. Connection parameters must be maintained in SWCV
    b. User must have administration rights in XI
    c. The IDOC metadata must be imported into IR
    21. You need to post a transaction using a RFC. How would you accomplish this?
    a. Use a async BAPI call with implicit Commit?
    b. Use a async BAPI call with explicit Commit?
    22. what is PCK? What is the necessity for a PCK?
    23. In a company the Central Adapter Engine is installed close to the business partner site. Why do you this this is done?
    24. The flow of a message entering the Adapter Engine from Integration Server is--
    a. It is queued, processed using module processors and then posted to the backend application
    b. It is processed using module processors, queued and then posted to the backend application
    25. Is the persistence layer used by the Adapter Engine and the Integration Engine (Integration Server) same?
    26. Is the Message ID specified in the Integration Engine same as the Message ID used during the Message transformation in the Adapter engine?
    27. Would you configure a Sender HTTP adapter?
    28. QoS in case of a RFC Receiver adapter
    29. Sync-Async bridge is used for?
    30. A Business Process is
    a. Executable cross component
    b. Can send and receive messages
    31. What is the purpose of a deadline branch
    32. What is SXI_CACHE used for?
    33. Container elements can be typed to what ?
    34. Why is a Wait step used?
    35. A block can have which of the following?
    a. Multiple Exception branches
    b. Multiple Condition branches
    36. For what all step types can you use a Corelation?
    37. Which of the following is true?
    a. Blocks can be Nested
    b. Blocks can be Overlapped
    38. You need to collect and club messages in a container element coming from different steps. How would you do this?
    39. In case of a Block, which of the following is true?
    Elements of a super container are visible in sub-containers
    Elements of a subordinate container are not visible in all blocks
    Elements defined in the process container are visible in all blocks
    40. what is Co relation & Local Co-relation
    41. Where can you use N: M transformation?
    42. Alert framework uses/leverages CCMS?
    43. If you want to cancel a process and set its status to ‘Logically Deleted’ when a Deadline is reached, do you need to use a Control Step having its Action as ‘CancelProcess’ or is it automatically done?
    44. What are the ways an Exception can be triggered?
    45. What would be the best architecture after implementing SAP XI? Implementing EDI adapter(s).
    46. How to run the Adapter engine as a service?
    47. How SAP Netweaver supports a holistic approach to BPM (Business Process Management)?
    48. What is the role of SAP XI?
    49. How can we differentiate SAP XI from Business Connector (BC)?
    50. How to send mail from SAP XI?
    51. What are the migration steps from XI 2.0 to XI 3.0?
    52. XI will support synchronous communication and asynchronous communication?
    A. Yes
    B. No
    53. Integration server contains the following components?
    A. Additional integration services
    B. Integration Engine
    C. Business Process Engine
    D. Integration Repository
    54. Integration Repository provides the following components?
    A. Business processes
    B. Mapping Objects
    C. Components at design time
    D. Imported objects
    55. What is the usage of Web Application server in XI?
    56. What is the use of RFC and IDOC Adapters in XI?
    57. How to convert WSDL (Web Services Descriptive Language) to target language?
    58. What is the component to generate Jave classes?
    59. What is ESA (Enterprise Service Architecture)?
    60. What are the key elements of ESA?
    61. How to transport SLD, Integration Directory & Integration Repository objects to the Production system?
    62. Can we import XSD Schemas into XI 2.0?
    63. which api you use for java mapping.
    64. You use context object in place of what?
    65. To make non mandatory node mandatory which you should to?
    66. In case of RFC communication sender system sends a rfc call but target system does not receive it. What you think went wrong?
    67 Difference between Xi business process and workflow ?
    68. When you use transaction SXMB_MONI for process monitoring, which field tells you that the entry is for business process.
    69. What are different Xi components?
    70. In which all places you can use receive process?
    71 In which all steps you can activate correlation?
    1. How many interfaces are u developed in u r project.
    2,What is land accepted.?
    3.What is Your team size ?
    4.The work assignment procedure in your organization?
    5.What is your complete company object.?
    6.What is the nesicity of developing that scenario.?
    7.What is the advantage over other integration tools.?
    8.What is Sender agreement?
    9.What is Receiver agreement?
    10.Tell me the steps for Multiple Idoc to File.(BPM Scenarios)
    11.Tell me the steps for file to Multiple Idoc (BPM)
    12.How to Create Alerts in BPM?
    13.How to Use Third Party Adaptors in u r project.?
    14.How to Use External Objects?
    15.What is the Use of Node Fictions in XI?(example)
    16 Examples on RFC lookups?
    regards,
    Brahmaji.

  • Question for CL Forum Ad

    I have been reading through this forum and there seems to be no shortage of upset customers. They all seems to be asking the same questions over and over again, and the only answer given is, "I'll post more information when I get it".
    Now, I'm not a real tech savvy guy, but why is it not possible, to walk over to the desk of the head developer, and say, "Hey Steve, can you tell me why the new drivers are the same as the beta ones?"
    And then walk back to your PC and type the answer here. I mean lets be honest, unless you are sending messages via snail mail, I don't understand why this is so hard to do. I suspect you HAVE the answers, but the big cheese at CL has told you to simply deflect the questions for now.
    What I am trying to say is that by you saying you'll post information when you get it, does nothing but make your company look completely rag tag. It gives the impression that everyone just works part time from home, and they only meet every other Saturday for a softball game. There is no official statements from CL, you guys don't have any answers, no one knows when anything is being released or what it'll have in it...it just seems like the company is in shambles.
    And this brings me to my second question. While you're slow to respond to questions about why things aren't working and such, but you are quicker than a fat man chasing a rolling donut down the street when someone advertises another brand, so my question is what do YOU recommend we do?
    Can you suggest some solutions for all of the people who bought CL cards and have no working drivers? I would really appreciate if you didn't simply ignore, or skirt around this question.
    I think it's time you threw us a bone here, if you're not going to give us any information, then at least give us some other alternati'ves.

    Dude, honestly, I could care less what happened 0 years ago. I have said it before and I'll say it again for you, just because this type of thing keeps happening doesn't mean it's right.
    When I buy a product from a company I don't do it thinking, "Hey, maybe if I buy this product then the $200 will help them become the best company in the world, and I don't care if it works or not, I just like the feeling of supporting companies in the hopes they'll do well!"
    I buy products, and I expect them to work.
    Regardless, if you had actually read my post, you would see that I'm not asking when the drivers will be out, or why they aren't... I am asking why this "world leader" in sound cards can't communicate effecti'vely with it's customers? I am asking why the Admins keep saying the same old mumbo jumbo, and expect us to buy that they can't actually just go talk to the people in charge.
    I am also asking if they can't tell me that information, then help me find some alternati'ves.
    So, why don't you paypal me a few hundred dollars for a new sound card. You seem to have no problem sitting there giving your sound card "high fi'ves" and talking to it in a sweet voice, "Don't worry little sound card, I know you have amazing potential, I won't give up on you!"
    "Do you remember the old days of Windows 2000?" We then cut to a montage of you running through fields of flowers hugging your sound card and a copy of Windows 2000. You shake your fingers at them and say, "Not yet little guys, soon we'll all be together in harmony, we just have to wait!!"

  • Command line tools for xcode??

    I am used to compiling code much like the java sdk works from terminal where I say javac the filename and then i get a .class file that i can run by doing the command java and then the .class file after. I am now wanting to learn c++ and I dont feel like installing xcode all i want is a compiler that can run from terminal. i found command line tools for xcode on the apple developers site and i was wondering do i need xcode for this to run and after that what the commands are and how i compile/run the code. But my biggest question is still wether or not i need xcode to let command line tools work. ive read in a couple places i dont need it but in other ive read you do can i get help?!

    You don't need Xcode to compile your apps with; just the compiler/linker.
    Xcode is Apple's IDE.  One could write the same code in TextEdit but that wouldn't be easy nor fun.
    (Missed it by THAT much!) 

  • Any futures plans to include a real video editing software for hp sprout, like Adobe premiere pro?

    Very simple question.
    Is there any plans to include a real video editing software for HP Sprout?
    Video editing software like Adobe premire Pro?
    It will be amazing if you (HP people) can develop and integrate a video editing software like Adobe premiere Pro into the HP Sprout.
    Thank you in advance!

    Diodio wrote:
    Very simple question.
    Is there any plans to include a real video editing software for HP Sprout?
    Video editing software like Adobe premire Pro?
    It will be amazing if you (HP people) can develop and integrate a video editing software like Adobe premiere Pro into the HP Sprout.
    Thank you in advance!
    HP is pretty reticent to revealing "Future Plans".  It would be a real shot in the arm though if this happens!
    How about it @Ty1 ?  Can you shed any light on the subject?
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • How to check if a function module has been called dynamically in programs

    Hi, I wanted to know if there is a way to check if a function module has been called dynamically in any programs. In SE37, if you click on where used list for a FM, it shows FM not found in programs (Possibly dynamic calls). I am checking if the func

  • Open Tiff file error

    Hi! I've a very big tiff file, created by a scanner. The scanner produces tiff files from my code, but the shipped SW can produce pdf. My question is, how can I open this large tiff file in Labview (Vision)? Using the Shipped SW I scanned a PDF and u

  • How can i retrieve Items and Dates from an specific Service Order in a Report?

    Hi Partners, i was debbuging a lot without a good solution, My team develop a new report (SE38 Report)  to list on the screen an specific Service Order (BTQSrvOrd) with their corresponding Items & Dates (BTHeaderDates) Here is my code (Attached on Me

  • Access denied (Object: com.sap.portal.system/security/no_safety)

    We are implementing EP 6.0, currently with SP11. We have developed some iViews, which are using RFC functions to get information from backend system, in this case SRM. Everything worked fine, till the day we’ve transported those developments into oth

  • Service PO  - Invoice verification before Service Entry / Acceptance

    Hi SAP Gurus , I have following question , I am creating a Service PO with A/c assignment category K & Item category D . system automatically proposes GR Based IV tick for this combination . I want to post the invoice first & then do the service entr