C++ Question
I don''t understand how to pass a file from the main function into a constructor that is part of a class. Any info would be greatly appreciated. My code is below.
Legene
maze.h
class maze{
public:
maze();
void transverse();
void get_data();
void print_data();
private:
int intersections[200];
int transversal[200];
};
maze.cpp
#include
#include "maze.h"
maze::maze(char name[])
{
}
main.cpp
#include
#include "maze.h"
main()
{
maze m;
return 0;
}
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement