- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Re: [QUOTE=Rashakil Fol;1299300]Sure. Since your language's orthography apparently uses digits for any homonymous syllable, just use [code](std::stringstream() << n).str()[/code][/QUOTE] This gave me a good laugh. | |
I'm going into my last year of a computer science degree, and after looking around at job postings for software developers I've noticed that *many* of them require knowledge of Oracle - something that I haven't yet learned very much about. So I was wondering if anyone could point me … | |
Re: The reason for your segfault is likely due to the fact that primes only has 10000 elements, ranging from primes[0] to primes[9999]. On line 38 you're trying to assign a value to primes[10000], which doesn't exist. This problem can be solved by simply changing line 7 to [code] int primes[10001]; … ![]() | |
Re: Just out of curiosity, why aren't you just using the linked list container provided in the standard library? | |
When I ran a program that had a list of integers with 5000000 elements in it, I was surprised to find that it used 118MB of memory, even when the *only* thing done by the program is the creation of the list. As far as I understand, each node in … | |
Re: floating point numbers tend not to be very exact. What is happening is after subtracting a total of 60 cents from your original 60 cents, you're getting a number very close to (but not exactly) zero, due to the nature of floats. In situations like this, you should try to … | |
Re: [QUOTE=cgcgames;1300180]since this seems to be for school i will not give you the awnser. but i have quickly coded somthing that you can look at. this is how to find a prime number. once you can do that it should be farly easy to figure out how to find primes … | |
I have the line [code=c++]#include <algorithm>[/code] at the top of a file, and the line [code=c++]nth_element(minRollArray,minRollArray+n,minRollArray+numSets);[/code] in one of the fuctions in that file. However, when I try to compile it I get the error error C3861: 'nth_element': identifier not found at that line. I would expect this if I … | |
Re: The variable nam seems to be unneeded. You can replace the lines [code] nam=i; nom=nom+nam; [/code] in the for loop with simply [code] nom+=i; [/code] Besides that, it seems fine (though I'm not sure why you're using printf instead of cout in a c++ program) | |
Re: Looks like the euclidean algorithm to me. It computes the Greatest Common Divisor of two numbers. | |
I'd like to gain some experience in software development/engineering by getting involved in a project which is just starting, so that I can be involved in the entire SDLC, not just the tail end of it. The problem with sourceforge.net is that almost all of the projects there are already … | |
ah, nevermind, I've figured out the answer to my question. Feel free to delete this thread. | |
I have been programming in C++ for a while now, though I have always only written programs with simple command-line interfaces, never a GUI. I have one such program right now which I would like to convert into a Windows application with a full-fledged GUI with customized graphics (for buttons, … |
The End.