Upload
Login or register

pokemonstheshiz

Last status update:
-
Personal Info
Date Signed Up:4/14/2012
Last Login:5/31/2016
FunnyJunk Career Stats
Comment Ranking:#230
Highest Content Rank:#620
Highest Comment Rank:#70
Content Thumbs: 21894 total,  25551 ,  3657
Comment Thumbs: 92554 total,  99836 ,  7282
Content Level Progress: 38.1% (381/1000)
Level 220 Content: Mind Blower → Level 221 Content: Mind Blower
Comment Level Progress: 70.5% (705/1000)
Level 375 Comments: Immortal → Level 376 Comments: Immortal
Subscribers:5
Content Views:1136046
Times Content Favorited:1368 times
Total Comments Made:22486
FJ Points:6283
Favorite Tags: is (5) | crashes (4) | my (4) | no (4) | the (4) | You (4) | a (3) | i (3) | lemon (3) | liz (3) | all (2) | Cars (2) | colbert (2) | dead (2) | Dog (2) | here (2) | it (2) | Just (2) | me (2) | movies (2)

latest user's comments

#28 - He's not in debt. His product lines are not doing as well as …  [+] (7 new replies) 03/05/2016 on Kanyea brock 0
User avatar
#29 - elcreepo (03/05/2016) [-]
So why are we talking like he is broke? It's all I see these days
User avatar
#33 - pokemonstheshiz (03/05/2016) [-]
Also, Kanye and Kim are still together, the divorce was just a rumor.
User avatar
#32 - pokemonstheshiz (03/05/2016) [-]
Okay, nvm, I was a little off base
www.businessinsider.com/is-kanye-west-53-million-in-debt-2016-2
He's not really in debt, he's just spent a lot of money on his companies and has yet to see those investments return. He still has a lot of money, not to mention his wife was already rich.
He's just asking for money because he doesn't want to do the investing any more since he's not seeing much return. Mostly because he claims that some of the companies he's working with (Nike, Adidas) aren't paying him enough from the profits
User avatar
#34 - elcreepo (03/05/2016) [-]
Interesting.

From this perspective he actually looks smart
User avatar
#35 - pokemonstheshiz (03/05/2016) [-]
Well, not entirely since he already invested that much into dumb products. His name is literally the only reason they'd sell at all, and the novelty of that is dying fast. Even if I was rich I wouldn't spend 3k on an ugly sweater, I'd buy from an actually respectable line.
User avatar
#36 - elcreepo (03/05/2016) [-]
Yes but considering how white trash have iPhones, name recognition is huge among the uneducated/bad with money.

The investments are stupid, I agree, but his backup plan isn't half bad for someone who spends most of his time trying to be the poster child for thug life
User avatar
#37 - pokemonstheshiz (03/05/2016) [-]
I'm fairly certain his egotistical stuff is all a front to sell more albums. Just listen to some of his older albums, he was cocky to a degree, but a far cry from what his public persona today.
#103 - dis one 03/05/2016 on tfw +1
#47125 - That's more likely JavaScript, not html. Yoi can learn JavaSc… 03/04/2016 on Technology Board 0
#55 - I was referring to the smiley face thing, it's used by a facebook page  [+] (2 new replies) 03/04/2016 on tfw +1
User avatar
#73 - fresighto (03/04/2016) [-]
oh
ok
sorry
#103 - pokemonstheshiz (03/05/2016) [-]
dis one
#47119 - Is there a good alternative to Clover for Windows 10? I like …  [+] (3 new replies) 03/04/2016 on Technology Board 0
User avatar
#47156 - shyyguy (03/06/2016) [-]
Did a quick google search. Have you tried this?:

"I've found a setting in Explorer whitch may be the cause of most of Clover issues. To fix this:

In Explorer window go to View -> Options;
In opened Folder Options window go to View tab, scroll down to "Launch folder windows in a separate process" and make sure it's UNCHECKED."

m.reddit.com/r/Windows10/comments/3dmfqf/does_clover_multi_tabs_in_explorer_work_with/
User avatar
#47157 - pokemonstheshiz (03/06/2016) [-]
Wow, that seems to work a lot better. Never thought it'd be something so simple. Thanks!
#47158 - shyyguy (03/06/2016) [-]
Yay ^_^
#10 - but do you give a heck?  [+] (4 new replies) 03/04/2016 on tfw +11
User avatar
#16 - fresighto (03/04/2016) [-]
No fucks given

