No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student
- PC Specs
- Macbook 1.83 Core 2 Duo
7 Posted Topics
Re: Well, maybe this might help. Its a mathematical fact that any prime number greater than 3 can be represented by (6a+1) or by (6a-1), where a is a parameter. Simply try to generate all such numbers and avoid repetition. This should be faster than the method of checking divisibility. | |
So, Python 2.6.2 is supposed to have the following JSON module: [url]http://docs.python.org/library/json.html[/url] I have the standard MacPython 2.6.2, but the attributes of my JSON library are different, can someone help me fix this? Here's mine: [url=http://img30.imageshack.us/my.php?image=picture1axb.png][img=http://img30.imageshack.us/img30/481/picture1axb.th.png][/url] | |
Re: I prefer SMF. For a free product, it has a lot of features compared to PhpBB. | |
I ask this question because I want to try out some probability theories and I want to get as close as possible to randomness. What my instinct tells me is that we cannot fabricate any function that is perfectly random, because we are in the first place defining an algorithm … | |
[CODE]#include <iostream> using namespace std; int main() { int a; cout<<"Enter a number"; cin>>a; [B]if(a=5)[/B] { cout<<"Five"; } else { cout<<"Not Five"; } } [/CODE] When I use the assignment, the result is always "five". I understand that a is assiged 5, but there is no statement to check for … | |
Re: I've been programming in C++ a year to two myself, mosty console applications, and not much else. How big a step up do you reckon is GUI programming, and how much does C++ help in making apps for platforms other than Windows. | |
I'm new to these concepts but a derived class cannot access private members of the base class because they are simply not accessible externally. But what if I define the derived class in a friend function to the base class. will the private members of the base class be successfully … |
The End.