BillLeeLee
[H]F Junkie
- Joined
- Jul 2, 2003
- Messages
- 13,486
I'm actually amazed that compiles, especially when it contains this:
You should be getting syntax errors at least for that. And why do you use SYSTEM PAUSE, because normally the executable spawns a CMD window that quickly exits?
Do you really need to #define your constants? I'd like to think that C has progressed to where you can use something 'safer', like consts
Code:
#define year 365
#define beer_calories 150
#define weight 15/365
int main()
{
float rate, beer, total_beers, cost, total_cost, total_calories, total_weight;
[b]year, beer_calories, weight;[/b]
You should be getting syntax errors at least for that. And why do you use SYSTEM PAUSE, because normally the executable spawns a CMD window that quickly exits?
Do you really need to #define your constants? I'd like to think that C has progressed to where you can use something 'safer', like consts