Depression most often manifests are consuming apathy and no motivation, not sadness.
User avatar
#55 - pokemonstheshiz (03/04/2016) [-]
I was referring to the smiley face thing, it's used by a facebook page
User avatar
#73 - fresighto (03/04/2016) [-]
oh
ok
sorry
#103 - pokemonstheshiz (03/05/2016) [-]
dis one
#5 - I was hoping someone would do one of these. You're doing god's work 03/04/2016 on badass gang 0
#23 - A girl at my work was so skinny that no one, even her, thought… 03/04/2016 on Babies need fat to swim in +1
#47114 - If you want to learn minimal programming, RPG Maker XP is pret…  [+] (2 new replies) 03/04/2016 on Technology Board 0
#47120 - Hurro (03/04/2016) [-]
I've figured out a good representation of what I want, if you're still willing to share more advice, thank you. The closest thing I can think of is uhhh *ahem* Corruptions of Champions. That kind of Text-based advancement based on commands and rng, that influences a 2 dimensional image with moveable sprites, or things such as that. I'm guessing that's made on something basic like html, but is there any good resource to self-teach something like that?
User avatar
#47125 - pokemonstheshiz (03/04/2016) [-]
That's more likely JavaScript, not html. Yoi can learn JavaScript on sites like Codecademy
#209125 - It's not like it's horrible, just stuff like CompSci majors ju…  [+] (1 new reply) 03/04/2016 on Advice - love advice,... 0
User avatar
#209126 - linkofcourage (03/04/2016) [-]
Well I guess it's good that compsci and engineers have same base classes, my plan is comp Sci minor, not really sure what specialization yet
#209123 - Do that then. The reason I was mentioning is is because some …  [+] (3 new replies) 03/04/2016 on Advice - love advice,... 0
User avatar
#209124 - linkofcourage (03/04/2016) [-]
Aight, good to know my college isn't fucked up in that way
User avatar
#209125 - pokemonstheshiz (03/04/2016) [-]
It's not like it's horrible, just stuff like CompSci majors just need to know the basics, so no reason to take overly hard classes that are unrelated.
User avatar
#209126 - linkofcourage (03/04/2016) [-]
Well I guess it's good that compsci and engineers have same base classes, my plan is comp Sci minor, not really sure what specialization yet
#209121 - If you're taking Calc based physics, I think it generally only…  [+] (5 new replies) 03/04/2016 on Advice - love advice,... 0
User avatar
#209122 - linkofcourage (03/04/2016) [-]
Alright that's good

My school doesn't have phys221, which would be the calc based, offered until after I take phys114 which requires precal, so I'm pretty sure that's to get you through cal1 before starting phys221
User avatar
#209123 - pokemonstheshiz (03/04/2016) [-]
Do that then. The reason I was mentioning is is because some schools have trig based physics offered as well. However, that's for people that don't need to go any higher in physics, an engineer should take calc based, since the rest of your courses will be calc based anyway
User avatar
#209124 - linkofcourage (03/04/2016) [-]
Aight, good to know my college isn't fucked up in that way
User avatar
#209125 - pokemonstheshiz (03/04/2016) [-]
It's not like it's horrible, just stuff like CompSci majors just need to know the basics, so no reason to take overly hard classes that are unrelated.
User avatar
#209126 - linkofcourage (03/04/2016) [-]
Well I guess it's good that compsci and engineers have same base classes, my plan is comp Sci minor, not really sure what specialization yet
#60 - Except for 5, those all have to do with insurance costs, not h… 03/04/2016 on Seven Point Healthcare... +1
#17 - That would only be true if the CEO (and other key positions) w…  [+] (1 new reply) 03/04/2016 on Michael Mooooooore Food 0
User avatar
#18 - AnomynousUser (03/04/2016) [-]
How about this to clarify my point: If you want groceries, you can go to Publix, Kroger, Walmart, Albertsons, etc. If you want motor oil, there are multiple brands you can buy from. If you want a car, there are many manufacturers. But if you live in the US, you can't choose a government. You can't choose who to give your taxes to, if anyone. That's why it's a monopoly.

A business could be a monopoly and let the public vote for who runs it. What matters is that they are the only supplier, not how people get into positions of running it.
#39 - This is good, but it still doesn't really address the initial …  [+] (4 new replies) 03/04/2016 on Seven Point Healthcare... -6
User avatar
#52 - jonswan (03/04/2016) [-]
2,3,4,5, and 7 all do this.
User avatar
#126 - somuchfreedom (03/04/2016) [-]
why not one? one is a huge fucking problem, you can not force people to buy a product they do not want
User avatar
#135 - jonswan (03/04/2016) [-]
yeah, you are right.
User avatar
#60 - pokemonstheshiz (03/04/2016) [-]
Except for 5, those all have to do with insurance costs, not healthcare cost itself. Transparency is a good step though
#7 - The real reason is because he's dead and in Eminem's basement.… 03/04/2016 on D.R.E. +4
#15 - Unless the business sells necessities, like water, electricity…  [+] (3 new replies) 03/03/2016 on Michael Mooooooore Food 0
User avatar
#16 - AnomynousUser (03/04/2016) [-]
By that logic, a monopoly business is not a monopoly if the CEO of it is elected.

