Jump to content

Compiler Error & problems

- - - - -

  • Please log in to reply
5 replies to this topic

#1
dharmil007

dharmil007

    Newbie

  • Members
  • PipPip
  • 16 posts
HeLLo
i M a basic C programmer, just started to learn it.
So till now i was using Turbo C++ 3.0 but i had fEwW problems with it.
So i shifted to Code::Blocks using MinGW Compiler
But 1 thing i cant understand.
As from when i have learnt C, i have learnt to write clrscr ()
i Have leanrt using Turbo C++ 3.0
But whenevr i compile the programe in Code::Blocks & try to write clrscr (), it rejects the programme, giving clrscr () as error.

& whenever i compile a programme, i get this msg after successful compilation
Posted Image


So can u pls. explain me why are this errors happening???

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
clrscr() is NOT part of standard C++. Why are you trying to use it?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dharmil007

dharmil007

    Newbie

  • Members
  • PipPip
  • 16 posts

WingedPanther said:

clrscr() is NOT part of standard C++. Why are you trying to use it?
When i was using TURBO C++ 3.0 in that clrscr() meant to clear the screen contents of the previous programees, that had been executed from the memory.
if i dont write it then it would display all the programmes that had been execute before.

& what about second error
& whenever i compile a programme, i get this msg after successful compilation
Posted Image

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Returning 0 generally means success. Do you have an .exe file now?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
dharmil007

dharmil007

    Newbie

  • Members
  • PipPip
  • 16 posts

WingedPanther said:

Returning 0 generally means success. Do you have an .exe file now?
yes i do have exe file.
But i just dont understnd why does THIS 2 LINES COME AFTER EXECUTION OF PROGRAMME, IT SHOULD END IMMEDIATELY AS THE PROGRAMME IS OVER

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Without seeing your code, compiler options, etc, it's almost impossible to say. It looks like you have something in there that is doing timing. It may be code::blocks that is displaying that message instead of your code, too.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users