- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 47
- Posts with Upvotes
- 41
- Upvoting Members
- 31
- Downvotes Received
- 10
- Posts with Downvotes
- 9
- Downvoting Members
- 9
old dog learning new tricks
244 Posted Topics
Re: Julius Robert Oppenheimer [QUOTE]Now, I am become Death, the destroyer of worlds.[/QUOTE] Poor guy, how could he have known? | |
Re: @hayzam take some time and read the post from ravenous. there is plenty to be learned there. | |
Re: Try to do it with pen and paper, then write some code for the process you used using arrays. | |
Re: ask for input store values send information to average function return average print average DONE | |
Re: [URL="http://projecteuler.net/index.php?section=faq&ref=roman_numerals"]http://projecteuler.net/index.php?section=faq&ref=roman_numerals[/URL] | |
Re: Thoughts Of The Day I'm still waiting for one(never mind plural). | |
Re: sqrt(86)=9.2736......... largest prime factor of 86=43. | |
Re: I raised a similar topic some years ago with a mature(as in age) computer science student near the end of his studies. His reply to people being in similar wages for different jobs was that he had studied hard to get to where he was so when he finished he … | |
Re: When you wish you hadn't thrown that ATARI 2600 away. | |
Re: Dragon Age: Origins, or Prototype depending on your taste. | |
Re: Static at approx 110 dB. Listening to the universe waiting for someone to say something. | |
Re: Anyone got any information on when the OP's original link is going to begin? | |
![]() | Re: I have sent a memo to the PM asking for the Scottish team to be let loose in the wild then hunted by men on horses with a lot of dogs. He has yet to reply.:( |
I recently started using Code::Blocks and have written a small program to read in from a file. I think the problem i am having is the file not being found. Where does the IDE search for the file and how would i change this? Can i just input the whole … | |
Re: try researching this site Edit See WaltP | |
I am becoming annoyed at the amount of responses on this site saying (something along the lines of) "This thread is 5 years old, please leave it alone.". Then there is often the response (again, something along the lines of) "Please search the site before asking a question that has … ![]() | |
Re: In your program say i enter the number x=7 in your loop it goes x(7)%i(2)!=0 so prime == 1 x(7)%i(3)!=0 so prime == 1 x(7)%i(4)!=0 so prime == 1 //needless since it cannot divide by 2 x(7)%i(5)!=0 so prime == 1 x(7)%i(6)!=0 so prime == 1 //same again x(7)%i(7)==0 so … | |
I disagree with the idea of upgrading or degrading a poster anonymously without a reason. If you want to "score" someone on their post, surely you should have to give a reason why you did so. Do you think anonymous grading is the way to go? | |
Re: Don't look. See [URL="http://www.dreamincode.net/forums/topic/157900-ravichandrans-books/"]here[/URL]. | |
Re: 1. Better indentation. 2. Start again. 3. Can you define a prime number? 4. (optional) Use a function. | |
Re: I think your question needs to be less vague. And as always use CODE TAGS it tends to get you more help if people can read your code. | |
Re: Try [URL="http://www.cplusplus.com/doc/tutorial/functions/"]here[/URL]. | |
Re: So if isprime equals true then the output is "Not prime"? | |
Sorry if i'm in the wrong forum but here goes: Does anyone know how to restore a Toshiba Satellite laptop back to the factory settings? The laptop did not come with any back-up discs. | |
Re: so convert everything to cents multiply up by 100 convert to int, use %, then convert results back to double | |
Re: A good motto [QUOTE]"I'm paranoid, but am i paranoid enough?"[/QUOTE] | |
Re: [QUOTE] the second term of the array and add it with the third term of this array[/QUOTE] you are taking the third item twice i.e 3+3 | |
Re: you could try a [URL="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes"]sieve[/URL] | |
| |
Re: Could you not scan the numbers in a loop find the minimum and store the position in a variable then output the string in that position? | |
Re: [QUOTE]No ego involved.[/QUOTE] [QUOTE]a Moderator that's been here for over 7 years.[/QUOTE] I beg to differ. | |
Re: [CODE]vector<vector<int>> vec(a, vector<int>(b));[/CODE] Is this compilable? (i.e without the white space) | |
Re: I have a 15 year old protect me at all times. He does all my dirty work because he's still a minor. Saves me the time in the big house (could only get a ps2 and 720i tv - can you believe the inhumanity). | |
Re: How is line 15 working? if you change line 12 to [CODE]for(int i = 2; i < 12; i++)[/CODE] it seems to work | |
Re: OK just done it i think. Use a while loop for the length of the number. Then sort the number checking each digit against the next (bubble sort) after separating them into 2 variables using / % and pow. If they need swapped remove the variables multiplied by the corresponding … | |
Re: make a string array of your responses then randomly pick one element. ie string ans[5]="blah" etc... ans[rand()%5]. | |
Re: [QUOTE]Of course they will probably work out a solution, but what will happen if the U.S. government shuts down?[/QUOTE] Probably a lot of flag waving.:) | |
Re: What are 5 and 6 supposed to compute? 5) maybe %5 6) maybe /5 | |
Re: I don't understand what you mean by [QUOTE]generate the number of tries when the user wins[/QUOTE] Should line 76 not be averageWin=(winGames/totalGames)*100; The percentages will not work if you are using ints. i.e 36 games won, 72 games played 36/72=0........... 0*100=0 Use doubles. | |
[URL="http://www.youtube.com/watch?v=lyZQPjUT5B4"]The coolest bubble-sort ever.[/URL] | |
Re: So the intellectually superior take from the desperate and intellectually inferior. Is this not evolution in action. | |
Re: Thread bump Same question for windows | |
| |
Re: 1) Purchase a computer (guess this is covered) 2) Attain a compiler 3) Write the code 4) Compile and run 5) Job done | |
The End.