I'm a minarchist, not an anarchist. I see police, fire departments, roads, jury, and military as necessary parts of government.
User avatar
#17 - pokemonstheshiz (03/04/2016) [-]
That would only be true if the CEO (and other key positions) were elected by the public, but they are not. Sometimes with enough public outcry (not necessarily with monopolies, but sometimes with businesses) they can say "fuck that guy", but they don't choose the successor.
User avatar
#18 - AnomynousUser (03/04/2016) [-]
How about this to clarify my point: If you want groceries, you can go to Publix, Kroger, Walmart, Albertsons, etc. If you want motor oil, there are multiple brands you can buy from. If you want a car, there are many manufacturers. But if you live in the US, you can't choose a government. You can't choose who to give your taxes to, if anyone. That's why it's a monopoly.

A business could be a monopoly and let the public vote for who runs it. What matters is that they are the only supplier, not how people get into positions of running it.
#13 - You mean a monopoly where the citizens have the power to decid…  [+] (5 new replies) 03/03/2016 on Michael Mooooooore Food 0
User avatar
#14 - AnomynousUser (03/03/2016) [-]
If a person doesn't like a business monopoly, they can have a direct say in supporting them by doing business with them or not. If a person doesn't like the government officials, they're forced to support them (financially) until it's time to hope enough others vote their way or until they leave the country.
User avatar
#15 - pokemonstheshiz (03/03/2016) [-]
Unless the business sells necessities, like water, electricity, etc. Also, a government is not a monopoly if you have multiple parties and actual voting. A monarchy would be a monopoly, and no I'm not in favor of that.
Even if there were no business regulations, you'd still have a government you have to pay taxes to for police, military, schools, etc.
User avatar
#16 - AnomynousUser (03/04/2016) [-]
By that logic, a monopoly business is not a monopoly if the CEO of it is elected.

I'm a minarchist, not an anarchist. I see police, fire departments, roads, jury, and military as necessary parts of government.
User avatar
#17 - pokemonstheshiz (03/04/2016) [-]
That would only be true if the CEO (and other key positions) were elected by the public, but they are not. Sometimes with enough public outcry (not necessarily with monopolies, but sometimes with businesses) they can say "fuck that guy", but they don't choose the successor.
User avatar
#18 - AnomynousUser (03/04/2016) [-]
How about this to clarify my point: If you want groceries, you can go to Publix, Kroger, Walmart, Albertsons, etc. If you want motor oil, there are multiple brands you can buy from. If you want a car, there are many manufacturers. But if you live in the US, you can't choose a government. You can't choose who to give your taxes to, if anyone. That's why it's a monopoly.

A business could be a monopoly and let the public vote for who runs it. What matters is that they are the only supplier, not how people get into positions of running it.
#8 - That lowest price only persists for as long as the other compa… 03/03/2016 on Michael Mooooooore Food +3
#61 - >> #55 , Just click the number by the comment  [+] (1 new reply) 03/03/2016 on tfw no autistic model waifu +2
#77 - dudulli (03/03/2016) [-]
Thanks, man
#2 - My favorite 03/03/2016 on every day +1
#47081 - none of that worked. it seems to only allow you to sear… 03/03/2016 on Technology Board 0
#3 - Yeah, let's just get rid of all government regulations on busi…  [+] (11 new replies) 03/03/2016 on Michael Mooooooore Food +21
User avatar
#12 - AnomynousUser (03/03/2016) [-]
You distrust monopolies so much that you trust a monopoly to prevent other monopolies?
User avatar
#13 - pokemonstheshiz (03/03/2016) [-]
You mean a monopoly where the citizens have the power to decide most of the key members? Yes. In a business monopoly, the only way for a citizen to have any power is to not purchase that product at all, which does not work for necessities, and probably wouldn't even work for most luxuries.
User avatar
#14 - AnomynousUser (03/03/2016) [-]
If a person doesn't like a business monopoly, they can have a direct say in supporting them by doing business with them or not. If a person doesn't like the government officials, they're forced to support them (financially) until it's time to hope enough others vote their way or until they leave the country.
User avatar
#15 - pokemonstheshiz (03/03/2016) [-]
Unless the business sells necessities, like water, electricity, etc. Also, a government is not a monopoly if you have multiple parties and actual voting. A monarchy would be a monopoly, and no I'm not in favor of that.
Even if there were no business regulations, you'd still have a government you have to pay taxes to for police, military, schools, etc.
User avatar
#16 - AnomynousUser (03/04/2016) [-]
By that logic, a monopoly business is not a monopoly if the CEO of it is elected.

