Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ConsoleApplication24.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <stdio.h>
- #include <iostream>
- #define DLUGOSC 40
- #define MAX 5
- using namespace std;
- int main()
- {
- const char *tabl_wskaznikow_wymagania[MAX]
- {
- "dodawanie w pamieci",
- "mnozenie",
- "szybkie zapamietywanie",
- "doslowne wykonywanie polecen",
- "programowanie w c"
- };
- char umiejetnosci[MAX][DLUGOSC] =
- {
- "czytanie",
- "spanie",
- "ogladanie telwizji",
- "wysylanie poczty",
- "czytanie e-maili"
- };
- int i;
- puts("porownajmy wymagania i umiejetnosci");
- printf("%s %39s\n", "wymagania", "umiejetnosci");
- for (i = 0; i < MAX; i++)
- printf("%-36s %-25s\n", tabl_wskaznikow_wymagania[i], umiejetnosci[i]);
- printf("\nsizeof wymagania: %zd, sizeof umiejetnosci: %zd\n",
- sizeof(tabl_wskaznikow_wymagania), sizeof(umiejetnosci));
- getchar(); getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement