Thread: Code not working in codeblocks

  1. #1
    Registered User
    Join Date
    Jun 2018
    Posts
    1

    Code not working in codeblocks

    this code is not working in codeblocks
    Code:
    main()
    {
    clrscr();
    printf("Manish Dhiman");
    getch();
    }

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You should try compiling a correct program written in standard C instead, e.g.,
    Code:
    #include <stdio.h>
    
    int main(void)
    {
        printf("Manish Dhiman\n");
        return 0;
    }
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Codeblocks project.exe stopped working
    By Sándor Csetneki in forum C Programming
    Replies: 2
    Last Post: 10-26-2015, 03:36 PM
  2. Replies: 6
    Last Post: 06-18-2015, 12:31 PM
  3. no error of compilation but my code makes codeblocks bug
    By funnydarkvador in forum C++ Programming
    Replies: 3
    Last Post: 03-19-2013, 12:31 AM
  4. code not working in codeblocks?
    By jamort in forum C++ Programming
    Replies: 4
    Last Post: 11-09-2009, 09:26 PM
  5. working set code
    By chinu in forum C++ Programming
    Replies: 6
    Last Post: 04-13-2008, 08:44 PM

Tags for this Thread