Dominion Strategy Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - SirClemens

Filter to certain boards:

Pages: [1]
1
Other Games / Board game recommendations
« on: February 26, 2016, 12:01:46 pm »
My birthday is in nearly two weeks and my wishlist is still empty. I want to fill it with board games for my gaming group (3 people).
We really enjoy the following games:
  • Betrayal at House on the Hill
  • Civilization TBG
  • XCOM TBG
  • Witcher TBG
  • Pandemic
Any recommendations based on this list?
Thanks in advance! :)

2
General Discussion / Natural square root in C++ [Solved]
« on: November 07, 2015, 04:35:12 am »
Hello f.ds,

I need to write a small program for school that calculates the nearest thing to a natural square root of a natural number. Unfortunately, no if is allowed and I have no Idea how to make it work without it. You can see my code and further restrictions below:
Code: [Select]
int main()
{
int input;
int result;
int addition;
int helper;

/* The sum of n successive odd numbers is a squared number. For example 1 + 3 = 4, 1 + 3 +5 = 9.
The purpose of this program is to show the nearest naturel square root of "input". For example if the input is 17 the result should be 4.
Restrictions: Only one while loop is allowed. No If. Only addition, !=, ==, <, >, >= and <= are allowed
*/


addition = 1; // To get odd numers, the addition has to start at 1
helper = 1; // Since the addition starts at 1, this has to start at 1 aswell
result = 1; // Same reason as above

cout << "Enter a number X >= 1: ";
cin >> input;

while(input > helper) // This ensures that the while loop ends on time
{
addition = addition + 2; //This creates the next odd number
helper = helper + addition; //This creates the next squared number
result++; // This increases the result by one, because the helper now represents the next squared number
}

cout << "The ";
cout << result;
cout << " is the natural square root of ";
cout << input << endl;
}

My problem is that if I type in the 17 for example, it gives out the 5, but it should give out the 4.
Any Ideas how to fix it?

Thank you in advance!

EDIT: I solved the problem, maybe i will fix the wrong code here later. Thank you all for your help!

3
Goko Dominion Online / Can someone with Paysafecard help me?
« on: March 22, 2014, 08:24:46 am »
Hello,
because of registration problems i can not create a Paysafecard Account, but i already bought a 50€ Paysafecard.

Can a person which i can trust buy Gokoins for me?
I will change my Goko password and send that person my Goko login and my paysafecard pin and the person will buy me enough gokoins for all expansions and promos, ok?

Thank you in advance!

Pages: [1]

Page created in 0.058 seconds with 17 queries.