Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~7K People Reached
Favorite Tags
c++ x 21
c x 3

13 Posted Topics

Member Avatar for zerohero

[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.

Member Avatar for Kalel Kristoff
0
834
Member Avatar for Allophyl

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 …

Member Avatar for yash_792
0
152
Member Avatar for patrick k

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]; …

Member Avatar for GreenDay2001
0
129
Member Avatar for gaurav_13191

Just out of curiosity, why aren't you just using the linked list container provided in the standard library?

Member Avatar for gaurav_13191
0
95
Member Avatar for Allophyl

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 …

Member Avatar for vijayan121
0
163
Member Avatar for dadam88

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 …

Member Avatar for dadam88
0
81
Member Avatar for qqwushi12345

[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 …

Member Avatar for cgcgames
0
3K
Member Avatar for Allophyl

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 …

Member Avatar for Allophyl
0
556
Member Avatar for qqwushi12345

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)

Member Avatar for Allophyl
-1
1K
Member Avatar for qqwushi12345

Looks like the euclidean algorithm to me. It computes the Greatest Common Divisor of two numbers.

Member Avatar for Allophyl
-1
101
Member Avatar for Allophyl

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 …

Member Avatar for Vexx
0
95
Member Avatar for Allophyl

ah, nevermind, I've figured out the answer to my question. Feel free to delete this thread.

Member Avatar for daviddoria
0
80
Member Avatar for Allophyl

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, …

Member Avatar for Allophyl
0
131

The End.