[ create a new paste ] login | about

Link: http://codepad.org/2Mucfdtf    [ raw code | output | fork ]

hmurcia - C++, pasted on Feb 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Manejo de arreglos unidimensionales
#include <iostream>
using namespace std;

int main() {
    int edad[] = {34, 12, 17, 29, 45, 60, 71, 34, 21, 10};

    char nombre[4] = {'h', 'o', 'l', 'a'},
         aviso[] = {'c', 'o' , 'n', 't', 'e', 'n', 'i', 'd', 'o'};

    cout << edad[0] << ", " << edad[1] << ", " << edad[2] << ", "
         << edad[3] << ", " << edad[4] << ", ..." << endl << endl;

    cout << nombre << endl << aviso;

    cin.get(); cin.get();
}


Output:
1
2
3
4
34, 12, 17, 29, 45, ...

hola
contenidohola


Create a new paste based on this one


Comments: