cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
lvalue
lvalue
Jul 4, 2014 at 7:26am UTC
mehak
(94)
why does it give an error saying lvalue required
1
2
3
4
5
6
7
8
9
#include <iostream>
using
namespace
std;
int
main(){
int
i =3;
for
(; i++=0;) cout<<i; }
Jul 4, 2014 at 7:43am UTC
Ispil
(788)
Look at line 6. The error is... well, rather straightforward- you added an extra +. Also, this is an infinite loop, but you'll find that out once you fix the compile error.
Topic archived. No new replies allowed.