New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Xcode use help


Post Reply New Thread Subscribe

 
Thread Tools
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
Hey,
So I just installed Xcode for Leopard onto my computer, and I have no idea how to use it. I have always used c++ visual 6.0 for xp, but I was tired of the issues it was having and wanted to switch. Could anyone give me a crash course (or tell me where to find one) on how to build and edit basic c++ applications?

Thanks!

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
MacHeadCase
Guest
 
Posts: n/a

*Moved thread to appropriate forum - Not a Switcher question but Development*
QUOTE Thanks
BBMike

 
Member Since: Dec 27, 2007
Posts: 27
BBMike is on a distinguished road

BBMike is offline
i was wondering that too....

you can do simple c++ programs in textedit and then run them through terminal.. i just learned that yesterday
just started c++ xcode help


but i find that process very clumsy and ineffective.. if xcode can do so many complicated things im sure it can compile and run simple c++ code .. and im wandering how
QUOTE Thanks
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
that really isnt suffice for simple needs. I really do not like citrix or visual 6.0

is it any better with other languages?

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
jdgti

 
jdgti's Avatar
 
Member Since: Mar 14, 2005
Location: Atlanta, GA
Posts: 444
jdgti will become famous soon enough
Mac Specs: 17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM

jdgti is offline
Try this:

1.) Open XCode
2.) Click File -> New Project
3.) Scroll down a while on the project lists to 'Command Line Utility' section.
*Note* You may need to click the carrot on the side to expand it to see all of the options.
4.) Select C++ Tool
5.) Pick a source directory for the project
6.) Name the project

Then the project viewer thing comes up.

7.) Double click main.cpp and up pops XCode's editor.

8.) Code the "Hello world thing"

9.) Save

10.) Click Build and Go in the toobar.

Does that help?
QUOTE Thanks
BBMike

 
Member Since: Dec 27, 2007
Posts: 27
BBMike is on a distinguished road

BBMike is offline
yep i tried it a few days ago and got it
except when i press run and go nothing happens.. i usually have to go to the folder and open the the build
QUOTE Thanks
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
meh, I'll just use another program

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
chat19

 
chat19's Avatar
 
Member Since: Aug 09, 2007
Posts: 115
chat19 is on a distinguished road
Mac Specs: MacBook Pro 2.4 GHz, 160 gig HDD @ 5400, 2 gig RAM, nVIDIA 8600

chat19 is offline
but thanks for all the help!

"We, the Chinese people, draft the entire Woo-Tang Clan!"
QUOTE Thanks
Jpramos007

 
Member Since: May 09, 2008
Posts: 2
Jpramos007 is on a distinguished road

Jpramos007 is offline
anyone know how I can add a space between my printout in binary. This is my code and the for loop will give me the correct readout I just cant get the output to put a space in between every four characters.#include <stdio.h>



// int andfx(int i, int mask);
int count;
int i = 0x1b53;
int mask = 0x8000;
int j;






int main (void)
{
printf("Hex value = %x,\t",i);
printf("Binary value=");
for (count =0;count<=16;count++)



{
if (i&mask)



printf("1");
else
printf("0");
mask = mask >> 1;











}






printf("\n");




return 0;
}
QUOTE Thanks

Post Reply New Thread Subscribe


« New to it ALL! | SOAP problem With Leopard and Java 1.5 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 05:56 PM
Features I miss from Visual Studio, now using xCode... RChickenMan OS X - Development and Darwin 0 10-18-2005 11:14 AM
XCode Include path problem Jove OS X - Development and Darwin 0 03-18-2005 09:41 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 12:16 PM
Xcode developer tools updated Murlyn OS X - Development and Darwin 0 11-04-2003 05:09 PM

All times are GMT -4. The time now is 08:13 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?