Posts tagged: Programming

Where Do I Start with iPhone Programming?

comments Comments Off
By syclonefx, July 17, 2009 9:38 PM

There are so many websites out there telling you different places to start. This is were I started and were  I am currently with writing my own iPhone App. Its been a long hard process and I had to start at the very beginning. I didn’t know C Programming, which is the basic language you need to know to start writing for the iPhone. The iPhone uses Cocoa Touch and Objective-C programming language, know C programming just makes it easier. On my trip I been reading a few books. Here is a list of books that will help you with your apps.

I still have a long ways to go before any of my apps make it into the iTunes Apps Store. If there are any books or resources that you might think that would help, please let me know.

Harder than I thought, my journey to write my first iPhone App.

comments Comments Off
By syclonefx, June 17, 2009 9:35 PM

OK so I been trying to learn how to write an app for the iPhone and its going pretty steady. I’m in the third week of my journey. I started with learning the C Programming language and now I am reading Learning Objective-C on the Mac and both languages harder to learn than I thought. I didn’t expect to read the book and know everything about either language. But now that I know what each language has in-store for me. I’m ready for more, but It might take a little longer than I thought.

Week 2 of my journey to write my first iPhone app

comments Comments Off
By syclonefx, June 11, 2009 5:17 PM

Well it has been a little over 2 weeks and I am really starting to understand the code more and more. I just keep reading each chapter over and over. I think that I have read the book in total about 3 times. But I have completed my first C program! My first C program is a Lottery number generator. At first I had a couple problems where there the program would pick the same number multiple time on one ticket. But that is fixed now and the program works flawlessly. I found a good resource for learning C and C++. CProgramming.com is an awesome website with lots of tutorials for C and C++. They posted a great article “5 Ways you can learn Programming“. After reading this article I agree with it 100%. I knew a little programming so I took it way to fast and when I got to the end of the book I was really confused. So I went back and took my time, wrote a simple little program and now I understand every thing that I been reading.

Week 1 of my journey to write my first iPhone app

comments Comments Off
By syclonefx, June 2, 2009 9:14 PM

I can’t believe that 1 week has gone by already. C is a little harder than I thought. I’ve read the first 8 chapters so I tried to write my first C program. It is a simple random number generator for the lottery. I am still having a couple problem generating numbers that don’t repeat in a list. Here is the code:


#include
#include //This is to bring in the declaration of clock()
#include //This is to bring in the declarations of srand() and rand()

int WPicks( void );
int DPicks( void );
void Weekly( void );
void Daily( void );
int NoSame[100];

int main (int argc, const char * argv[]) {
srand( clock() );

Weekly();
//printf("\n");
//Daily();

return 0;
}

void Weekly(){
int pick, i, j;
int k;

for (k=1; k<=1; k++) {
NoSame[k] = WPicks();
}
for (j=1; j<=5; j++){
for (i = 1; i <= 6; i++) {
pick = WPicks();
if ( pick != NoSame[i] )
NoSame[i] = pick;
else
i -= 1;
}
for (i=1; i<=6; i++) {
printf( "%d\t",NoSame[i]);
}

printf("\n");

for (k=1; k<=6; k++) {
NoSame[k] = 0;
}

}
}

void Daily(){
int pick, i, j;

for (j=1; j<=5; j++){
for (i=1; i<=3; i++) {
pick = DPicks();
printf( "%d\t",pick);
}
printf("\n");

}
}

int WPicks( void ) {
return (rand() % 56) + 1;
}

int DPicks( void ) {
return (rand() % 10);
}

I am having problems with the Weekly() function. If you see the problem leave a comment and let me know.

Day 3 of my journey to write my first iPhone app

By syclonefx, May 27, 2009 11:07 PM

Day 3: I went back and read the previous 2 chapters, at the end if chapter 6 I was a little confused. So I am gonna take it a little slower. I thought since I’ve done some PHP programming I could breeze through the beginning of the book. I was wrong. I did write my first program and compile it on both OSX and Windows.
Another benifet of learning C is that I’m starting to under stand PHP more now.
I think I’m gonna go to doing weekly updates. The daily updates are a bit much.


Apple iTunes - Glee

Panorama Theme by Themocracy