E
ehab
Here they are my trials : please judge I can not find where is error
Trial #1 :
---------
#include <iostream>
/*using namespace std;
int main() {*/
int main(int argc, char **argv) {
/*std::cout<<"hello world"<<std::end1;
cout<<"hello world"<<end1;*/
cout << argv[1] << end1;
}
stupid.cpp: In function `int main(int, char**)':
stupid.cpp:7: `cout' undeclared (first use this function)
stupid.cpp:7: (Each undeclared identifier is reported only once for each
function it appears in.)
stupid.cpp:7: `end1' undeclared (first use this function)
Trial #2 :
---------
#include <iostream>
using namespace std;
int main() {
//std::cout<<"hello world"<<std::end1;
cout << "hello world" << end1;
}
stupid2.cpp: In function `int main()':
stupid2.cpp:5: `end1' undeclared (first use this function)
stupid2.cpp:5: (Each undeclared identifier is reported only once for each
function it appears in.)
Trial #3 :
---------
#include <iostream>
int main() {
std::cout << "hello world" <<std::end1;
}
stupid3.cpp: In function `int main()':
stupid3.cpp:3: `end1' undeclared in namespace `std'
Trial #1 :
---------
#include <iostream>
/*using namespace std;
int main() {*/
int main(int argc, char **argv) {
/*std::cout<<"hello world"<<std::end1;
cout<<"hello world"<<end1;*/
cout << argv[1] << end1;
}
stupid.cpp: In function `int main(int, char**)':
stupid.cpp:7: `cout' undeclared (first use this function)
stupid.cpp:7: (Each undeclared identifier is reported only once for each
function it appears in.)
stupid.cpp:7: `end1' undeclared (first use this function)
Trial #2 :
---------
#include <iostream>
using namespace std;
int main() {
//std::cout<<"hello world"<<std::end1;
cout << "hello world" << end1;
}
stupid2.cpp: In function `int main()':
stupid2.cpp:5: `end1' undeclared (first use this function)
stupid2.cpp:5: (Each undeclared identifier is reported only once for each
function it appears in.)
Trial #3 :
---------
#include <iostream>
int main() {
std::cout << "hello world" <<std::end1;
}
stupid3.cpp: In function `int main()':
stupid3.cpp:3: `end1' undeclared in namespace `std'