include using namespace std; main() { cout <<"vasu is a good girl\n"; return 0; } this is the basic c++ program which i tried to execute...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer

include

using namespace std;
main()
{
cout <<"vasu is a good girl\n";
return 0;
}
this is the basic c++ program which i tried to execute it
but it shows some errors to me

./bhar.cpp: line 2: using: command not found
./bhar.cpp: line 3: syntax error near unexpected token ('
./bhar.cpp: line 3:
int main()'
please tell me what to do

Posted
ganyumbez
Programmer

I guess the basic program in C++ would rather be:

include

using namespace std;
void main()
{
cout<<"Vasu is a good girl\n";
}

alternatively:

include

using namespace std;
int main()
{
cout<<"Vasu is a good girl\n";
return 0;
}

alternatively;

include

void main()
{
cout<<"Vasu is a good girl\n";
}

kindly try all these and check the internet for more resources

Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!