Firstly, I want to say that
bool SetOutput(unsigned inta, unsigned intb, unsigned intc){
bool result;
if(b < a) // If Temp < Setpoint
{
result =...
Type: Posts; User: sulfur93
Firstly, I want to say that
bool SetOutput(unsigned inta, unsigned intb, unsigned intc){
bool result;
if(b < a) // If Temp < Setpoint
{
result =...
Actually you'r doing it right but there is one simple thing
printf("%c", (str+3)*);
need to be
printf("%c", *(str+3));
by the way I forgot that
struct enemy{
int health;
int damage;}enemy;
It can be like that
struct enemy { int health;
int damage;
}
and then
I have a question about the code. Can any int function return two values like
else if(trvl_method)
{
speed=100;
}
return trvl_method;
return...
It looks like it's correct I think but maybe you need to change
pi [i] = &item[i]; to
pi [i] = item[i]; to don't get warning. It will be work fine but it can give you a warning message.
There are 1 main mistake in this code that I found.
This code looks like stucks in the infinite loop, because program is always running. Then when I search the loops that you create then I found...
This code line looks wrong you may need to change it.
scanf("%s",&*in);
in is already your pointer it points an address so you do not need to put adress operator(&) before in.
...
I think it would be like that
int i=0;
scanf("%d",&n);
while(i != 2){
foo(n);
printf("n=%d\n",n);
scanf("%d",&n);
You can use flag algorithms instead of wait.With these type algorithms program need to wait result until the flag is 1 and flag will be 1 after the process done. I hope it helps to you.
For...