Relative Content

Tag Archive for c++string

Long Compiling and Execution Time

i’ve wrote a small program to format a text file. So far i am mostly statisfied with the result of my program. What is unaccaptble is the time it needs to compile and execute. It takes 6 seconds to compile and even longer to execute. Is fgetc the problem?

string output to sovle

#task:input a number “n” and a string ,then shift the string
1.example:
hello
2
output:
llohe