i am using slackware And G++ to compile
i tried make a file test.cpp;;
===================
#include <cstdio>
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <cstring>
using namespace std;
int main(){
system("clear");
string amin;
printf("\n\tmasukan nama filenya....!!");
getline(cin,amin);
=====================
result :
a file with Name ../amin
but i dont like it..
i want a file with the name input from getline(cin,char *);
how to do this problem..please.....??