Forum: C++ Nov 10th, 2006 |
| Replies: 14 Views: 2,665 Hey,
In your printshippos function, you declare checkFlag at the top of that cpp file. When you initialize it like that w/o any number, it is either an unknown number, or in most cases, 0. The... |
Forum: C++ Nov 10th, 2006 |
| Replies: 14 Views: 2,665 hey, would you mind posting your code of sending me your code? I'd like to see your working code just so I can study it. |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,665 I noticed too that you declare shippos inside an if block { } and try to refer to it in the next if statement, which is in a different block of code. That is probably why it prints out as 0+228... |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,665 Here is a link that might help you.
http://www.functionx.com/managedcpp/keywords/static.htm |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,665 I think the problem is because when you declare a variable static it affects the lifetime of it. You declare it inside the If brackets { }, so it will be destroyed at the end of the if statement.... |
Forum: C Nov 7th, 2006 |
| Replies: 26 Views: 4,667 You use list = names which assigns names to list in your code. You may mean to have that switched. Also, why not read directly into names? I am pretty sure your dispute between 1 and 2 dimensional... |
Forum: C Nov 7th, 2006 |
| Replies: 26 Views: 4,667 Acquire,
The first thing I noticed was this char names[99][28]= {" "};. If you get an error with that line, try using single quotes instead of double quotes. Double quotes are associated with... |