Image

Imagecirrussilvus wrote in Imagecprogramming 😡frustrated

Total newb :(

Okay. The only languages I've ever programmed in are Java and Lisp. This semester I'm taking a course that brushes over a selection of languages, and this one is in C. I've never programmed in C before, and our professor didn't exactly give me much to work with.

I've been told that Java and C are similar, but that doesn't help me too much.


The assignment is 2 seperate programs. The first is to write a program to display the prime factorization of a number greater than or equal to 2. The second is to write a program which can perform one of several operations on all files of a certain type in a given directory and, recursively, all of its subdirectories. At the least it has to be able to chmod and delete. I was thinking that I would like to do something that would take all the files of one type, make a new directory named after the type, and move the files there. I don't even know where to start on the assignment though, let alone trying anything "fancy".


Any help at all would be appreciated. I feel like such an idiot not being able to figure this out on my own. :(

Thanks.