很快的问题.我要复制使用include指令将文本数据粘贴到单独文件的源代码中. 这合法吗? struct Record; // collection of data fieldsRecord rec = { #include "some_big_record.txt" };int numbers[] = { #include "some_
这合法吗?
struct Record; // collection of data fields Record rec = { #include "some_big_record.txt" }; int numbers[] = { #include "some_long_sequence_of_numbers.txt" };
它适用于我的盒子(GCC),但它是否可移植?
这是便携的:Record rec = { #include "some_big_record.txt" };