Question about Microsoft Windows Vista Home Premium with Service Pack 1: Windows

2 Answers

Not getting the output on the screen

Hi,
i am just started with the c++ programming. i want the output of my first program but it is not there.....

my program is as follows:
#include
int main()
{
std::cout<<"welcome to the world of c++! ";
return 0;
}

but when i compile it shows me the following error---
"type qualifier 'std' must be a struct or class name."

i am using window vista and through dosbox. kindly suggest me.

Posted by on

  • Shaun Plencner
    Shaun Plencner May 11, 2010

    why are u doing this ?





    Helping u Shsun

×

2 Answers

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Greenhorn:

    A rookie expert who has answered 20 questions on their first day.

    Cheetah:

    An expert who has answered 20 or more questions within one hour.

  • Expert
  • 76 Answers

Actually your program is spot on keep up the good work. however it appears you forgot to put <iostream> after #include

#include <iostream> //like so

Posted on Oct 05, 2012

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 27 Answers

Try writing it like this ...


#include <iostream>
using namespace std;

int main ()
{
cout << "welcome to the world of c++! ";
return 0;
}

Posted on Nov 16, 2008

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Hp dx2200 computer won't power off


If your HP computer refuses to power down, this means that there are still programs open that Windows can't close. Normally when you select the "Shut Down" button from your "Start" menu, Windows closes all open programs, then closes itself, and your basic input/output system (BIOS) turns off all of your hardware. If Windows can't close all open programs, your computer won't be able to power off. This means that you must close these programs yourself.

Right-click on the window of an open program on your Windows taskbar (Bottom of Screen) Click "Close Window." Windows manually closes the program. If a window appears on-screen indicating that Windows cannot get the program to close, click the "Force Close" button in this window to have Windows force the program to shut down. Repeat "Step 1" for any additional programs that are open on your computer. Click "Start." Click "Shut Down." Hope this helps.

Dec 10, 2012 | Computers & Internet

1 Answer

My computer is toshiba satelitte pro m200. from the day one, i have audio problem saying no output audio is installed. please help me


Hi,

No Audio Output Installed Fix:

1. Go start menu
2. Click programs
3. Click accessories, then click system tools and the to system restore.
It only takes a few minutes and the computer will automatically reboot.
4. Go to control panel and find add/remove programs. Uninstall the software that runs your sound device.
5. Re install your Audio driver.





Apr 10, 2011 | Computers & Internet

1 Answer

Which function displays the output on the screen in C?


printf() displays output on screen. it is found in stdio.h library file

Example:
printf("Programming is fun\n");

Out put will be ;
Programming is fun

Jul 24, 2010 | Computers & Internet

1 Answer

Output from Kyocera PRESCRIBE commands?


Did you ever find a solution to this?
Mike

Mar 10, 2010 | Kyocera Mita FS-1030D Laser Printer

1 Answer

When I start the program I get the message "could not find audio output device". Sound works fine with other programs. Have tried with and without speakers.


which program ??
if u was talking about winamp
u have to open it and choose options > prefrences > output > and choose nulsoft direct sound output

Jul 06, 2009 | Computers & Internet

1 Answer

The program says that I have no Midi output. How do I get a Midi output.


hi
which program ? tells you this have a look here about about the software MIDI Output | Sygyt Software


riz.

Aug 17, 2008 | Computers & Internet

3 Answers

S7 226 Siemen's Plc programming


Hi there, you can check out this link Learn PLC programming.
This web site runplc.com is great resource for anything you like about PLC programming, free programs for programmable logic controllers, and much much more about PLC programming basic

Feb 04, 2008 | Computers & Internet

Not finding what you are looking for?
Microsoft Windows Vista Home Premium with Service Pack 1: Windows Logo

Related Topics:

89 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2642 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18357 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...