Guest User

C++

a guest
Jan 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. //Napisz program, który wczyta łańcuch znaków z klawiatury
  2. //a następnie usunie z tego łańcucha pierwszą małą literę.
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <conio.h>
  7. #include <string>
  8.  
  9. using namespace std;
  10.  
  11.  
  12.  
  13. void func(char tab[])
  14. {
  15.     int i = 0;
  16.     while (!tab[i]<'a' && !tab[i]>'z')
  17.    
  18.  
  19. }
  20.  
  21. int main()
  22. {
  23.     char text[50];
  24.     cout << "Podaj swoj tekst" << endl;
  25.     cin.getline(text, 50);
  26.     func(text);
  27.     _getch();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment