Jump to content

  • Log In with Google      Sign In   
  • Create Account

BSt

Member Since 18 Feb 2012
Offline Last Active Mar 15 2012 08:45 AM

#4916062 Image effects question

Posted by BSt on 23 February 2012 - 07:58 PM

I guess, you mean thermal effect. You should experiment with thermal vision pixel shaders.
http://coding-experi...xel-shader.html


#4915537 Logical OR operator

Posted by BSt on 22 February 2012 - 10:10 AM

@Edited: I got wrong.


#4915270 Logical OR operator

Posted by BSt on 21 February 2012 - 03:22 PM

It should be:
(ch == 'y' || ch == 'Y')

@Down: a few secs. Posted Image


#4914888 Some advice for a beginning programmer.

Posted by BSt on 20 February 2012 - 12:21 PM

You should learn C++ at first, it is very powerful and useful language. On the beginning your adventure, may have problems,but it really help you.
When I was 14 decided to learn C++, but after 0.5 month changed my mind. I have regreted to nowa days.


#4914617 Pointers

Posted by BSt on 19 February 2012 - 03:17 PM

Posted Image
Numbers on the right side of picture are memory addresses.

int b = 15; // Object
int * a = NULL; //Pointer

a = &b; //We use (&) to get address of (a) object.

Try to output in console: &b, b, &a, a, *a.

{...}


#4914543 Switch and If/else C++

Posted by BSt on 19 February 2012 - 10:35 AM

You didn't put
break;
in case 'M' and 'D', if i am right.


#4914535 Switch and If/else C++

Posted by BSt on 19 February 2012 - 10:07 AM

The everything in switch statement.


#4914533 is learning c++ as first and only language a bad way to go?

Posted by BSt on 19 February 2012 - 10:02 AM

A syntax of C++ is quite easy, but ways to do something are more complicated. If you have an idea about C++, then learning other programming languages like C#, JAVA, PHP etc. is more easier.


#4914528 Switch and If/else C++

Posted by BSt on 19 February 2012 - 09:54 AM

Let's show us more code.


#4914479 RocketHub or KickStarter?

Posted by BSt on 19 February 2012 - 05:19 AM

You don't have to write about my English in every post... just look at my signature :).


#4914423 Generating Random Number OOP

Posted by BSt on 18 February 2012 - 09:30 PM

You are trying to explain more harder things, while he doesn't understand easy things.

He don't know what it does:
int pull = ( (rand() % 3 ) + 1);

the numbers 3 3 2 keep showing everytime




#4914422 RocketHub or KickStarter?

Posted by BSt on 18 February 2012 - 09:24 PM


I think, premium accounts are the best idea. Not everyone has account in bank, but a lot of people uses a mobile phones.

If I got what means "fundraising community".


No. You misunderstand. He's not talking about monetizing a finished product - he's talking about raising funds to develop or publish or market a game,or to start a company.


So, I am right.
They can create a "premium zone" for sells tutorials, "small things", access for something etc.
Also, advertisements, but the "premium zone" is the best idea, I think.


#4914417 Generating Random Number OOP

Posted by BSt on 18 February 2012 - 09:16 PM

int slot::generateSlot()
{
	int pull = ( (rand() % 3 ) + 1);
	m_slotpicture = pull;
	return pull;
}

I changed it to this and now the numbers 3 3 2 keep showing everytime i Run it


( value % 100 ) is in the range 0 to 99
( value % 100 + 1 ) is in the range 1 to 100
( value % 30 + 1985 ) is in the range 1985 to 2014


Man, please. Use the minimum of your brain, or don't do things that you don't know.


#4914413 Generating Random Number OOP

Posted by BSt on 18 February 2012 - 09:12 PM

Removing srand will fix the 'same number every time' problem.

Posted Image .

It can be done using a lot of ways.


#4914411 Generating Random Number OOP

Posted by BSt on 18 February 2012 - 09:08 PM

it crashes when i switch the for statement

No, it doesn't.

I have tested out.
int& slot::generateSlot(int slotNumber)
{
for(int i = 0;i = slotNumber; ++i)
{
int slot = rand();
int pull = ( (slot % 3 ) + 6);
m_slotpicture = pull;
return pull;
}
}

Don't "combine/contrive"(?) more, man.




PARTNERS