Im pretty sure, this has allready been answered, but I used the search and i couldn't find anything, so...
Im new to c++ but not new in programming.
I need several procedures (probably around 50), that I would like to group in the same classes. For example, file related procedures in one class, math related in the other... and have one class per file.
The problem is, I have no idea, how to do that.
At the moment, I have each class in its own cpp file, each cpp file has a header file and a file with main function.
This is bascly how things look like:
files.h
Code:
#ifndef FILES_H
#define FILES_H
class files{
public:
static bool exists(char *path[]);
};
#endif
files.cpp
Code:
#include "files.h"
static bool exists(char *path[]){
//code
return false;
}
main.cpp
Code:
#include <stdio.h>
#include "files.h"
int main(int argc, char *argv[])
{
printf("\n");
//were is where i'd like to use the function
return 0;
}