Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 01:08:58 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Join our IRC channel: ##psp-programming on freenode
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: New member with my first Program ;)  (Read 5133 times)
oms
Newbie
*

Karma: +0/-1
Offline Offline

Posts: 2
180.37 points

View Inventory
Send Money to oms


View Profile
« on: January 17, 2008, 11:48:27 AM »

hello ..
this topic the first for me ,,,, i dont talk the English well so ( DOT Check it  Embarassed) .

the first program i made , that count the primary button , X O ^ [] ...

will find the source code and the EBOOT file .
Logged

3D Game Designer / Programmer


Flatmush
Has a normal user title
Administrator
Hero Member
*

Karma: +84/-26
Offline Offline

Posts: 1046
12906.27 points

View Inventory
Send Money to Flatmush

The Omniscient One


View Profile WWW
« Reply #1 on: January 17, 2008, 02:13:08 PM »

Good first program, can I make a suggestion.
Don't use variable names like i1, i2, i3 either make them mean something or pass a pointer to an array, otherwise nice program.
Logged

Firmware History: 2.60 -> 2.71 -> 1.50 -> 3.03oe-c

I am nerdier than 66% of all people. Are you nerdier? Click here to find out!I am 62% loser. What about you? Click here to find out!NerdTests.com User Test: The Can I Run A Business Test.

Hehe I'm a "Hero Member" because I bought posts back when they were in the shop.

Creator of FlatEditPSP, funcLib and flAstro
Raphael
Global Moderator
Hero Member
*

Karma: +230/-10
Offline Offline

Posts: 1431
193700.11 points

View Inventory
Send Money to Raphael


View Profile WWW
« Reply #2 on: January 18, 2008, 01:25:37 AM »

Welcome and moved to Releases where it should be.
Logged

Don't push the river, it flows.
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
http://www.homebrew-illuminati.co.uk - serious homebrew development for all platforms
Alexander Berl
"A good mod is a combination playground monitor, priest, big brother/sister, psychiatrist, professor and more."
oms
Newbie
*

Karma: +0/-1
Offline Offline

Posts: 2
180.37 points

View Inventory
Send Money to oms


View Profile
« Reply #3 on: January 18, 2008, 03:02:27 AM »

thank for reply .

i will do the best in the future .
Logged

3D Game Designer / Programmer
liamt2k6
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1
141.78 points

View Inventory
Send Money to liamt2k6

View Profile
« Reply #4 on: May 10, 2009, 09:13:15 AM »

Good first program, can I make a suggestion.
Don't use variable names like i1, i2, i3 either make them mean something or pass a pointer to an array, otherwise nice program.

hello im new here, ehm when you say "pass a pointer to an array",

do you mean like

Code:

value = {first = firstvalue, second = secondvalue}

Logged
Flatmush
Has a normal user title
Administrator
Hero Member
*

Karma: +84/-26
Offline Offline

Posts: 1046
12906.27 points

View Inventory
Send Money to Flatmush

The Omniscient One


View Profile WWW
« Reply #5 on: May 10, 2009, 12:56:08 PM »

That's an old post, don't know exactly what I meant by "pass a pointer to an array" without re-examining the source, but I was simply saying that either you should name your variables sensibly, or use an array rather than i1, i2, i3, etc.

To find out more about arrays and pointers you should look here:
http://www.cplusplus.com/doc/tutorial/arrays/
http://www.cplusplus.com/doc/tutorial/pointers/
Logged

Firmware History: 2.60 -> 2.71 -> 1.50 -> 3.03oe-c

I am nerdier than 66% of all people. Are you nerdier? Click here to find out!I am 62% loser. What about you? Click here to find out!NerdTests.com User Test: The Can I Run A Business Test.

Hehe I'm a "Hero Member" because I bought posts back when they were in the shop.

Creator of FlatEditPSP, funcLib and flAstro
you
Foar Moar Bukkets!
All-Around Dev
Full Member
*

Karma: +11/-1
Offline Offline

Posts: 138
2588.04 points

View Inventory
Send Money to you

View Profile
« Reply #6 on: May 30, 2009, 09:01:35 AM »

Quite good for a first program.

If only I had seen this a few days ago... I forgot how to do ORs in IF functions (now I know it's just 2 pipes ( || ) ) Smile
Logged
ReCreate
Life's like a bucket of wood shavings, unless their in a pail, then its like a pail of wood shavings.
Full Member
***

Karma: +44/-100
Offline Offline

Posts: 146
3016.83 points

View Inventory
Send Money to ReCreate

Coolness:-100 Smartness:-150 Posts:0


View Profile WWW
« Reply #7 on: August 06, 2009, 08:43:22 PM »

Code:
void PrintYa(int i1,int i2,int i3,int i4,int counter)
{
     pspDebugScreenClear();
     printf("This program to count each click for the primary controls :\n");
     printf("\n\nPlz click now:\n");
     printf("Counter for CROSS    ( X ) : %i\n\n", i1);
     printf("Counter for CIRCLE   ( O ) : %i\n\n", i2);
     printf("Counter for SQUARE   ( []) : %i\n\n", i3);
     printf("Counter for TRIANGLE ( ^ ) : %i\n\n", i4);
     printf("\nFinal Count: %i", counter);
     printf("\n\n\n\n\n\nThis Program Made By OMS\*****@hotmail.com");
     printf("\n\nGift for 3DH  ;)");
}
Wow, I finally get how to make a function now, Thanks!
Logged


Quote
WOOOOOOOOOOO for overly elaborate and complex
mowglisanu

C/C++ Developer
Hero Member
*

Karma: +36/-11
Offline Offline

Posts: 787
0.00 points

View Inventory
Send Money to mowglisanu


View Profile
« Reply #8 on: August 06, 2009, 08:56:28 PM »

>Wow, I finally get how to make a function now, Thanks!

how did you make an ide without knowing how to write a function
Logged

Check out my:
 Audio lib
 Pmf Viewer
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.515 seconds with 33 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com