| | |
Hey all, a little help needed
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 24
Reputation:
Solved Threads: 1
Hi there, new to the community and first of all just wanted to say its great to be here. I'm rather new to C++ and i was having an issue perhaps someone could clear up for me.
Alright, our instructor for a class im taking would give us simple programs that we needed to make little additions/manipulations to. "end1" would coincide with text that was in quotations. From what i understand the use of "end1" is to help ensure text in quotations compile and execute more accurately? Here is an example just to illustrate my point.
For some reason whenever i try to compile my own code while including "end1", I get errors stating that "end1 is an unknown identifier". I apologize for not having the exact code and errors to copy and paste here but im at work at the moment. Just looking for any direction here as to why it might be giving me this error. Appreciate your time guys and have a great day
-alias
Alright, our instructor for a class im taking would give us simple programs that we needed to make little additions/manipulations to. "end1" would coincide with text that was in quotations. From what i understand the use of "end1" is to help ensure text in quotations compile and execute more accurately? Here is an example just to illustrate my point.
C++ Syntax (Toggle Plain Text)
#include<iostream> using namespace std ; int main() ; { cout << end1 ; cout << "Hello world." << end1 ; return (0) ; }
-alias
Last edited by Narue; Nov 20th, 2008 at 12:15 pm. Reason: added code tags
it isn't "end1" but "endl" (with an "el" not a "one") 
The endl is short for "endline" and makes the console jump to a new line.
For future posts: if you post code here please use code-tags

The endl is short for "endline" and makes the console jump to a new line.
cout << "Hello world.\n"; would have the same effect.For future posts: if you post code here please use code-tags
Last edited by niek_e; Nov 20th, 2008 at 11:28 am.
•
•
Join Date: Nov 2008
Posts: 24
Reputation:
Solved Threads: 1
Alright sounds good, i didnt know whether that was required or not i was just going off the format provided by our instructor. My only programming experience pre-C++ was python, and even that was fairly limited so im very open to any critiques/advice you all have. Been wanting to learn programming for awhile now.
•
•
Join Date: Nov 2008
Posts: 43
Reputation:
Solved Threads: 0
I made a few changes for you. Good luck with the C++. This website is very helpful.
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std ; int main() { cout << "Hello world." << endl; return 0; }
![]() |
Similar Threads
- Major help needed (picking amd 64 and mobo) (Motherboards, CPUs and RAM)
- help needed (Java)
- php help needed for login (PHP)
- PHP coder needed for online game (Web Development Job Offers)
- help much needed !! (OS X)
- Java Expert (Needed) (Java)
Other Threads in the C++ Forum
- Previous Thread: hello guys... help required...
- Next Thread: a question about atltypes.h
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference simple string strings studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






