Open OccupyMars2025 opened 11 months ago
In file included from ../Graph/Graph_implementation.h:24,
from ../Graph/Graph.h:65,
from ../UniPrint/print.h:32,
from Graph_test.h:14,
from Graph_test.cpp:12:
#include
files, the print(T&)
is used before declaration in Graph/Graph.h
print(T&)
declaration at the top of src/UniPrint/print.h
#pragma once
template <typename T> static void print ( const T& x );
template <typename T> static void print ( T& x );
#define PRINT(x) { print(x); crc(x); checkOrder(x); printf("\n"); }
#include <cstdio> //采用C风格精细控制输出格式
#include "Huffman/HuffChar.h" //Huffman超字符
#include "BinTree/BinTree.h" //二叉树
#include "Huffman/HuffTree.h" //Huffman树
report error:
src/Graph$ make all