# Search:

Type: Posts; User: kenryuakuma

Page 1 of 3 1

## Search: Search took 0.01 seconds.

by kenryuakuma
Replies
6
Views
2,416

### So is it certain that by doing if(!a), the false...

So is it certain that by doing if(!a), the false operator will be invoked?

Besides this, Is it really ok to directly display the object value by doing something like this?

myclass ob = new...

by kenryuakuma
Replies
6
Views
2,416

### SO would you please tell me why and explain it to...

SO would you please tell me why and explain it to me if possible. I would really appreciate it because this has been bugging me for a while.

by kenryuakuma
Replies
6
Views
2,416

public static bool operator true(ThreeD op) {
if((op.x != 0) || (op.y != 0) || (op.z != 0))
return true; // at least one coordinate is non-zero
else
...
4. ## Thread: jagged arrays with multidimensional array

by kenryuakuma
Replies
2
Views
4,361

### jagged arrays with multidimensional array

Jagged arrays, namely arrays of arrays is basically similar to a regular dimensional array, which is not hard to understand. But here within a jagged array, there is another array, which is kind of a...
5. ## Thread: 3D array initializer list

by kenryuakuma
Replies
5
Views
3,335

### Thanks so much for helping. But one more...

Thanks so much for helping. But one more question.

I assume this is not possible, but I really wanna know if that really works.

Is it possible to initialize and declare a 3d array like this:
...
6. ## Thread: 3D array initializer list

by kenryuakuma
Replies
5
Views
3,335

### 3D array initializer list

int [,] 2D = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}};

for two dimensional array, when we look at the initializer list, we can clearly know that what kind of 2 dimensional array it is....
7. ## Thread: Help: How to write a prime number greater than one billion

by kenryuakuma
Replies
6
Views
3,062

### As far as I know...Finding a prime needs to use...

As far as I know...Finding a prime needs to use the if-statement with a comparison operator == with the divisor of remainder. That's, if(something % something == 0) is not prime. So there is must be...
8. ## Thread: Help: How to write a prime number greater than one billion

by kenryuakuma
Replies
6
Views
3,062

### Help: How to write a prime number greater than one billion

My question is like I am clueless. And how I can write such as program that the first prime number is greater than one billion?
9. ## Thread: Variable in the argument_list

by kenryuakuma
Replies
4
Views
868

### I understand what you meant by the second...

I understand what you meant by the second error...But I am just a bit confused about the first reason why you cannot use "fact_num". I do know global and local variables. Would you please list some...
10. ## Thread: Curly brace question

by kenryuakuma
Replies
12
Views
1,288

### #include using namespace std; //...

#include <iostream>
using namespace std;

// Function must be declared before being used.
int triangle(int);

int main(){
// Declare a variable as fact_num that represent factorial number...
11. ## Thread: Curly brace question

by kenryuakuma
Replies
12
Views
1,288

### Abachler in you case, doesn't the code miss one...

Abachler in you case, doesn't the code miss one curly brace?

// The function body. That's the function definition
int triangle(int fact_num){
int n;
int sum = 0;
...
12. ## Thread: Variable in the argument_list

by kenryuakuma
Replies
4
Views
868

### Variable in the argument_list

well...As far as I know, we could use any variable or names in the argument list or parameter providing that the data type and the function name are the same, right? However, this code won't work if...
13. ## Thread: Curly brace question

by kenryuakuma
Replies
12
Views
1,288

### Yes...calculate and get the factorial number and...

Yes...calculate and get the factorial number and I meant the sum of the number.
14. ## Thread: Curly brace question

by kenryuakuma
Replies
12
Views
1,288

### Curly brace question

#include <iostream>

int triangle(int);

int main()
{
using namespace std;

// Declare a variable as fact_num that represent factorial number
int fact_num;
15. ## Thread: What is needed to be qualified as a game designer

by kenryuakuma
Replies
15
Views
2,938

### What is needed to be qualified as a game designer

Well...As far as I know, being a game designer, you must be creative and have a really broad range of imagination. Besides that, programming skills and graphic skills are something a gaming designer...
16. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### Awesome R.Stiltskin. U are the lifesaver...It is...

Awesome R.Stiltskin. U are the lifesaver...It is pretty clear and really understandable. Then I could proceed the next chapter about function. Great help...I will save it as my reference.
17. ## Thread: Some logic with prime-numbers

by kenryuakuma
Replies
11
Views
17,601

### Well...This is the book recommended by this...

Well...This is the book recommended by this website, which is "C++ without fear" by Brian Overland. The language he used for writing this book is easy to understand and unlike those books out there...
18. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### Well...Grumpy this is not homework. This is just...

Well...Grumpy this is not homework. This is just the exercise question from the book. I am learning this all by myself without anybody's help and without instructors. Before I take some programming...
19. ## Thread: Some logic with prime-numbers

by kenryuakuma
Replies
11
Views
17,601

### The is_prime? Why does it have to be placed...

The is_prime? Why does it have to be placed outside of the while loop? Is it possible to include it inside the while loop?

So when you use bool type, you always have to assume things to be true...
20. ## Thread: Some logic with prime-numbers

by kenryuakuma
Replies
11
Views
17,601

### Take my last post for an example...This is the...

Take my last post for an example...This is the example done by the author of Brian Overland, who was a leader of programming project of Microsoft for 10 years and now a CEO.

#include <iostream>...
21. ## Thread: Some logic with prime-numbers

by kenryuakuma
Replies
11
Views
17,601

### Some logic with prime-numbers

Well...Sorry to ask a really stupid or noob question. But I have been noticing that whenever we try to test the prime-ness, we always have to do things like Type A_Variable = true;, and this has to...
22. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### OK this is the code written by a C++...

OK this is the code written by a C++ Professional, which is vastly different from any of the beginners including myself. But this is not the code what I want...If somebody could help me with the...
23. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### I mean because it is hard to learn...I do love it...

I mean because it is hard to learn...I do love it but the main thing is if you don't understand something, and you keep asking for help, I am just afraid that everybody will get annoyed and feel...
24. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### Yes...It worked...I guess the input didn't work...

Yes...It worked...I guess the input didn't work is because of the syntax error by putting the i++ inside the curly braces. Besides as for setting the variable to something and declare it, I did it,...
25. ## Thread: Optimize the prime-ness for testing

by kenryuakuma
Replies
13
Views
1,731

### Optimize the prime-ness for testing

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
// Declare four variables n, i, an, and is_prime respectively.
int n; // Number to test for primeness...
Results 1 to 25 of 65
Page 1 of 3 1