O
O
OKNOZA2016-03-08 16:35:20
linux
OKNOZA, 2016-03-08 16:35:20

How to rename a directory in g++ and create a new one?

There is an image directory, you need to rename it and create a new image directory.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abcd0x00, 2016-03-12
@abcd0x00

It's easy to rename

#include <cstdio>

int main()
{
    rename("t1", "t2");
    return 0;
}

is to create a new
#include <sys/stat.h>

int main()
{
    mkdir("t1", 0644);
    return 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question