[Exercise 10] | [Content] | [Exercise 12] |
Create a program, that makes a copy of text file character by character. The program transforms all small letters to capital ones. Use strams. Enter names of files from keyboard. You can use methods get and put:
- read one character:
c=inp_file.get();
- write one character:
out_file.put(c);
Skelet of the program:
read character while(inp_file.eof()==false) { if (c is a small letter) c = c - ('a' - 'A'); put c to the file read character }Solution:
CodeBlocks: copy.cbp, copy.cpp
Create a program that uses generic stack from STL to store characters. Insert characters read from keyboard to the stack (terminate characters by Enter), print the count of stored characters (size of the stack). Pop all characters and print them.
Solution:
CodeBlocks: stackstl.cbp, stackstl.cpp
The presentation about xwWidgets and Qt library: 14PAM_exercise13_WIN_wx_qt.pptx.
Hellowin uses WIN API:
CodeBlocks: hellowin.cbp, hellowin.cpp Application using Qt library and Qt Creator tool (open the file CMakeLists.txt in the tool)
Application: applicationqt_en.zip
[Exercise 10] | [Content] | [Exercise 12] |