Forum    News    Downloads    Saved Games


My first program

<<

AdventWolf

User avatar

Brew Guru
Brew Guru

Posts: 5958

Joined: September 19 2007

Location: Pandora

Thanks given: 5 times

Thanks received: 10 times

Post Tue Jun 03, 2008 7:15 am

My first program

It's not a psp homebrew game or anything, but I made my first program in C++.
Well I made a lot of stuff, but this I made on my own :D.

It's a simple calculator program that can deal with 2 numbers and can either Add, Subtract, Multiply, or Divide them.
It's not much but I'm happy *tear*.
It's only really 48 lines of code though.

Instructions:
Once you start the program it asks you whether you want to
[1] Add.
[2] Subtract.
[3] Multiply.
[4] Or Divide.

So ya just type 1, 2, 3, or 4 and press enter.

Then you HAVE to enter 2 numbers either:

*enter 1 then press enter then enter the 2nd and press enter.
*Or enter one, then press the spacebar and enter the 2nd, then press enter.

Then it solves the equation.

Here it is.

I updated it so when you enter an invalid number at the main menu, then it will loop around so you can try again. Instead of aborting the operation.
Last edited by AdventWolf on Tue Jun 03, 2008 7:03 pm, edited 3 times in total.
Image
Image
<<

crait

User avatar

Brewology Administrator
Brewology Administrator

Posts: 6488

Joined: August 11 2006

Location: Narnia!

Thanks given: 195 times

Thanks received: 50 times

Post Tue Jun 03, 2008 8:51 am

Well, where's the download link?!
I wanna try it!

BTW: I use C :)
<<

AdventWolf

User avatar

Brew Guru
Brew Guru

Posts: 5958

Joined: September 19 2007

Location: Pandora

Thanks given: 5 times

Thanks received: 10 times

Post Tue Jun 03, 2008 11:05 am

Ah cool :). Here it is.
Image
Image
<<

Salzgablah

User avatar

Experienced Brewer
Experienced Brewer

Posts: 228

Joined: April 08 2008

Thanks given: 0

Thanks received: 0

Post Tue Jun 03, 2008 11:30 am

sweet, you going to school for it? or just teaching yourself?
Phat 3.71->pandora 1.50->3.90 m33 (Sold on Ebay, suckers)
Slim 3.71->semi-brick->Nand Recovery->DCv3->3.71->3.80 m33-2->3.90 m33-3->4.01 m33-2
Want cintro for 4.01 m33? get cintro_390and Autostart_V4.zip, just follow the readme.
Image
<<

AdventWolf

User avatar

Brew Guru
Brew Guru

Posts: 5958

Joined: September 19 2007

Location: Pandora

Thanks given: 5 times

Thanks received: 10 times

Post Tue Jun 03, 2008 11:44 am

Just teaching myself. I bought a book a while back so I'm going by that mainly.
Image
Image
<<

blackzmage

Brew Guru
Brew Guru

Posts: 2166

Joined: April 28 2007

Thanks given: 0

Thanks received: 0

Post Tue Jun 03, 2008 1:21 pm

C++ is some hard donkey sh*t. hell i got a book but im sticking with javascript/flash/html/xml.....
<<

BKFraiders7

User avatar

Brewology Administrator
Brewology Administrator

Posts: 4248

Joined: January 23 2010

Location: On COD:BO2 iPhone User:5 Mac User: Macbook Pro Mtn Lion

Thanks given: 13 times

Thanks received: 31 times

Post Tue Jun 03, 2008 2:55 pm

I tried downloading....but i cant tell which ones the letter beside the cat to download it.
Watch me stream on MIXER or follow on Youtube at ChA0TiCxDR3AMS

Image Image
<<

AdventWolf

User avatar

Brew Guru
Brew Guru

Posts: 5958

Joined: September 19 2007

Location: Pandora

Thanks given: 5 times

Thanks received: 10 times

Post Tue Jun 03, 2008 3:14 pm

Oh lol, yea I hate that.
I uploaded it to sendspace
http://www.sendspace.com/file/da5801

I updated it so when you enter an invalid number at the main menu, then it will loop around so you can try again. Instead of aborting the operation.
Image
Image
<<

crait

User avatar

Brewology Administrator
Brewology Administrator

Posts: 6488

Joined: August 11 2006

Location: Narnia!

Thanks given: 195 times

Thanks received: 50 times

Post Tue Jun 03, 2008 5:57 pm

I couldn't figure out how to put in numbers to multiply or whatever..
But I love how you said "Are you stupid?"
And if you already know a little C++ then you can get started on the PSP. It's really fun.
And whenever you get something good made, it's great to release it and have people thank you for it :) and know that you've helped people :D
<<

AdventWolf

User avatar

Brew Guru
Brew Guru

Posts: 5958

Joined: September 19 2007

Location: Pandora

Thanks given: 5 times

Thanks received: 10 times

Post Tue Jun 03, 2008 7:02 pm

Once you start the program it asks you whether you want to
[1] Add.
[2] Subtract.
[3] Multiply.
[4] Or Divide.

So ya just type 1, 2, 3, or 4 and press enter.

Then you HAVE to enter 2 numbers either:

*enter 1 then press enter then enter the 2nd and press enter.
*Or enter one, then press the spacebar and enter the 2nd, then press enter.

Then it solves the equation.

And yea, the "Are you stupid?" seemed like a nice add :P
I will maybe start working on psp stuff here soon but I'm having trouble installing the stuff I need in order to make the programs. I gotta look more into it though. What stuff do you use?
Image
Image
<<

crait

User avatar

Brewology Administrator
Brewology Administrator

Posts: 6488

Joined: August 11 2006

Location: Narnia!

Thanks given: 195 times

Thanks received: 50 times

Post Wed Jun 04, 2008 7:52 am

Cyqwin and PSP toolchain.
Took about 24 hours to install all of it. Lol.
blackzmage wrote:C++ is some hard donkey sh*t. hell i got a book but im sticking with javascript/flash/html/xml.....

If you know Action Script for Flash, it's basically the same thing ;)
<<

michealshawn

Posts: 1

Joined: May 25 2022

Thanks given: 0

Thanks received: 0

Post Wed May 25, 2022 4:15 am

Re: My first program

My first program, which I put all of my efforts into, is designing and developing custom sites that meet the needs of your company. We believe that once an idea has been tried, it may not work again. As a result, with our business strategies and bulletproof marketing, we assist website owners in developing new ideas. It entails offering custom-built design and development services that can assist you as a beginner. Our team provides consulting services, site maintenance, and theme and plugin development to business owners. https://qwertyexperts.com/services/wordpress/
<<

emmaamelia126

Young Brewer

Posts: 15

Joined: November 01 2021

Thanks given: 0

Thanks received: 0

Post Wed May 25, 2022 4:26 am

Re: My first program

My first program, which I put all of my efforts into, is designing and developing custom sites that meet the needs of your company. We believe that once an idea has been tried, it may not work again. As a result, with our business strategies and bulletproof marketing, we assist website owners in developing new ideas. It entails offering custom-built design and development services that can assist you as a beginner. Our team provides consulting services, site maintenance, and theme and plugin development to business owners.
https://qwertyexperts.com/services/wordpress/

Return to Developers & Programming

Who is online

Users browsing this forum: No registered users and 8 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for blacklist.org.