whats wrong with this code?

SlimRecoveries Sep 4, 2013

  1. SlimRecoveries

    SlimRecoveries Newbie
    185/188

    Joined:
    Sep 1, 2013
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    #include <iostream>

    using namespace std;

    int main()
    {
    int score;
    double distance;
    char playAgain;
    bool shieldsUp;

    short lives, aliensKilled;

    score = 0;
    distance = 1200.76;
    playAgain = 'y';
    shieldsUp = true;
    lives = 3;
    }

    i get this message

    'project.exe': Loaded 'C:\Users\owner\Documents\Visual Studio 2008\Projects\project\Debug\project.exe', Symbols loaded.
    'project.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
    'project.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
    'project.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
    'project.exe': Loaded 'C:\ProgramData\Norton\{0C55C096-0F1D-4F28-AAA2-85EF591126E7}\N360_20.1.0.24\Definitions\BASHDefs\20130715.001\UMEngx86.dll'
    'project.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll'
    The thread 'Win32 Thread' (0xc80) has exited with code 0 (0x0).
    The program '[6160] project.exe: Native' has exited with code 0 (0x0).


    and the console app is not opening

    please help :)
     
  2. Wallsch

    Wallsch Gold Member Gold Subscriber Lifetime Gold
    185/188

    Joined:
    Oct 3, 2011
    Messages:
    4,649
    Likes Received:
    526
    Trophy Points:
    185
    Gender:
    Male
    Location:
    Wausau, Wi
    Console:
    Computer
    First thing that comes to mind is that the object "lives" is not defined.
     
  3. SlimRecoveries

    SlimRecoveries Newbie
    0/47

    Joined:
    Sep 1, 2013
    Messages:
    18
    Likes Received:
    3
    Trophy Points:
    0
    Console:
    Xbox
    thank you, completely missed that lol, i re, wrote the program, works fine :)
     

Share This Page

Close