So ; I heard you Liek Semicolons and Get's ?
Whats wrong with my code?
Used to let the user to insert the rectangle dimensionsCode:/* Credits: --Pxpc2 C++ book */ #include <iostream> using namespace std; int main () { int length; // this should declare a variable. int width; // this should declare another variable. cout << "Enter the Length: "; cin >> length; // ......................................................///////// cout << "enter the width: "; cin >>; // lalalalalalala cout << "The area is "; cout << length * width; // ... return 0 }
So ; I heard you Liek Semicolons and Get's ?
Love You All~
cin >>; // lalalalalalala
to
cin >> width; // lalalalalalala
Hassan (05-03-2011),Hell_Demon (05-04-2011),[MPGH]master131 (05-04-2011),whit (05-04-2011)
Look over your code. You're trying to get user input and put the entered value into a semi-colon (which is not possible). Also you forgot a semi-colon after return 0 which will cause the code to 'unexpectedly' end.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Hell_Demon (05-04-2011),whit (05-04-2011)
Oh thanks alot
/Req close
~ Closed on request ~
Ah we-a blaze the fyah, make it bun dem!