# Search:

Type: Posts; User: Sentral

Page 1 of 20 1

1. ## Thread: Help explaining test questions

by Sentral
Replies
26
Views
2,686

### So you're saying the answer should be "two of the...

So you're saying the answer should be "two of the above" because a bad generator would be one in which each number appears exactly once, and that no four consecutive numbers are even.
2. ## Thread: Help explaining test questions

by Sentral
Replies
26
Views
2,686

### I had a typo in the numbers, it's only 1000...

I had a typo in the numbers, it's only 1000 numbers, but I don't believe that would make a difference. My reason for A was because if you average the numbers from 1 to 1000 you get 500.5 not 499. So...
3. ## Thread: Help explaining test questions

by Sentral
Replies
26
Views
2,686

### Help explaining test questions

I would like it if someone could explain to me these test questions, and help me understand them better, because some are confusing me.

1) Which of the following statements about sorting 5...
4. ## Thread: Windows 7 official launch tomorrow?

by Sentral
Replies
72
Views
4,244

### Yea, Windows 7 US Online Store - Student...

Yea, Windows 7 US Online Store - Student Registration
5. ## Thread: Windows 7 official launch tomorrow?

by Sentral
Replies
72
Views
4,244

### You can get Windows 7 for \$30 as long as you have...

You can get Windows 7 for \$30 as long as you have a .edu email
6. ## Thread: Date data type?

by Sentral
Replies
5
Views
6,761

### I would probably use a structure or class, so...

I would probably use a structure or class, so then you can have different variables such as month, day, and year and they would be contained in a sort of "data type" that you defined.
7. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### Ok, I finally think I got it. This is my final...

Ok, I finally think I got it. This is my final answer.

(1/8)*n^4+(5/12)*n^3+(3/8)*n^2+(1/12)*n

O(n^4)
8. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### Ok wow, I've never seen a summation like that...

Ok wow, I've never seen a summation like that before. I don't know how to figure out this big-o stuff. Is that summation inside summation? Ugh this is confusing.

Hm, assuming you want me to expand...
9. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### Hm ok, I see that now. But how does this lead me...

Hm ok, I see that now. But how does this lead me to finding the Big-O notation? I thought usually this type of thing ends up in a summation formula that you multiply out and find the largest degree,...
10. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### Ok, so I get 1 + 6 + 18 + 40= 65, but I don't see...

Ok, so I get 1 + 6 + 18 + 40= 65, but I don't see how this will help me. Are you saying that I need to find the summation formula for this, and that will give me by Big-O? I don't understand.
11. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### I'm having trouble with another problem if...

I'm having trouble with another problem if someone can help me. It's just a variation on the previous problem. I still have to find the Big-O of the fragment.

for(int i = 1; i <= n; i++)...
12. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### I have to find the Big-O of this fragment, so it...

I have to find the Big-O of this fragment, so it doesn't matter how much one instance will take, I just need to know the upper bounds of the run time.

I'm still confused. I think if the fragment...
13. ## Thread: Big-O Notation Problem

by Sentral
Replies
20
Views
9,067

### Big-O Notation Problem

Given the fragment:
for(int i=0; i < n; i++)
for(int j=0; j < (n*n); j++)
for(int k=0;k < j; k++)
sum++; Find the Big-O notation.

I'm having a little...
14. ## Thread: Help with array

by Sentral
Replies
19
Views
1,539

### You are missing a brace to close the while loop....

You are missing a brace to close the while loop. If you indented your code correctly you would have saw that.

by Sentral
Replies
14
Views
2,549

### Somali pirates.... lol. Crazy world.

Somali pirates.... lol. Crazy world.
16. ## Thread: Favorite video games?

by Sentral
Replies
33
Views
6,029

### I've haven't played those two, so I can't really...

I've haven't played those two, so I can't really judge them. Yea, I do agree that Morrowind was pretty lame, but Oblivion is pretty kick ass!
17. ## Thread: Favorite video games?

by Sentral
Replies
33
Views
6,029

### My favorite is the Elder Scrolls series,...

My favorite is the Elder Scrolls series, specifically, Elder Scrolls Oblivion for Xbox 360. It was so amazing when it first came out! The huge streaming landscape, first person sword battles, and...

by Sentral
Replies
2
Views
663

### You put your code between tags :D As such...

tags :D

As such [code] yo dude im code

When you go to post, go advanced, and push the button that looks like this "#". That's the code tags

by Sentral
Replies
4
Views
753

### I would suggest Visual C++ Express by Microsoft...

I would suggest Visual C++ Express by Microsoft since it's one of the more popular compilers, and it's free :D

by Sentral
Replies
6
Views
1,194

### You're quite close. You just need to add a few...

You're quite close. You just need to add a few things. "cout" will be used in main to display the return value of the function. I think your teacher meant don't use "cout" within the function that is...
21. ## Thread: I need help with this program its from a C++ book

by Sentral
Replies
7
Views
1,567

### Your indentation is terrible, no wonder you have...

Your indentation is terrible, no wonder you have a problem finding errors.
22. ## Thread: 2d array definitions

by Sentral
Replies
4
Views
765

### The way you are trying to initialize in the first...

The way you are trying to initialize in the first one can only be done when you are declaring an array, which is why the first one works. In order to initialize after you declare it, you must do it...

by Sentral
Replies
5
Views
1,919

### What are you talking about? I love spam! I can't...

What are you talking about? I love spam! I can't wait to buy the cheapest drugs on the Internet :D
24. ## Thread: Functions Taking Dif. Numbers of Arguments at Dif. Times?

by Sentral
Replies
6
Views
1,125

### Well I've searched those two files for the...

Well I've searched those two files for the SelectSpawnPoint function, and I haven't seen it called with 3 arguments. I've only seen it called and defined as having 2 arguments, unless I'm missing...
25. ## Thread: Functions Taking Dif. Numbers of Arguments at Dif. Times?

by Sentral
Replies
6
Views
1,125

### The code you provided is not a call, but a...

The code you provided is not a call, but a prototype. Yes, you should be able to call the function using 2 or 3 arguments provided they are the correct type for that function.
Results 1 to 25 of 500
Page 1 of 20 1