Forum: C Jul 14th, 2009 |
| Replies: 5 Views: 460 Use exit() function
http://www.cprogramming.com/fod/exit.html |
Forum: C Jul 14th, 2009 |
| Replies: 46 Views: 1,505 did you try debugging using gdb? |
Forum: C Jul 14th, 2009 |
| Replies: 11 Views: 637 Its possible that what the original thread starter meant by 'swap' was to actually interchange the pointers to the read-only strings as Dave and Dream2Code have suggested. |
Forum: C Jul 12th, 2009 |
| Replies: 9 Views: 830 That is just the reverse of the aforementioned algorithm.
Explanation- Scan the input string from left to right. Whenever you see an operand, just push it onto a stack. When you encounter an... |
Forum: C Jul 12th, 2009 |
| Replies: 9 Views: 830 The expression contains only operands. Where are the operators?
If you have a string in infix, ie. in form A+B, and you wish to have it in the form AB+, you can use the Shunting Yard Algorithm... |
Forum: C Jul 11th, 2009 |
| Replies: 13 Views: 620 printf("Trip Summary");
You are missing the semicolon here
and here
printf("Enter Total amount of fuel required");
and why do you have the return statement outside the main function? |
Forum: C May 14th, 2009 |
| Replies: 1 Views: 378 Hi,
What is the conversion character for long double in gcc? |