Search found 194 matches

by Kow
Fri Sep 04, 2009 6:34 am UTC
Forum: Coding
Topic: C++
Replies: 15
Views: 2149

Re: C++

http://cplusplus.com/doc/tutorial/

Often you can get a C++ textbook for cheap at used book stores.
by Kow
Fri Sep 04, 2009 6:33 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Re: Function type string in C++

I also prefer the next line bracket. I had a Java book that used same line braces and it annoyed the hell out of me.
by Kow
Fri Sep 04, 2009 5:40 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Re: Function type string in C++

Both work, but having all the headers first is more idiomatic. To put it in Java terms, the using declaration in C++ is similar to imports in Java. For instance, "using namespace std;" is similar to "import java.util.*;"... imports a whole namespace into the main namespace... us...
by Kow
Fri Sep 04, 2009 4:45 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Re: Function type string in C++

Also, a minor point, but you don't have to have "using namespace std;" twice - just once after you've imported all the headers will do. Ok cool. All my programming classes I'm in are geared to the people who dont know a damned thing about programming so they haven't really touched on that...
by Kow
Fri Sep 04, 2009 4:05 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Re: Function type string in C++

Wow I'm retarded. I did that in both the original program AND the one I posted here. Changed it on the one posted here and it runs. Now I'm trying it on the original file to see if THAT works. Thanks.

Edit: It does. Thanks again
by Kow
Fri Sep 04, 2009 3:44 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Re: Function type string in C++

#include <iostream> using namespace std; #include <string> using namespace std; string strFunct() { return "testString"; } int main() { cout << numToString() << endl; system("pause"); return 0; } Visual studio's error message is: Error 1 error C3861: 'numToString': identifier no...
by Kow
Fri Sep 04, 2009 3:19 am UTC
Forum: Coding
Topic: Function type string in C++
Replies: 11
Views: 3491

Function type string in C++

I was trying to make a function of the type string but it's not letting me. I have: string numToStr(int c) { if(c==1) return "word1"; else if(c==2) return "word2"; else return "word3"; } The actual content of the function is irrelevant. That's not the problem. I keep er...
by Kow
Thu Sep 03, 2009 5:28 am UTC
Forum: Science
Topic: Gravitons
Replies: 11
Views: 1185

Re: Gravitons

Is that what the consensus on that is? I wish I could find the article where I read it.
by Kow
Mon Aug 31, 2009 4:05 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0630: "Time Travel"
Replies: 147
Views: 29893

Re: "Time Travel" Discussion

No inside joke to this. I like it! Very Gary Larsen-ey.
by Kow
Sat Aug 29, 2009 5:12 pm UTC
Forum: Science
Topic: Does light exert gravity?
Replies: 69
Views: 7536

Re: Does light exert gravity?

If we were to have two particles travelling arbitrarily close to C it become quite simple. The two particles observe the other to be stationary and so will gravitate towards each other exactly as if the were statioanry (because they are). Would relativity state that these objects dont attract accor...
by Kow
Fri Aug 28, 2009 5:20 pm UTC
Forum: Science
Topic: Does light exert gravity?
Replies: 69
Views: 7536

Re: Does light exert gravity?

doogly wrote: There is a way to do it classically; this article sugests you'd need quantum gravity (http://www.fqxi.org/data/articles/Crane_Louis.pdf) but is a little old. I still point to it because I am highly amused by the picture they used.

It's just like model + space and then BAM science guy. Lmao!
by Kow
Fri Aug 28, 2009 5:18 pm UTC
Forum: Science
Topic: Gravitons
Replies: 11
Views: 1185

Re: Gravitons

Gravity is simply a casualty of bendable spacetime. I doubt very much that they will ever be directly observed, however, since they make neutrinos look like strongly interacting particles. We can only hope. I'm interested in what kind of gravitational anomalies will be discovered with rotating supe...
by Kow
Fri Aug 28, 2009 3:52 pm UTC
Forum: Science
Topic: Gravitons
Replies: 11
Views: 1185

Gravitons

What's the big deal with these? I never understood why they seemingly must exist. Gravity is simply a casualty of bendable spacetime. The reason it's not so powerful on small scales as large is the same reason you can't bend a thick sheet of plastic certain ways. Sure, on long distances for this pla...
by Kow
Fri Aug 28, 2009 12:29 am UTC
Forum: Science
Topic: An old idea of mine for faster than light "travel"
Replies: 4
Views: 1071

Re: An old idea of mine for faster than light "travel"

No. Your push wave would propagate the wood at presumably the speed of sound in wood and the other end would move after the push wave reached the end.
by Kow
Thu Aug 27, 2009 3:39 pm UTC
Forum: Science
Topic: Does light exert gravity?
Replies: 69
Views: 7536

Re: Does light exert gravity?

Though shouldn't this simplified view make it impossible for gravity to bend light (which it does)? Light still has to travel through space which is being curved by gravity. This guy pretty much hit the nail on the head. It's not that the mass is "pulling" on the light, it's that the spac...
by Kow
Thu Aug 27, 2009 1:14 am UTC
Forum: Science
Topic: Battery Powered Gyroscope
Replies: 4
Views: 3064

Re: Battery Powered Gyroscope

http://cgi.ebay.com/Gyro-Fun-Top-Batter ... dZViewItem

And yes, it would be cool. I've always loved gyroscopes, but the ones I got were always really bad quality.
by Kow
Wed Aug 26, 2009 2:07 am UTC
Forum: Coding
Topic: Good Lua Editor
Replies: 24
Views: 3039

Re: Good Lua Editor

I get the feeling that few of you have actually used Visual Studio and truly made use of its features. Once you use Visual Studio, using any other IDE/editor is like going back to the stone ages. There's essentially nothing on Linux that can match Visual Studio. Of couse, Visual Studio really only ...
by Kow
Wed Aug 26, 2009 2:02 am UTC
Forum: School
Topic: The where are you going to Uni 2009 thread
Replies: 43
Views: 4569

Re: The where are you going to Uni 2009 thread

Full Sail University
by Kow
Wed Aug 26, 2009 1:56 am UTC
Forum: School
Topic: AP U.S. History
Replies: 27
Views: 2640

Re: AP U.S. History

I guess you got lucky then, where I come from (and people I know from elsewhere) found that the overwhelming majority of AP classes were nothing like college classes. The exception was my AP Eng Comp class, because the teacher also taught as an adjunct at a nearby university and so we were taking t...
by Kow
Tue Aug 25, 2009 5:08 am UTC
Forum: School
Topic: AP U.S. History
Replies: 27
Views: 2640

Re: AP U.S. History

The only upside is that it is one of the few APs that gives you a full year of credit, but I would still rather take a year of US History from a college professor who will teach you some interesting things about USH that no 11th grade curriculum could dare touch rather than a high school teacher th...
by Kow
Sat Aug 22, 2009 1:42 am UTC
Forum: Science
Topic: Does this exist?
Replies: 3
Views: 926

Re: Does this exist?

Supergiant trees you can build numerous houses in, no. The tropical mountains, though, yes, absolutely. Google some pictures of the highlands of Borneo and Papua/New Guinea. I've seem similar, but smaller, versions in the northern end of Guam. Hawai'i also has some similar areas. They're often call...
by Kow
Fri Aug 21, 2009 5:44 am UTC
Forum: Science
Topic: Does this exist?
Replies: 3
Views: 926

Does this exist?

So I've always seen this type of climate or biome or whatever you wanna call it in fiction, but I've always wondered if it exists anywhere on earth. Or perhaps if it doesn't exist, what would it take to actually get something like that? Sans all the structures, of course. http://halowiki.net/images/...
by Kow
Mon Aug 17, 2009 3:59 am UTC
Forum: Science
Topic: Why is it hard to stop cracking knuckles?
Replies: 35
Views: 7801

Re: Why is it hard to stop cracking knuckles?

1. It's an oscillating nerve cycle. In laymens' terms, this means that an electrical signal gets caught up in a repeating cycle. This is why it feels so weird when you don't crack your knuckles for a while. 2. You will not get arthiritis by cracking your knuckles. People say this because it is a di...
by Kow
Fri Aug 14, 2009 5:13 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0623: "Oregon"
Replies: 141
Views: 42515

Re: "Oregon" Discussion

I still dont get it.

Like, I get all the epidemic references and the children + adolescents but that's it. Did I miss something big?
by Kow
Thu Aug 13, 2009 10:15 pm UTC
Forum: Science
Topic: Why is it hard to stop cracking knuckles?
Replies: 35
Views: 7801

Re: Why is it hard to stop cracking knuckles?

How good or bad is it for you to do so? I've heard good and bad things about it.
by Kow
Thu Aug 13, 2009 1:28 am UTC
Forum: Mathematics
Topic: Algebra 2?
Replies: 21
Views: 3002

Re: Algebra 2?

I'd like to strongly second achan1058's comment about memorisation. If you have to memorise something, you don't understand why it is that way. That's one thing I always hated about busywork homework. If I understand the concept, I don't need to practice it! I've done poorly in many a math class fo...
by Kow
Thu Aug 13, 2009 1:19 am UTC
Forum: School
Topic: Clubs!
Replies: 27
Views: 3075

Re: Clubs!

Where in MD are you? I went to high school in southern MD.

My school didn't really have too many clubs, sadly. Not that I'dve attended anyway. I'm not really a club person.
by Kow
Mon Aug 10, 2009 4:35 pm UTC
Forum: Science
Topic: black powder
Replies: 37
Views: 4418

Re: black powder

I hate to be an advertiser, but I frequent a site that has forums that might be of assistance to you: http://www.zoklet.net/bbs/forumdisplay.php?f=90 http://www.zoklet.net/bbs/forumdisplay.php?f=51 The first link being to the more explosives side and the second to the more chemistry side of your req...
by Kow
Wed Aug 05, 2009 3:47 am UTC
Forum: Coding
Topic: Good Lua Editor
Replies: 24
Views: 3039

Re: Good Lua Editor

We have our own laptops (school provided). Only ones in our school that doesn't get macs 'cause generally speaking, you don't program on a mac. At least that's what they tell us.
by Kow
Wed Aug 05, 2009 2:55 am UTC
Forum: Coding
Topic: Good Lua Editor
Replies: 24
Views: 3039

Re: Good Lua Editor

We run windows.
by Kow
Wed Aug 05, 2009 2:47 am UTC
Forum: Coding
Topic: Good Lua Editor
Replies: 24
Views: 3039

Re: Good Lua Editor

Thanks everyone. I personally would just JCreator since I'm used to the UI, but I was trying to find something I could suggest to the teacher since he seems to hate this version. LuaEdit is what he ended up with and it sucks balls.
by Kow
Tue Aug 04, 2009 11:36 pm UTC
Forum: Coding
Topic: Is Java worth learning?
Replies: 24
Views: 4629

Re: Is Java worth learning?

Isn't the market growing with the larger number of mobile devices?
by Kow
Tue Aug 04, 2009 11:25 pm UTC
Forum: Coding
Topic: Good Lua Editor
Replies: 24
Views: 3039

Good Lua Editor

Just started learning Lua (through school) and the editor they gave us kinda sucks. (Even they know this). Is there a good free editor one can get?
by Kow
Mon Aug 03, 2009 6:39 am UTC
Forum: Gaming
Topic: Heroes of Newerth.
Replies: 42
Views: 6800

Re: Heroes of Newerth

I just got a beta key this morning and have been playing for a good portion of today. It's fun as hell and improves on the original dota very well. Essentially it's a clone of dota with graphical and engine upgrades. Icefrog is working with S2 to make it the best of both worlds (old and new). I'd lo...
by Kow
Sun Aug 02, 2009 3:27 am UTC
Forum: Science
Topic: Photon Mass
Replies: 56
Views: 5695

Re: Photon Mass

OK, so how does this play into wave-particle duality? Can we say that an idealized photon traveling in a perfect vacuum is a wave and therefore completely massless, whereas a photon in an interactive state with any other matter or energy is a particle and therefore massive? The particle part of wav...
by Kow
Fri Jul 31, 2009 1:36 am UTC
Forum: Science
Topic: Cures for insomnia
Replies: 19
Views: 2301

Re: Cures for insomnia

I just smoke some weed if I can't sleep. Doesn't happen much, thank god, and if it does and I don't need to be up the next morning, I just do stuff 'til I fall asleep from exhaustion.
by Kow
Wed Jul 29, 2009 6:17 am UTC
Forum: Science
Topic: Scattering off vaccum particles
Replies: 13
Views: 2923

Re: Scattering off vaccum particles

Doesn't seem like a photon minding its own business should be able to spontaneously generate an electron / positron pair, but doesn't really seem to violate any laws... That actually does happen , but alas, this sort of stuff is beyond me I would think that the energy given to the electron by being...
by Kow
Wed Jul 29, 2009 3:09 am UTC
Forum: School
Topic: Fluffing up a paper
Replies: 3
Views: 870

Re: Fluffing up a paper

Thanks for the replies. I managed to find a decent counterpoint and got to the requirement.
by Kow
Wed Jul 29, 2009 1:33 am UTC
Forum: School
Topic: Fluffing up a paper
Replies: 3
Views: 870

Fluffing up a paper

So I'm writing an analysis on a movie for an English class of mine. I've gotten all my points down in writing and I feel I have a sound argument for the analysis. However, I'm considerably under the word count expectation, yet I can't find any more material to make my case. Are there any good techni...
by Kow
Tue Jul 28, 2009 12:53 am UTC
Forum: Science
Topic: Getting a ball to orbit the moon.
Replies: 14
Views: 2051

Re: Getting a ball to orbit the moon.

To achieve a circular orbit the ball must be thrown parallel to the ground (anything else would be eccentric). Circular motion requires an inward force of exactly \frac{m v^2}{R} . Since gravity will be providing that inward force, and we know it to be \frac{G m M}{R^2} we can set them equal and so...

Go to advanced search