Advertisement
B1LLy

łańcuchy

Jan 9th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. // ConsoleApplication24.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <stdio.h>
  6. #define NAPIS "to jest stala lancuchowa."
  7. #define MAXDL 81
  8. int main(void)
  9. {
  10.     char slowa[MAXDL] = "to jest lancuch w tablicy";
  11.     const char * wsk1 = "cos mnie wskazuje";
  12.     puts("oto kilka lancuchow:");
  13.     puts(NAPIS);
  14.     puts(slowa);
  15.     puts(wsk1);
  16.     slowa[1] = 'u';
  17.     puts(slowa);
  18.     wsk1 = slowa;
  19.     puts("wskaznik przekierowany");
  20.     puts(wsk1);
  21.     getchar(); getchar();
  22.  
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement