chevron_left chevron_right
Login Register invert_colors photo_library
Thread Rating:
  • 0 Vote(s) - 0 Average


filter_list [Source] Idea Generator
Author
Message
RE: [Source] Idea Generator #11
(09-22-2018, 09:56 PM)darkninja1980 Wrote:
(08-10-2018, 07:24 PM)IcyJake Wrote: This program was one of my first C++ programs I've ever made. It's literally the simplest thing ever, so don't think I am some God for making this, or don't think this was hard to make at all because it wasn't. Basically, all it does is, it generates ideas for you to do when you're bored and have nothing to do. Like I said, this was one of my first ever programs I made when I started C++. I found this in my old Visual Studio project files and just felt like sharing it with you guys because it's kind of special and nostalgic to me.

Anyways, here it is, lol:

Code:
// This is a program that generates ideas for you to do when you're bored and have nothing to do
// Made by: IcyJake

#include <iostream>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <random>

using std::cout;
using std::endl;

int main()
{
   srand(time(NULL));
   
   string ideaArray[] = {"Go on a walk", "Organize or change up your room", "Code", "Eat", "Drink", "Call up a friend", "Take a bubble bath", "Plan a party", "Listen to music", "Watch TV", "Play a game", "Go swimming", "Hang out with family or friends", "Research new ways to make money", "Make a YouTube video", "Spend time with pets (if you have any)", "Watch YouTube videos", "Make a fort", "Smoke", "Excercise", "Make your own game", "Think about your future", "Learn magic tricks", "Test your memory", "Take fun quizzes online", "Browse social media", "Paint", "Do a puzzle", "Try on outfits", "Read", "Sleep", "Make up scenarios in your head", "Look at old pictures", "Get a job if you don't have one", "Pick up trash where you live", "Try to make it through an hour without touching the floor", "Read the latest news", "Have a fire", "Prank call people", "Find stuff that you don't use that you could sell", "Go fishing", "Go camping"};
   
   string idea = ideaArray[rand() % 42];
   
   cout << idea << endl;
   
   return 0;
}

great source code. Smile

Thanks, man!

Reply

RE: [Source] Idea Generator #12
(09-23-2018, 07:17 PM)IcyJake Wrote:
(09-22-2018, 09:56 PM)darkninja1980 Wrote:
(08-10-2018, 07:24 PM)IcyJake Wrote: This program was one of my first C++ programs I've ever made. It's literally the simplest thing ever, so don't think I am some God for making this, or don't think this was hard to make at all because it wasn't. Basically, all it does is, it generates ideas for you to do when you're bored and have nothing to do. Like I said, this was one of my first ever programs I made when I started C++. I found this in my old Visual Studio project files and just felt like sharing it with you guys because it's kind of special and nostalgic to me.

Anyways, here it is, lol:

Code:
// This is a program that generates ideas for you to do when you're bored and have nothing to do
// Made by: IcyJake

#include <iostream>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <random>

using std::cout;
using std::endl;

int main()
{
   srand(time(NULL));
   
   string ideaArray[] = {"Go on a walk", "Organize or change up your room", "Code", "Eat", "Drink", "Call up a friend", "Take a bubble bath", "Plan a party", "Listen to music", "Watch TV", "Play a game", "Go swimming", "Hang out with family or friends", "Research new ways to make money", "Make a YouTube video", "Spend time with pets (if you have any)", "Watch YouTube videos", "Make a fort", "Smoke", "Excercise", "Make your own game", "Think about your future", "Learn magic tricks", "Test your memory", "Take fun quizzes online", "Browse social media", "Paint", "Do a puzzle", "Try on outfits", "Read", "Sleep", "Make up scenarios in your head", "Look at old pictures", "Get a job if you don't have one", "Pick up trash where you live", "Try to make it through an hour without touching the floor", "Read the latest news", "Have a fire", "Prank call people", "Find stuff that you don't use that you could sell", "Go fishing", "Go camping"};
   
   string idea = ideaArray[rand() % 42];
   
   cout << idea << endl;
   
   return 0;
}

great source code. Smile

Thanks, man!

your welcome
My IT skills that I know perfect is SQL, HTML ,css ,wordpress, PHP.
coding skills that I know is Java, JavaScript and C#

Reply

RE: [Source] Idea Generator #13
You should go back to this and try and half the code size. Maybe mess around with an SQL DB or something.

Reply






Users browsing this thread: 1 Guest(s)