1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

C++ Compile Error

Discussion in 'All Other Software' started by Rahul97, Jun 7, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. Rahul97

    Rahul97 Thread Starter

    Joined:
    Jun 7, 2012
    Messages:
    3
    #include<iostream.h>
    int main ()
    {
    cout << "First Line." << endl;
    newLine ();
    cout << "Second Line." << endl;
    getchar();
    return 0;
    }


    Please help me what is wrong with above programme . I m getting Following Compile Error.
    Newline function is undecleared first use this Function.
     
  2. Rahul97

    Rahul97 Thread Starter

    Joined:
    Jun 7, 2012
    Messages:
    3
    Actually I have Pasted this Directly From Book Thinkcsscpp Yet it's showing some Error.and this book is using Void main() function while it's not legal can anyone explain me why?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1056167