lundi 9 août 2021

Why am i getting error in line splicing with cout? [closed]

I saw a video on yt (idk if its allowed to name their channel here but he's famous with name harry, in his c++ playlist video #4 at 15:28) where the tutor wrote the below piece of code and it was working fine, I mean there should be " in the end of first line and beginning of second line but he didn't use that still his code was working fine. BUT when i am running the same code on my machine then it gives error : missing terminating " character* and * error : 'value' was not declared in this scope

#include <iostream>
using namespace std;

int main() {
    int b=5;
    int a=9;

  cout<<"This is a tutorial 4. Here the value of a is "<<a<<". The 
    value of b is"<<b;

  // i think line splicing should be done here but **WHY** his code was working fine without the same.

    return 0;
}

Aucun commentaire:

Enregistrer un commentaire