Search:

Type: Posts; User: Candace

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    785

    Vertically allgining an array

    This is a part of my code for an array.


    for(i=2;i<n;i++)
    {
    if(a[i] != 0)
    {
    cout<<a[i]<<" ";
    }
    } cout<<endl;
  2. thanks! got it

    thanks! got it
  3. Compiling error... a function-definition is not allowed here before â{â token

    I keep getting this compiling error

    a function-definition is not allowed here before â{â token


    #include <iostream>
    #include <cstdlib>

    using namespace std;
Results 1 to 3 of 3