I'm a minarchist, not an anarchist. I see police, fire departments, roads, jury, and military as necessary parts of government.
User avatar
#17 - pokemonstheshiz (03/04/2016) [-]
That would only be true if the CEO (and other key positions) were elected by the public, but they are not. Sometimes with enough public outcry (not necessarily with monopolies, but sometimes with businesses) they can say "fuck that guy", but they don't choose the successor.
User avatar
#18 - AnomynousUser (03/04/2016) [-]
How about this to clarify my point: If you want groceries, you can go to Publix, Kroger, Walmart, Albertsons, etc. If you want motor oil, there are multiple brands you can buy from. If you want a car, there are many manufacturers. But if you live in the US, you can't choose a government. You can't choose who to give your taxes to, if anyone. That's why it's a monopoly.

A business could be a monopoly and let the public vote for who runs it. What matters is that they are the only supplier, not how people get into positions of running it.
User avatar
#7 - yolobrolo (03/03/2016) [-]
A lot of people in this country have a problem with the Federal Reservoir

www.youtube.com/watch?v=uPY2Kv8K2ac
User avatar
#6 - sesshii (03/03/2016) [-]
Real monopoly cannot exist without government.
The only exception is J.P Morgan when he sold fuel to the lowest price possible, making sure competition was unprofitable for them. And in return, the consumer got the lowest price of oil ever, and nobody complained.
If you think government regulations prevent monopoly, then you're doing it wrong.
User avatar
#8 - pokemonstheshiz (03/03/2016) [-]
That lowest price only persists for as long as the other companies do, then they're free to jack the prices back up. Monopolies also stagnate improvement to products and services, the harder the market is to break into, the less other companies have to do.
User avatar
#5 - lordlolland (03/03/2016) [-]
Fun fact: Monopoly's ancestor "The Landlord's Game" was created to show contemporary landlords as parasites and to push Georgist economic thought by making the economic system seem unfair.

Georgism holds that land and natural resources are inherently the property of the community as a whole, but that people should be free to keep whatever they produce untaxed.
In a perfect Georgist system there would be no land property rights, only rights to the usage of lands which would be obtained freely but subject to a steep land tax based on the profits extracted from the land, all taxes on work and manufacturing would be abolished. The taxes would then be given back to people as a citizens dividend, incentivising everyone to increase the wealth of the community instead of just their own.

Georgism is generally considered a halfway point between classical market liberalism and socialism.

Greenland has a Georgist land system
#47076 - As in, any exe files that are not in my C drive aren't found  [+] (2 new replies) 03/03/2016 on Technology Board 0
User avatar
#47077 - reginleaf (03/03/2016) [-]
Make a folder on your C drive that's filled with exe shortcuts from your other drives? Or just slap shortcuts on your desktop and hide them from view.
User avatar
#47081 - pokemonstheshiz (03/03/2016) [-]
none of that worked. it seems to only allow you to search programs that it installed, doesn't even care about shortcuts
#47075 - From what I've read, in Windows 10 indexing does index .exe fi…  [+] (3 new replies) 03/03/2016 on Technology Board 0
User avatar
#47076 - pokemonstheshiz (03/03/2016) [-]
As in, any exe files that are not in my C drive aren't found
User avatar
#47077 - reginleaf (03/03/2016) [-]
Make a folder on your C drive that's filled with exe shortcuts from your other drives? Or just slap shortcuts on your desktop and hide them from view.
User avatar
#47081 - pokemonstheshiz (03/03/2016) [-]
none of that worked. it seems to only allow you to search programs that it installed, doesn't even care about shortcuts
Leave a comment Refresh Comments (1543)
[ 1543 comments ]
Latest users (1): pokemonstheshiz, anonymous(1).
Anonymous comments allowed.
97 comments displayed.
#1888 - ytrellworld (05/06/2016) [-]
hey, so i'm building a game and want to makre sure my functions are written correctly; would you be able to proofread the last 3? (help, reset, end)

pastebin.com/1Mm6jZ6Q

thanks in advance. as you can tell i haven't finished the other functions because i haven't got the time right now, but i will. i have the entire script in a text file waiting to be transfered. it's going to be a great accomplishment when i finish this.
#1889 to #1888 - pokemonstheshiz ONLINE (05/06/2016) [-]
Looks fine to me. I would name your RESET variable just to reset. It's not enforced, but by convention all uppercase variables are generally constants
#1890 to #1889 - ytrellworld (05/06/2016) [-]
i did not know that. also, i'm getting a "switch quantity not an integer" when compiling
does that mean i can't write switch statements for strings?
#1891 to #1890 - ytrellworld (05/06/2016) [-]
so i'm reading this: www.cplusplus.com/forum/beginner/21906/
would that work?
#1892 to #1891 - ytrellworld (05/06/2016) [-]
i wrote this as a test run to see if it would work as enum type and nope, not available
i think my only option is to use if and else if statements
which is gonna look really really messy
#1851 - ytrellworld (05/01/2016) [-]
Do you want to help me not fail my class? Because it's to the point where the material is just too confusing for me. She's teaching us the stuff, but not how to apply it in problems. Like... I just don't get how to organize the things because I'm a very visual learner and all that text makes my brain go numb.

