what is the wrong !!!

Hello,
This my 1st day in c++ , I just trying to learn while stay at home quarteened as I infected by cov-19.

I wrote the below code and something wrong with it !!!

when I am trying to compile I got

1>d:\my-dev\learning\myfristapp\myfristapp\myapp1.cpp(6): error C2065: 'end1' : undeclared identifier



#include <iostream>
using namespace std;
int main()
{
//This Program written by Name
cout<<" This is My Frist App"<<end1;
return 0;
}

It's "endl", not "end1". The last character is a lower-case L, because it's an end-of-line.
Welcome. Helios has solved your problem, but I wanted to offer some resources for learning C++.

https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list <- not actually a lot of books, but very highly recommended ones.

https://www.youtube.com/playlist?list=PLAE85DE8440AA6B83 <- (Bucky's C++ Tutorials) I recommend following this playlist as you read your book. While a youtube video can't get as in-depth as a book, these can give you a quick boost when the book gets too slow or lacks clarity.

Good luck AymanA.

Hello AymanA,


PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code.

Along with the proper indenting it makes it easier to read your code and also easier to respond to your post.

http://www.cplusplus.com/articles/jEywvCM9/
http://www.cplusplus.com/articles/z13hAqkS/

Hint: You can edit your post, highlight your code and press the <> formatting button. This will not automatically indent your code. That part is up to you.

You can use the preview button at the bottom to see how it looks.

I found the second link to be the most help.



To newbieg's suggestion I would add https://www.learncpp.com/

Since I first found this it has been updated extensively. These days I find it a good source for reference.

Andy
Topic archived. No new replies allowed.