[ create a new paste ] login | about

Link: http://codepad.org/ueaSpW3G    [ raw code | output | fork ]

C++, pasted on Dec 2:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;

int main()
{
    char* filename1 = new char[];
    cout << "Введiть назву файла для читання: " << endl;
    cin >> filename1;
    return 0;
}


Output:
1
2
3
In function 'int main()':
Line 6: error: expected primary-expression before ']' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: