open a mp3file prob

This is a discussion on open a mp3file prob within the C++ Programming forums, part of the General Programming Boards category; I'm new with c++ and I just can't figure this out. I want the user, to input their mp3 directory. ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    5

    open a mp3file prob

    I'm new with c++ and I just can't figure this out. I want the user, to input their mp3 directory. Then, they input the mp3 files name (without the .mp3). This is my code (which doesn't work)

    void mp3Choice()
    {
    clrscr();
    cout<<"\n\n Your MP3 directory?"<<endl;
    cin>>mp3Dir;
    cout<<"\n\n The filename of the desired MP3? "<<endl;
    cin>>fileName;

    strcat(mp3Dir, "fileName");
    strcat(fileName, ".mp3");
    system(fileName);

    }

    i've entered all the chars etc in the beginning, so don't comment on that they don't excist

    -----------------EDIT-----------------

    Nevermind, I solved it

    -----------------EDIT-----------------
    Last edited by virre; 01-20-2002 at 06:51 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Source Licenses
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-10-2006, 08:53 PM
  2. Big help in Astar search code...
    By alvifarooq in forum C++ Programming
    Replies: 6
    Last Post: 09-24-2004, 11:38 AM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM
  5. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM

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