Computer problems,Computer help
*AX SOFT>>>Programming & Design

Can anyone with programming, specifically C++, experience help me? (little needed) What's wrong in this script


http://i218.photobucket.com/albums/cc99/...

Using Dev-C++

I switched to system pause again, though that's not the problem. Please answer here or email me to help me. The tutorial I used - http://www.youtube.com/watch?v=nziy2_U5J...

My Script:

#include<iostream>
using namespace std;

int main(void)
(

double dnumber1 = 0.0;
double dnumber2 = 0.0;
double dnumber3 = 0.0;
double daverage = 0.0;

cout << "please enter 3 numbers... " << endl;

cin >> dnumber1;
cin >> dnumber2;
cin >> dnumber3;

daverage= (dnumber1 + dnumber2 + dnumber3) / 3;

cout << "The average of the numbers are... " << daverage <<endl << endl;

system("pause");
return 0;

)

Thank you very much :D

int main(void)
( <===== problem

That parenthesis needs to be changed to a "{" instead
....called a "left curly brace" .... it is next to the "P" key

Change the parenthesis at the bottom of your code too.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Is the C++ for dummies book a good way to start learning C++?

    I own the book and had read much of it as a 14-year-old. I felt like it had an awkward pace. It starts off by saying a lot of stuff I didn't understand (like the history of GNU C++, how to p...

  • What is the top current web development language?

    Edited: 7:09 p.m. EST The biggies out there are ASP.NET, followed by JSP and PhP. ASP.NET is used everywhere - JSP tends to be used by people who like open source as is PhP. (If you go with Ph...

  • I need tutorial ideas for a hypercam?

    Please look at here, ...

  • What computer language should I learn next?

    what the first guy said vb works on most windows apps

    ...
  • Which is better to learn and more used in web making???

    To tell you the truth, you i think you should start with javascript and keep learning from there and never stop.

    ...
  • Whats the difference between jpeg and jpg?

    They are the same thing. They are both rendered the same way. Jpg was used when only 3 letters extensions could be used in DOS. When windows 95 came out, longer extensions could be used and that is...

  • If anyone has any experience with programming, specifically C++, can you help me with a simple script error?

    When you asked for the second number, you forgot to read in their answer? cin >> dsecondnumber?

    ...
  • How can i animate words using imageready?

    Dear Neri, I will try to make it as simple as possible. Create 3 layers in photoshop. In layer one type your text using a big thick font. Duplicate this layer and rotate this text anticlockwi...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster