online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> struct book { int bookid; std::string bookname; float prize; }; int main(){ book b1; std::cout<<"Enter bookid"<<" "; std::cin>>b1.bookid; std::cin.ignore(); //ADDED THIS std::cout<<"Enter bookname"; std::getline(std::cin,b1.bookname); std::cout<<"enter prize"<<std::endl; std::cin>>b1.prize; std::cout<<b1.bookid<< " "<<b1.bookname<<" "<<b1.prize<<std::endl; return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue