So, I have this :
Code:
#include <iostream>
using namespace std;
int main(){
char chr[1][256];
chr[0] = "hello everyone!";
chr[1] = "hello everyone!1";
cout<< &chr[0] << "\n" << &chr[1];
cin.get();
}
I am trying to initialise a multi dimensional c-style string, and then output it. But I get "Error E2277 chr.cpp 5:Lvalue required in function main()" when I try to compile it. The same error appears for the line 6, by the way.
Could anybody tell me what`s wrong about it ? I can`t figure out anything.