- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
unemployed poor college student living off ramen. not really.
25 Posted Topics
Re: [QUOTE=everlast;504209]it's extremely interesting, but how does a self-taught beginner like me place oneself in such a great project? thanx for the link and the advice, i hope to be able to use it some day if i learn hard. :)[/QUOTE] As of top coder, there is a "practice" room where … | |
Re: Why would you need to use a char array? using int array should be fine. [icode]reverse (num) array[count] = num count ++ get a new num reverse (num) print out array[count] count--[/icode] It might be logically flawed somewhere..just make sure you have a base case (where you would stop calling … | |
Re: Mark Twain There are three kinds of lies: lies, damn lies and statistics. | |
![]() | Re: [QUOTE=Nick6425fl;734192] Before you start calculation for average, max and min, you should always set the value to something. For example, you declared double total in your familyAverage. Now this variable called double points to a block of memory. This block of memory may contain some data in it that is … |
Re: What is it that you are having problem with? Are you getting errors when you compile? Does it compile but doesn't display the correct values?? | |
Hey all, I use Windows XP and atm, I need to increase the memory allocated from default 64M(i think?) to 500M. So I'm in the directory where the jar file is (I'm using JFLAP if anybody is familiar with it, it's for statemachines/automata) and i type the following: java -Xmx500m … | |
Re: You see, you declared num. Now num points to a 4byte block which contains a garbage information. So when you are calling mysterlen, you are giving whatever happened to be stored in that block of memory. What you want to do is set num to 0 before you call the … | |
Re: Do you get any errors? Because syntax wise, it looks okay to me.. | |
Re: There's nothing about validating in your book because it's not standard, it's something that you make it yourself. [QUOTE=mmeyer49;729403] * double getSales() is passed the name of a division. It asks the user for a division's quarterly sales figure, validates the input then returns a valid sales figure for that … | |
Re: If you are having problem with rand() go google 'rand cpp reference'. It has a nice example as to how to use it. And like the above poster has mentioned, >>while (x % answer != 0) answer++; is not a good practice. Since you will check 2, then 3, then … | |
Re: Well, I'm a noob myself so not really sure if I'm helping you or not but I guess I'll give it a shot. First of all, you did declare typeOfBet and allocated memory for it but what's inside of that memory is just garbage, not related to what you want … | |
Re: Someone correct me if I'm wrong please. As of array, when you first declare array, you are allocating a block of memory and what you get is a pointer( address of a memory) that indicates where that block of memory starts. And from then on, evertime you access the array, … | |
Re: No I don't think that's what her teacher meant. By doing what you did there, you are "hardcoding" this. That is not a good practice. Suppose he wanted to change the char array from "This is a test" to some other phrase, say "i'm too cool for a test". Now, … | |
Re: Didn't you post the same topic before? The answer is like two pages behind. h is char but g is int. they are not of the same type. | |
Sorry, I lied!!! I usually don't post in "hello i'm a noob at this site" but i just wanted to make a topic that (wrongfully) claimed that i'm not a geek. I'm from US. Btw, Freud is a fraud!! He has made a lot of interesting contribution to modern psychology … | |
Re: If you are really determined to learn it on your own, start with little projects. In fact, if you go to one of the stickied threads above, there are a bunch of problems for beginners that you can try to work on. And whenever you have problems, try to figure … | |
Re: [QUOTE=vmanes;726413]That one looks too much like a dentist's chair. [URL="http://www.poetictech.com/aura/index.html"]How about this one?[/URL][/QUOTE] it looks good... but it lacks a fridge full of food :/ | |
Re: Er, I'm not really sure what you are trying to do with your do loop. But here's how I would go about it. If I had time, I'd write the actual code but I'm just procrastinating for another project... [ICODE] while (until the end of line character) if letter is … | |
Re: Well, upon searching google.... [URL="http://www.cprogramming.com/tutorial/random.html"]http://www.cprogramming.com/tutorial/random.html[/URL] I think it shows good examples of using random number generator using seed and stuffs. | |
Re: When you are passing row and col to get Data, you are derefenrencing it. But they are of type int. And what does " >> " operator do? I've never seen it used out side of cin >> . [edit] er nvm i didn't read your code right. | |
Re: /high fives mrboolf sorry for non constructive post but people aren't here to do your hw. They are here to help and guide and point out flaws. | |
Re: I'd have to say the contents. To check if they refer to same memory locations, you will have to dereference when you compare. | |
For some weird odd reason, sqrt(2/num) does not work. [ICODE] cout << " sqrt(2): " << sqrt(2) << endl; cout << " sqrt(num): " << sqrt(num) << endl; cout << " sqrt(2)/sqrt(num): " << sqrt(2)/sqrt(num) << endl; cout << " sqrt(2/num): " << sqrt(2/num) << endl;[/ICODE] results in [ICODE] sqrt(2): … | |
Re: Well, since the description of the readSeq funcion doesn't actually describe what it is returning, maybe it should be void readSeq, rather than int. And as of passing parameters, why do you need to pass the array..? Do you really need a separate function? And how are you getting these … | |
Hi, I'm doing a very very simple coding, However the compiler apparently does not like my usage of cin and gives me an error: no match for 'operator<<' or 'operator>>' depending on cout or cin. I've used this many times before but never have encountered this problem trying to use … |
The End.