Quote:
Originally Posted by c++beginner View Post
this is my attempt at it but i know its very wrong lol!


#include <iostream>

int main ()
{
cout:: << "Football Team Goals" >>;
int goals [10];
int goals [10] = { 5, 2, 2, 1, 3,4,2,2,3,5 };

cout:: << "total team goals:">>;

......................
Code:
#include <iostream>
using namespace std;
int main()
{
    cout << "Hello, World!" << endl;
    cin.get();
    return 0;
}
That is the most basic program in C++ learn from that and see what you did wrong.