Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <stdio.h>
- #include <stdlib.h>
- using namespace std;
- int main()
- {
- ifstream file("d:\t.txt");
- if (file.is_open())
- {
- string a[5];
- for (int i = 0; i < 5; ++i)
- {
- file >> a[i];
- }
- }
- cout<< a;
- system("pause");
- }
- 1>------ Rebuild All started: Project: Project3, Configuration: Debug Win32 ------
- 1> Source.cpp
- 1>c:usersmalatrabdocumentsvisual studio 2013projectsproject3source.cpp(14): error C2065: 'a' : undeclared identifier
- ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement