collapse collapse

* Who's Online

  • Dot Guests: 68
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Board Stats

  • stats Total Members: 88
  • stats Total Posts: 11163
  • stats Total Topics: 1699
  • stats Total Categories: 4
  • stats Total Boards: 76
  • stats Most Online: 248

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ApplezJuice

Pages: [1]
2
2D Graphics / 2d/3d Mario Sidewalk Art
« on: June 28, 2012, 06:03:12 pm »
Cool video I found, I would like to try this ^_^
http://www.youtube.com/watch?v=U2juYr2Xjeo&feature=player_embedded

3
Challenges / C++ Random Number Game!
« on: June 27, 2012, 08:18:03 pm »
Code: C++
  1. #include <iostream>
  2. #include <Windows.h> //needed for "srand(GetTickCount());"
  3.  
  4. using namespace std; //Needed for cout and cin
  5.  
  6. void begin();
  7.  
  8. int iRandom; //variable for the random number to be stored in
  9. int iGuess; //user's input guess
  10. char cAgain; //variable to see if user wants to play again or not
  11. int iAttempts; //counts how many tries it takes the user
  12. bool game = true; //Allows the loop to end if this is changed to false
  13.  
  14. int main() {
  15.  
  16.         begin();
  17.  
  18.         return 0;
  19. }
  20.  
  21. void begin() {
  22.  
  23.         srand(GetTickCount()); //Makes sure it is for sure a random number!
  24.  
  25.         iRandom = rand()%100+1; //Generates a random number from 1-100
  26.  
  27.         system("cls");
  28.         cout << "Welcome to ApplezJuice's Random Number game!\n\n";
  29.  
  30.         while(game) { //A while loop that will continue as long as it remains true
  31.  
  32.                 cout << "Enter a guess between 1-100!\n";
  33.                 cin >> iGuess;
  34.  
  35.                 if (iGuess > iRandom) { //If statement to see if your guess was correct or not
  36.                         cout << "Your guess was too high!\n";
  37.                         cout << "Try again!\n\n";
  38.                         iAttempts++;
  39.                 }else if (iGuess < iRandom) {
  40.                         cout << "Your guess was too low!\n";
  41.                         cout << "Try again!\n\n";
  42.                         iAttempts++;
  43.                 }else if (iGuess == iRandom) {
  44.                         cout << "Congradulations! you are correct!\n You completed this game in " << iAttempts << " tries!\n\n"; //If correct then it will make the while loop false
  45.                         game = false; //changes the bool to false to make the while loop end
  46.                 }
  47.  
  48.         }
  49.                 cout << "Would you like to play again? (y/n)\n";
  50.                 cin >> cAgain;
  51.  
  52.         if (cAgain == 'y') {
  53.                 game = true; //makes the bool true again to allow the while loop to run
  54.                 iAttempts = 0; //resets the amount of guesses you took
  55.                 begin();
  56.         }else if (cAgain == 'n') {
  57.                 getchar(); //ends the game
  58.         }
  59. }

Attempt complete!

4
2D Graphics / Photo Manipulation
« on: June 25, 2012, 12:53:44 pm »
Here is a photo manip I attempted.

5
Technology / Cool website
« on: June 23, 2012, 12:28:26 am »
Awesome items for sale here, such as yoda ears for babies! xD

I found myself buying at least 1 thing so be warned!
http://www.thisiswhyimbroke.com/

6
Technology / SSD Awesomeness
« on: June 21, 2012, 03:21:13 pm »
Not sure if this has been posted here, sorry if it has been! But here is an amazing video showing 24 256GB Samsung MLC SSD's and put them in RAID to make an amazing computer!
http://www.youtube.com/watch?v=96dWOEa4Djs

7
Challenges / C++ Calculator
« on: June 20, 2012, 09:27:41 pm »
I am new so please excuse my code xD

Code: C++
  1. #include <iostream>
  2. #include <Windows.h>
  3. using namespace std;
  4.  
  5.  
  6. void begin();
  7.  
  8.  
  9. int main() {
  10.         cout << ("Welcome to Applez calculator\n\n");
  11.  
  12.         begin();
  13.  
  14. }
  15.  
  16. void begin() {
  17.         int iOperation;
  18.         double dblNum1;
  19.         double dblNum2;
  20.         double dblAnswer;
  21.  
  22.         cout << ("Which operation would you like to perform?\n1. Addition\n2. Subtraction\n3. Multiplication\n4. Division\n5. Exit\n");
  23.         cin >> iOperation;
  24.        
  25.         if (iOperation == 1) {
  26.                 cout << ("Enter your first number:\n");
  27.                 cin >> dblNum1;
  28.                 cout << ("Enter your second number:\n");
  29.                 cin >> dblNum2;
  30.                 dblAnswer = dblNum1 + dblNum2;
  31.                 cout << "Your answer is: " << dblAnswer << endl;
  32.         }
  33.         else if(iOperation ==2) {
  34.                 cout << ("Enter your first number:\n");
  35.                 cin >> dblNum1;
  36.                 cout << ("Enter your second number:\n");
  37.                 cin >> dblNum2;
  38.                 dblAnswer = dblNum1 - dblNum2;
  39.                 cout << "Your answer is: " << dblAnswer << endl;
  40.         }
  41.         else if(iOperation ==3) {
  42.                 cout << ("Enter your first number:\n");
  43.                 cin >> dblNum1;
  44.                 cout << ("Enter your second number:\n");
  45.                 cin >> dblNum2;
  46.                 dblAnswer = dblNum1 * dblNum2;
  47.                 cout << "Your answer is: " << dblAnswer << endl;
  48.         }
  49.         else if(iOperation ==4) {
  50.                 cout << ("Enter your first number:\n");
  51.                 cin >> dblNum1;
  52.                 cout << ("Enter your second number:\n");
  53.                 cin >> dblNum2;
  54.                 dblAnswer = dblNum1 / dblNum2;
  55.                 cout << "Your answer is: " << dblAnswer << endl;
  56.         }
  57.         else if(iOperation ==5) {
  58.                 system("pause");
  59.         }
  60.         else {
  61.                 cout << "Enter a number 1-5!\n";
  62.         }
  63.         system("pause");
  64. return 0;
  65. }


[edited name=ApplezJuice date=1340264370][/edited]

8
Introductions / Hello!
« on: June 20, 2012, 01:30:06 pm »
Hello everyone! I just started my journey into the world of programming! I am in the introduction to computer programming class at my local junior college and wish that one day that it will be my career. I have joined this forum to further my knowledge :)

Also on the verification questions for the registration, you should change the answer from the question "Is the current year 2011 (yes or no?):" to no rather than still being yes. Took me a little to figure out that my captcha wasn't wrong it was just a wrong answer on this question.

Pages: [1]

Donate


* Search


* Recent Posts

Image Comparison by Shishka
[May 15, 2017, 01:18:02 pm]


Re: srchub - free source code hosting by Nathan
[December 14, 2015, 11:37:02 pm]


Re: srchub - free source code hosting by Celestialkey
[November 27, 2015, 08:51:42 am]


Updates by Nathan
[October 30, 2015, 08:27:36 pm]


Re: Client-Server Messaging by Nathan
[October 25, 2015, 05:48:57 pm]