I'd only need 3 problems done, but they'd be kind large codes so I am totally willing to compensate your work if you want me to. I just can't let these 3 ones go unfinished by sunday midnight because then it won't count. Also, thank you for all your help thus far, I really have appreciated it. I'm probably going to drop out of college after this though because my parents are paying for it and my mom keeps complaining about "wasted money" when I fail a class so...
#1852 to #1851 - pokemonstheshiz ONLINE (05/01/2016) [-]
I can take a look, not sure if I'll have the time
#1853 to #1852 - ytrellworld (05/01/2016) [-]
Anything helps at this point. just some notes, to make it look like my work please do use spaces everywhere. i know a lot of people don't do that, but it's easier for me to read anyway.

since it's all a bunch of text i put them all into one image: orig13.deviantart.net/a31b/f/2016/121/4/8/helpsavemeplease_by_wolfenthusiast-da0z8mq.png

and here are the provided texts from the files provided:

--C8P2--

Jason 10 15 20 25 18 20 26
Samantha 15 18 29 16 26 20 23
Ravi 20 26 18 29 10 12 20
Sheila 17 20 15 26 18 25 12
Ankit 16 8 28 20 11 25 21

--C9P1--

Bill Quarter_Back 70 0 8754 0 573
Jackson Receiver 55 87 50 5490 574
Grahm Running_Back 45 30 0 50 2800
McCoy Full_Back 25 10 0 25 3762
Daryl Quarter_Back 50 2 7560 0 450
Santiago Left_Tackle 5 0 0 0 0
Hanks Receiver 35 37 0 3590 876
Johnson Running_Back 25 80 0 100 4000
Miller Receiver 110 250 150 7867 2100
Ruth Quarter_Back 85 0 12901 0 3249

and again if you want i can totally compensate your work. i already feel bad for needing someone else to do this for me...
#1855 to #1853 - pokemonstheshiz ONLINE (05/01/2016) [-]
I can give you a basic algorithm of how to do these and you try and figure out how to do it. Most of these are pretty simple, it's just about being able to logically plan these out. Did you take a programming logic class yet?
Q1) You could make a struct/class that represents a candidate, and then make an array of those, or make two arrays to hold the names and the number of votes. Loop through 5 iterations and get the user input for each candidate. Loop through wherever you're storing the number of votes in, and add them up to have the total. Then the only thing to do is do the output, which will just involve some basic formatting.
Q2)Create the arrays specified (one to store the runner's names, and a 7x5 int array to store the miles run by each runner for each day). Upon the program start, check to see if the file marathon.txt exists, and can be read. If so, read the numbers and names into your array. If not, initialize all your numbers to 0, and initialize the names. The rest is pretty straightforward reading the data, writing the data, and formatting your output.
Q3)This is pretty much word for word in the question. Make a struct that will hold a player's info, and make an array of those structs. Read from PlayerData.txt and fill your array. Make your menu. The search function iterates through an array and looks for the inputed name. The display option just iterates through the array and lists all the player's and their stats. The update function will be similar to the search function, but upon finding the indicated player it will show a list of options you can change, and then you just get the user's input and change whatever value in the array, then write all the current values to the file.

If you at least do the barebones of these it might be easier to help you tomorrow.
#1874 to #1855 - ytrellworld (05/02/2016) [-]
Can I make a void function for inputing info into a struct? Or will it not work because the struct is inside int main() ?
#1875 to #1874 - pokemonstheshiz ONLINE (05/02/2016) [-]
you can make it a global struct by defining it outside the main
#1876 to #1875 - ytrellworld (05/02/2016) [-]
okay i'm making things global now.
so, do you know how i would change the text file? it seems like she wants the changed data to be reflected in the text. but i don't know how that works, because you can't ofstream and ifstream the same variablle
#1877 to #1876 - pokemonstheshiz ONLINE (05/02/2016) [-]
you need to read the text from the file and write it into a temp file, changing the lines that need to be changed. Then write the lines from the temp file into the main file. Then remove the temp file
#1878 to #1877 - ytrellworld (05/02/2016) [-]
hey there's 13 minutes left, would you mind putting that in for me?

i have literally everything else done, except when response is set to q it crashes hard. idk how to fix that

