hey
just trying to figure out the array(words) does it mean that each index has a single sentence? or a single word?.
Type: Posts; User: Obelisk
hey
just trying to figure out the array(words) does it mean that each index has a single sentence? or a single word?.
am using 4.2.2 which was available from dev c++.
hey guys
I am just curious and kinda puzzled can allegro library be used in Vista OS. I am pretty sure i installed it correctly through Dev c++.
Any comments would be fine, Thx
This is a good help..try searching the forum under usb
yes there is.
this works
char a[size]={'\0'};
are you trying to check wether the t value is a specific value if you are then i would suggest putting it in a if loop.
what he suggested, instead of using scanning through each character why dont you use
fgets where it grabs one line at a time.
gulp..idk.:((
is it?
1st scanf reads only the input
2nd one reads input and the next line?
while((ch=getchar())!= '\n')
i=1;
printf("%d \n", ch);
and
i=1;
while((ch=getchar())!= '\n')
ok
scanf("%d", &x);
x---> is a float and why are you using "%d" for a float?
shouldnt it be do with while loop.
while ((symbol=getch())!='a')
printf("ERROR");
printf("%c",symbol);
[array[i].field=symbol; /* file structure=array of records, where "field" is defined as char
shldnt it be getchar()....
I remeber doing a similar project where i used if loops thus defeining how to make the
array to print out
hi
what is variable k in your code? i mean why is it present there
its java code
if you want to print something in c use"printf();"
hmm it seems its your homework . Try writing any code then we can guide you
ok cool :)
your almost there actually, with your permission i can show you the code if you want to
understand the logic
i know but the question he asked was why was the presence of 4even and 5odd i just
showed him how to remove it.
as cas said c should be int
where c contains the ascII value of the variable
Then if you want to get the char again
use Putchar(c)
THIS IS NOT THE EXACT CODE.
ok here
printf("%d is %d", i, sum);
delete the 2nd %d and sum
ok almost there..but if you do that how will you retun either 1 or 0?.
try putting the if loop inside the main method ..
this loop explains by itself.
if(sum==1)
{
print number is even
i see what you mean
ok so the even function returns 1 for even number
and returns 0 for odd number.
so just put an if loop
printf("%d is %d\n", i, sum);
oh yea, my apologies just checked it out. thnx for the correction
for unix its ctrl+z i think
and windows ctrl+D, not totally sure
hmm can you post your code? I am not sure what the problem is