Thread: 2 error in source code

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    227

    Talking 2 error in source code

    i have tryed this source in a borland 5.1 compiler that i got right here in this site but i get 2 error's

    the 2 error's

    1 unterminated string or character constant
    2 function call missing


    #include <iostream.h>
    #include <stdlib.h>

    int main()
    {
    putenv("PATH=C:\");
    cout<<getenv("PATH");
    return 0;
    }

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > putenv("PATH=C:\");
    Watch those \
    putenv("PATH=C:\\");

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seven Kingdoms I: Ancient Adversaries for Linux
    By MIH1406 in forum Projects and Job Recruitment
    Replies: 13
    Last Post: 01-17-2010, 05:03 PM
  2. How do you call another source code file?
    By nifear4 in forum C Programming
    Replies: 2
    Last Post: 10-28-2008, 12:16 PM
  3. DxEngine source code
    By Sang-drax in forum Game Programming
    Replies: 5
    Last Post: 06-26-2003, 05:50 PM
  4. Lines from Unix's source code have been copied into the heart of Linux????
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 05-19-2003, 03:50 PM
  5. Source Code Beautifier
    By Hammer in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-05-2002, 09:21 PM