Thread: strange problem
View Single Post
Old Sep 1st, 2006, 1:16 AM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 754
Rep Power: 3 Jimbo is on a distinguished road
cpp Syntax (Toggle Plain Text)
  1. int main()
  2. {
  3. int candies,cash,coupon,finish; // no initialization?
  4. int new_candies=0;
  5. candies=cash; // cash not initialized yet
  6. coupon=cash; // cash not initialized yet
  7. /* ... */
  8. cout<<"coupon"<<coupon<<endl;// coupons still not initialized?
Jimbo is offline   Reply With Quote