pastebin.com/M8LUfMrR
#1879 to #1878 - ytrellworld (05/02/2016) [-]
wait i don't have it set up correctly. i have the user input index, not response.
#1882 to #1879 - pokemonstheshiz ONLINE (05/02/2016) [-]
Separate your user inputs, don't ask for multiple things on multiple lines
#1880 to #1879 - ytrellworld (05/02/2016) [-]
OKAY HERE'S THE FIXED RESPONSE ONE: pastebin.com/wEHeYWvQ
#1883 to #1880 - pokemonstheshiz ONLINE (05/02/2016) [-]
while (index>=0)
{
index = 0;
display_names();

cout << "\nSelect a player number to view info, or 0 to quit.\n\n";

cin >> index;
index -= 1;
if (index>=0)
{
player_info();
}
};
#1884 to #1883 - ytrellworld (05/02/2016) [-]
well, it's over now. i got it in right as it turned 12:00, so it even says "(LATE)" on it.
oh well, thanks for helping. i really hope i don't fail this course..
#1885 to #1884 - pokemonstheshiz ONLINE (05/02/2016) [-]
Good luck man. Do you have a final too?
#1886 to #1885 - ytrellworld (05/02/2016) [-]
yeah but i just did the math and i am guaranteed to fail this class. nothing can bring it up now.
#1887 to #1886 - pokemonstheshiz ONLINE (05/02/2016) [-]
That's unfortunate, sorry to hear that. You should try to learn programming logic, and maybe try some object oriented programming before you try the class again. It makes it easier to conceptualize and learn to plan, at least it did for me
#1871 to #1855 - ytrellworld (05/02/2016) [-]
[Q2] okay so i wrote the entire code forgetting about the text file. now i gotta rewrite it to include file input grrr
#1872 to #1871 - ytrellworld (05/02/2016) [-]
aaaaaaaaaaaand now setprecision isn't working.
the average with 35 should be 35.43 .
Here's what I have: pastebin.com/nQGJJ6q8
And here's the input file: pastebin.com/4MasU1s7
#1873 to #1872 - ytrellworld (05/02/2016) [-]
nvm figured it out. i need "fixed" before setprecision.
#1854 to #1853 - ytrellworld (05/01/2016) [-]
the main reason i can't do the first problem is i really just don't know what to do with the arrays. it hasn't clicked yet.
#1856 to #1854 - pokemonstheshiz ONLINE (05/01/2016) [-]
Arrays are used to hold small lists of data.
Imagine you have a list of names. Do you want to have a separate variable that holds each of them?
std::string name_one = "Bill";
std::string name_two = "Tim";
std::string name_three = "Fred";
std::string name_four = "Sue";
std::string name_five = "Sally";
Maybe for a few names, but for 10? 20? 50? No, you'd want some sort of structure that can hold them all, and you can easily look through.
std::string names[5] = {"Billy","Tim","Fred","Sue","Sally& quot;};
#1857 to #1856 - ytrellworld (05/01/2016) [-]
so would i do something like this for the variable initializations:

string name[5];
int votes[5];
int total = votes / 5;
double percent = (votes / total) * 100;
#1858 to #1857 - pokemonstheshiz ONLINE (05/02/2016) [-]
Almost correct
Your total votes should be the sum of all the votes for each individual candidate.
Also, when calculating your percent, make sure you cast either votes or total to a double, because two integers dividing will give you an integer (5/2 will give you 2)
#1859 to #1858 - ytrellworld (05/02/2016) [-]
so... how would i add the array? do i need to do a loop function with another int variable?
#1860 to #1859 - pokemonstheshiz ONLINE (05/02/2016) [-]
int total = 0;
for (int i = 0; i<5; i++){
total+=name[i];
}
std::cout << total << std::endl;
#1862 to #1860 - ytrellworld (05/02/2016) [-]
How do I input for an array though? I'm getting an error for cin >> name and cin >> votes
#1863 to #1862 - ytrellworld (05/02/2016) [-]
wait scratch that, i can't cast an array as a different number type. i can't do static_cast<double>(votes)
#1864 to #1863 - pokemonstheshiz ONLINE (05/02/2016) [-]
static cast the total instead
#1865 to #1864 - ytrellworld (05/02/2016) [-]
here's the product; though when you get the results page it for some reason doesn't space things how they should. setw(n) has worked before so why not here?

pastebin.com/0FXTqm6d
#1866 to #1865 - pokemonstheshiz ONLINE (05/02/2016) [-]
pastebin.com/23yxuy71
I didn't add anything to stop it from breaking if you enter letters when asking for the votes.
Also, I split up the asking of the name and votes, as well as asking for each instead of just one big lump insert. That's really confusing for a user. Formmating is done too
#1867 to #1866 - ytrellworld (05/02/2016) [-]
what the ****... it's acting as if i'm running my version, not yours. i closed the program and reopened it, then loaded the code and tried again but it still acts like mine.
#1868 to #1867 - pokemonstheshiz ONLINE (05/02/2016) [-]
You have to compile to see the changes.
#1869 to #1868 - ytrellworld (05/02/2016) [-]
i just deleted everything in the folder, in hopes of clearing its memory, and then made a new file and pasted the code back in. worked just fine. so now that one's done.
#1870 to #1869 - pokemonstheshiz ONLINE (05/02/2016) [-]
When you compile it creates your .exe file, which is what you run, the source code is in the .cpp file.
#1861 to #1860 - ytrellworld (05/02/2016) [-]
i can put that as a void function outside of main, and then call it back during the output screen. it should come last in the display. i think i'm starting to get this maybe.
#1850 - IHaveADHD (04/14/2016) [-]
Faggots fly when you're a time.
#1847 - ytrellworld (04/11/2016) [-]
How would I write a switch for when you have an integer variable but the user inputs something not a number?
#1848 to #1847 - pokemonstheshiz ONLINE (04/11/2016) [-]
the trick I use is

while (std::cout << "Please input the desired check amount as a number " && !(std::cin >> myInt)) {

//code
}

If the input does not match the intended type, the while statement will continue to run.

#1849 to #1848 - ytrellworld (04/11/2016) [-]
i got it figured out. my buddy showed me some code and i took out an extraneous variable.

while (program isn't exited)
{
~code stuffs~

cin >> numcups

if(cin.fail())

{
cin.clear();
cin.ignore();
cout << "Please enter an integer only." << endl;
}
}
#1835 - ytrellworld (04/08/2016) [-]
If I create a namespace, does that mean when i type in "using namespace custom;" i can only use what i have declared within that namespace?
#1846 to #1835 - ytrellworld (04/08/2016) [-]
okay uhhh... the problem i'm working on now is a menu, but the teacher wrote in "reduce the number of mouse clicks"

???

i don't know if she expects a click-able menu or what she means by that.
#1837 to #1835 - pokemonstheshiz ONLINE (04/08/2016) [-]
Most people tend not to use namespaces though
#1836 to #1835 - pokemonstheshiz ONLINE (04/08/2016) [-]
It means you can use what you've defined in that namespace without specifying the library. You also still have to include the files you want from that library

#include <iostream>
using namespace std;

means I can type
cout << "hello world" << endl;
instead of
std::cout << "hello world" << std::endl

Because unless otherwise stated, it's going to assume I mean the std library.
#1838 to #1836 - ytrellworld (04/08/2016) [-]
oh okay.
now, i'm working with enum variables and wanna know if i did this correctly
#1840 to #1838 - pokemonstheshiz ONLINE (04/08/2016) [-]
If you actually want to demonstrate the enum's use, should be
case PEACOCK
case SPARROW
etc
#1841 to #1840 - ytrellworld (04/08/2016) [-]
really? I'm a tad confused with enum types. I thought if you initialized a variable (here it's "bird") it would be an integer, not a string type.
#1843 to #1841 - pokemonstheshiz ONLINE (04/08/2016) [-]
birdType:: PEACOCK
with no space
#1845 to #1844 - pokemonstheshiz ONLINE (04/08/2016) [-]
Should work probably.
the variables in enums basically work as constants
#1842 to #1841 - pokemonstheshiz ONLINE (04/08/2016) [-]
sorry
birdType:EACOCK
#1839 to #1838 - ytrellworld (04/08/2016) [-]
here it is as a paste, oops
pastebin.com/RfrvVh2y
#1825 - ytrellworld
has deleted their comment [-]
#1834 to #1825 - pokemonstheshiz ONLINE (03/25/2016) [-]
pastebin.com/VTKzqJhY
Assuming the values are space separated. I read and stored them, you have to sort and output them still
#1829 to #1825 - pokemonstheshiz ONLINE (03/25/2016) [-]
Would you mind if I just rewrote it? I think you're making reading files more complicated than it is. Also, even if it were reading correctly, your sorting logic doesn't really work, it sorts each line compared to each other, but not overall.
I'm going to add everything to a vector, and then sort that vector
#1830 to #1829 - ytrellworld
has deleted their comment [-]
#1831 to #1830 - pokemonstheshiz ONLINE (03/25/2016) [-]
Can you use arrays? You could rewrite mine to use arrays instead, you'd just have to read the files twice so you can allocated the array size first.
Or you could just read ahead. My profs always told us that we could use concepts not yet covered, but we were responsible for understanding them.
#1832 to #1831 - ytrellworld
has deleted their comment [-]
#1833 to #1832 - ytrellworld
has deleted their comment [-]
#1826 to #1825 - ytrellworld
has deleted their comment [-]
#1827 to #1826 - ytrellworld
has deleted their comment [-]
#1828 to #1827 - ytrellworld
has deleted their comment [-]
#1817 - ytrellworld
has deleted their comment [-]
#1820 to #1817 - ytrellworld
has deleted their comment [-]
#1822 to #1820 - ytrellworld (03/07/2016) [-]
update 2: i figured it all out. sorry for cluttering up your profile >~<
#1823 to #1822 - pokemonstheshiz ONLINE (03/07/2016) [-]
Np, glad you figured it out. Still working on C++?
#1824 to #1823 - ytrellworld (03/07/2016) [-]
ah, yes. i'm taking a class on it. i don't know what i can apply my skils to just yet, but maybe in the future i'll come up with something. maybe...
#1821 to #1820 - ytrellworld
has deleted their comment [-]
#1819 to #1817 - ytrellworld
has deleted their comment [-]
#1818 to #1817 - ytrellworld
has deleted their comment [-]
#1812 - mariopimpjr ONLINE (02/24/2016) [-]
Kids Crying for No Apparent Reason Compilation
#1813 to #1812 - pokemonstheshiz ONLINE (02/24/2016) [-]
what are you referring to?
#1814 to #1813 - mariopimpjr ONLINE (02/24/2016) [-]
i just feel bad when babies cry and at the same time its cute because of the reason they are
#1815 to #1814 - pokemonstheshiz ONLINE (02/24/2016) [-]
but why on my profile?
do I know you?
#1816 to #1815 - mariopimpjr ONLINE (02/24/2016) [-]
to show you
#1804 - ytrellworld (02/15/2016) [-]
so uhhh... how do i generate a random integer number? I'm trying to make a "guess the number" program but I can't figure it out with googling
#1805 to #1804 - pokemonstheshiz ONLINE (02/15/2016) [-]
you have to import cstdlib (a utilities library from C)
Then literally all you have to do is use rand()
If you want to limit the range, a neat trick is to use a modulus

int num = rand()%15;

Will generate a random integer between 0 and 14 (since modulus just gives you the remainder, it will always be between 0 and your number -1)
#1806 to #1805 - ytrellworld (02/15/2016) [-]
i'm gonna need help re-writing this code, because i can't figure out why the compiler insists that using backslash isn't allowed.
ideone.com/EtsYA0
i'm still new to c++ so i'm probably making really obvious mistakes here
#1808 to #1806 - pokemonstheshiz ONLINE (02/15/2016) [-]
or www.cplusplus.com/forum/beginner/31758/
I don't use linux or g++, I just use visual studios and its compiler, so I'm having to google this stuff
#1807 to #1806 - pokemonstheshiz ONLINE (02/15/2016) [-]
Essentially your problem is g++ isn't specifying that you're using c++11
try adding a compiler option when you run

g++ -std=c++11 your_file.cpp

You also have some other issues with the actual code, but let's solve that one first
#1809 to #1807 - ytrellworld (02/15/2016) [-]
i'll just scrap it and start over another day
#1811 to #1809 - pokemonstheshiz ONLINE (02/15/2016) [-]
one thing I forgot to mention about rand the other day is that you should set the seed for a random number if you want it to actually be random every time, otherwise it will assume the seed was 1. Meaning every time you run the program you'll get the same set of values. The trick I use here is to set the seed (using srand() ) to time(null), which is the current system time in seconds (since the 1970). That way you're setting the seed to an ever changing number, giving you different results every time
#1810 to #1809 - pokemonstheshiz ONLINE (02/15/2016) [-]
pastebin.com/7u1hffaL

Here, I rewrote it to work correctly. Also, visual studios works is also for linux
#1795 - anonymousperson (04/15/2015) [-]
Hey man!
Could you do me a favor?
#1796 to #1795 - pokemonstheshiz ONLINE (04/15/2015) [-]
sup?
#1797 to #1796 - anonymousperson (04/15/2015) [-]
My DM gave me a hint to a character and all I know is that she scares the shut out of my friend. And that she's evil and powerful.
Also, something to do with solo song
Could you reverse image search this?
#1798 to #1797 - pokemonstheshiz ONLINE (04/15/2015) [-]
www.deviantart.com/art/Lady-Sanguine-340096110

Possible supposed to be the wife of Sanguine, daedric prince of debauchery
elderscrolls.wikia.com/wiki/Sanguine
#1799 to #1798 - anonymousperson (04/15/2015) [-]
You are awesome man
Thanks
Having no complaints sucks
#1800 to #1799 - pokemonstheshiz ONLINE (04/15/2015) [-]
np lol
oh, I finished up my fangame kit (it's not a game, it's a kit to help developers bring fangames into the 6th gen)
you should check it out
#1801 to #1800 - anonymousperson (04/15/2015) [-]
:: computer is Pepsi. But of course I would!