Displayed errors

This is a discussion on Displayed errors within the C++ Programming forums, part of the General Programming Boards category; i have some programs i am working on and i am getting errors i figured some out but not quite ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    1

    Question Displayed errors

    i have some programs i am working on and i am getting errors i figured some out but not quite all so if someone can overlook it and point me in the right direction......
    Code:
    a) void displayNum (  int  ); // my corrections: "displayMessage" and ";" 
           { 
                cout << num <<endl;
                return 0;
            }    
    
    b)     #include <iostream>;// ";"
            using std::cout;
            using std::endl;
            arraySize = 10;          //declaration not specific
            myArray [ arraySize ] = { 0 };
            for ( int i = 0;  i < 11; i++)
            myArray [ i ] = 2 * i;
    
    c)    int a[ 3 ] = { 1, 2, 3 };
           int num ;
           int *aPtr;
           aPtr = &a;
           aPtr ++;
           num = aPtr;

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    Those are not programs.
    They are random snippets with various syntax errors.

    Post actual programs and your actual error messages (Not "and i am getting errors").
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. global namespace errors
    By stubaan in forum C++ Programming
    Replies: 9
    Last Post: 04-02-2008, 03:11 PM
  2. errors using my parser- MSVC++ 6, bhtypes.h
    By AeroHammer in forum C++ Programming
    Replies: 6
    Last Post: 01-25-2005, 06:11 PM
  3. errors in my class....
    By o0obruceleeo0o in forum C++ Programming
    Replies: 9
    Last Post: 04-14-2003, 03:22 AM
  4. errors with arrays and structures
    By ssjnamek in forum C++ Programming
    Replies: 4
    Last Post: 03-03-2002, 10:48 PM
  5. using PI as a const in a header file errors
    By madhouse199 in forum C++ Programming
    Replies: 6
    Last Post: 11-27-2001, 12:54 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21