this is simple....

This is a discussion on this is simple.... within the Windows Programming forums, part of the Platform Specific Boards category; here is my code... Code: #include <windows.h> #include <conio.h> int main(void) { if(MessageBox(NULL, "Do you like cheese?", "DO YOU LIKE ...

  1. #1
    Shadow12345
    Guest

    this is simple....

    here is my code...
    Code:
    #include <windows.h>
    #include <conio.h>
    
    int main(void) {
    		if(MessageBox(NULL, "Do you like cheese?", "DO YOU LIKE CHEESE", 3)==ID_YES)
    			MessageBox(NULL, "YOU ARE A PERVERTED DONKEY!", "YAAPD", 0);
    		else
    			MessageBox(NULL, "YOU ARE NOT A PERVERTED DONKEY!", "YANAPD", 0);
    
    		getch();
    		return 0;
    }
    what do i do to make this work?

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    Code:
    #include <windows.h>
    #include <conio.h>
    
    int main(void)
    {
        if(MessageBox(NULL, "Do you like cheese?", "DO YOU LIKE CHEESE", 3)==IDYES)
            MessageBox(NULL, "YOU ARE A PERVERTED DONKEY!", "YAAPD", 0);
        else
            MessageBox(NULL, "YOU ARE NOT A PERVERTED DONKEY!", "YANAPD", 0);
    
        getch();
        return 0;
    }
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 10:48 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 05:48 AM
  5. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 07:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21