C++ for dummies first building error URGENT

Write your question here.
Hello and good day to you fellow programmers!

I have embarked on learning c++ using the famous 'dummies' books, on my first exercise i have come across a problem... line 30 "end1"

could someone please help me solve this ?

thankyou

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 //
//  Conversion - Program to convert temperature from
//              Celsius degrees into Fahrenheit;
//              Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

int main(int nNumberofArgs, char* pszArgs [])
{
    // enter the temperature in Celcius
    int celsius;
    cout << "Enter the temperature in Celsius:";
    cin >> celsius;

    // calculate conversion factor for Celsius
    // to Fahrenheit
    int factor;
    factor = 212 - 32;

    // use conversion factor to convert Celsius
    // into Fahrenheiot values
    int fahrenheit;
    fahrenheit = factor * celsius/100 + 32;

    // output the results (followed) by a NewLine
    cout << "Fahrenheit value is:";
    cout << fahrenheit << end1;

    // wait untill user is ready before terminating program
    // to allow thje user to see the program results
    cout << "Press Enter to continue..." << end1;
    cin.ignore(10, '\n');
    cin.get();
    return 0;
}
endl not end1: that's a lower-case L ("ell"), not the number 1 (one).
It's an abbreviation for end line.

Tip: Use a font that emphasizes the difference between 1lLi|IOo0Q-_,.'`;!.
There are even special "programmer's fonts" that are designed for legibility, if you prefer.
Last edited on
ahhh!!! what a noob mistake...reading from the book , it looked like a 1!

thankyou very much
Topic archived. No new replies allowed.