Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with C Programming assignment
#18
something that may be of use is you need to make sure that you are carful with initalizeing the strings that you pass into your functions, if they are not, the for loop conditions may never fail as the data in of the string may not be 0 therefor it will continue to iterate. This may also be a bad thing if someone types in 0 in the string, as sting[i] will == 0 therefor the for loop will break. As far as your break statement goes, it is eaiser to use a bool and set it to false, then break with an if([I]boo) break;

Just some food for thought... Error handleing is your friend.
Reply


Messages In This Thread
Need help with C Programming assignment - by Fiel - 2009-11-23, 09:18 PM
Need help with C Programming assignment - by Fiel - 2009-11-23, 09:22 PM
Need help with C Programming assignment - by Fiel - 2009-11-25, 08:13 AM
Need help with C Programming assignment - by Fiel - 2009-11-25, 11:51 AM
Need help with C Programming assignment - by fawrh - 2009-11-25, 11:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)