C++ help need ...

manjula009

Well-known member
  • me mokadda kiyanne...mata therenne na...prgrm eka compile karaddi meka enne...plz help me...:(:(:(:(

    idon.JPG

     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    you have 2 compile errors so it had not created an exe file.
    Go through the debug info and see what the compile errors are and fix those first.
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    There's no exe in that folder machan.

    Check the error details at the bottom.
    It says there are 2 errors and, 0 succeeded and 1 failed.

    Which means that the exe creation has been failed.

    You have to debug those bugs and compile again.
     

    asachan

    Member
    Apr 11, 2009
    1,636
    3
    0
    Athurugiriya
    There is no syntax errors in this program as in ur Pic macho

    So go to the project folder and locate Bin folder.
    if the C++ parser already create Exe file for you delete it.
    and then try

    if not working
    Create new project and copy this code and try to run again

    if it's not working then Framework has some problems . try to reinstall the VS and try again. cos the C++ linker on the VS 2005 sometimes cause an errors when CLR Dlls not register correctly.
     

    crazycombo

    Member
    Jul 4, 2008
    3,101
    13
    0
    A Land Like No Other!
    machan that cout function is in iostream namespace. so you have to import that before compilation. thats why you got an error saying cout - undeclared identifier.

    and getch is using to hold up the screen while key is pressed. otherwise Hello world will print. but the screen will pop and vanish in seconds. getch function is in conio namespace. so you better import it.

    after importing the namespaces, you ve to use the keywords "using namespace" to bring the actual functionality out. then the program allows you to use any function in the std namespace. (in this case which is cout.)

    you press F6 or build solution after this. and then press start debugging or press F5.

    hope this helps.