Thread: Can't execute my program

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    Can't execute my program

    Hi,

    I am very new to C and really need help from all of the guru here.

    When I try to execute my application created from MS C++ 6.0 IDE compiler, it just disappeared - nothing being displayed eventhough I've put print statement Below is my code:

    Code:
    #include <stdio.h>
    
    
    int main()
    {	
    	
    	printf("\nTest");
    
    	printf("\n\n");
    	return 0;
    
    }
    Sorry if this question sounds so stupid.

    Thank you very much in advance.

    regards.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    look here

  3. #3
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    also running the exe throu command prompt may help aswell

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    The highly imaginitive FAQ entry title "How do I Stop my Windows Console from disappearing everytime I run my program?"
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    Finally, one I can answer and I am only 13 hours to late.
    Favorite Quote:

    >For that reason someone invented C++.
    BLASPHEMY! Begone from my C board, you foul lover of objects, before the gods of C cast you into the void as punishment for your weakness! There is no penance for saying such things in my presence. You are henceforth excommunicated. Never return to this house, filthy heretic!



Popular pages Recent additions subscribe to a feed

Similar Threads

  1. a program that will call an execute but with arguments
    By what3v3r in forum C++ Programming
    Replies: 3
    Last Post: 01-19-2006, 09:44 PM
  2. Need help on code to execute the program
    By hibmem10 in forum C++ Programming
    Replies: 6
    Last Post: 12-24-2005, 01:42 PM
  3. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM
  4. Can you execute any windows program?
    By Shadow12345 in forum C++ Programming
    Replies: 6
    Last Post: 05-19-2002, 03:24 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM