Search Results

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: mrboolf ; Forum: C and child forums
Forum: C Dec 11th, 2008
Replies: 5
Views: 461
Posted By mrboolf
Ok, here are some hints.

Problem #1:

1 - main must return an int, so write int main() instead of just main()
2 - try to give more meaningful names to your variables (i.e. km instead of a,...
Forum: C Dec 11th, 2008
Replies: 5
Views: 461
Posted By mrboolf
no looping at all - just one multiplication needed.
what have you tried?
Forum: C Dec 2nd, 2008
Replies: 8
Views: 537
Posted By mrboolf
No it's some sort of pseudo code (like the one I'm used to read in school books - I apologize if it's not a common practice to use it)



I was sure there was a logic explanation, although I was...
Forum: C Dec 1st, 2008
Replies: 8
Views: 537
Posted By mrboolf
something like this should work (warning: untested)

max_sequence := 0
max_sequence_start := 0
for i from 0 to end of file:
current_sequence_start := i
flag = true;
int count :=...
Forum: C Dec 1st, 2008
Replies: 5
Views: 492
Posted By mrboolf
You are kicking off December! :P
Check if(m<=0 || m>=12).
It should be if(m<=0 || m>12).

Also check your leap years handling.
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC