So I'm a day-old noob at XCode and I don't know a thing about it. I bought "C++ for Dummies" the other day, and it wants me to use "codeblocks" as a code editor and compiler, but it's being very difficult for me. So I installed the developer package off of my Leopard disc, and I'm totally lost. XCode seems way more powerful/flexible than codeblocks, and I have no idea where to start, so I'll give you the code I want to compile, and hopefully you guys can tell me how to make it XCode compatible, and what to open it with/where to put it.
So yeah. Help is appreciated.
Thanks!
Code:
//Conversion- program to convert celsius to fahrenheit
#include <cstdio>
#include <cstdlib>
#include <iostream>
int main(int nNumberofArgs, char* pszArgs[])
{
//enter temp in celsius
int celsius;
cout << "Enter the tempreture in Celsius:";
cin >> celsius
//calculate conversion factor from celcius to fahr.
int factor;
factor = 212 - 32;
//use conversion factor to convert celcious to far.
int fahrenheit
fahrenheit = factor * celsius/100 + 32
//show results
cout << "fahrenheit value is:";
cout << fahrenheit << endl;
//wait until user has read results
system("Pause");
return 0;
}
So yeah. Help is appreciated.
Thanks!