0

Introduction to Data Types

You are given a program that should output the name and the release year of a famous movie. But the program has errors. Fix the code to get the correct output. https://code.sololearn.com/cVTfb6jDOY8Q/?ref=app //Please help!!!

3rd Mar 2021, 12:39 AM
Tahiti🌍Castillo
Tahiti🌍Castillo - avatar
6 Réponses
- 2
"1999" is a string litteral not an int (1999 is an int)
3rd Mar 2021, 12:41 AM
Angelo
Angelo - avatar
+ 2
//VICTORY!!!! 🥳
3rd Mar 2021, 12:46 AM
Tahiti🌍Castillo
Tahiti🌍Castillo - avatar
+ 2
#include <iostream> using namespace std; int main() { string var1 = "Fight Club"; int var2 = 1999; cout << var1 << " " << var2; return 0; } Good Luck
25th Jan 2022, 12:24 PM
Muhammad Alif Deva Rizqon
Muhammad Alif Deva Rizqon - avatar
+ 2
#include<iostream> using namespace std; int main() { cout<<"movie name is==>The Dragon"<<endl; cout<<"release date===> 1999"; }
10th Feb 2022, 4:22 PM
sajjad hussain
sajjad hussain - avatar
+ 1
Angelo - Thank you. Let me try again.
3rd Mar 2021, 12:42 AM
Tahiti🌍Castillo
Tahiti🌍Castillo - avatar
0
#include <iostream> using namespace std; int main() { string var1 = "Fight Club"; int var2 = 1999; cout << var1 << " " << var2; return 0; }
2nd Jan 2023, 6:50 PM
ZARIF JORAYEV
ZARIF JORAYEV - avatar