Written only a comma.
Divide all as needed library, which will receive the data and write files of a certain structure. Maybe it's completely the wrong approach?
I'm learning, maybe a stupid question
main.cpp
#include "stdafx.h" #include #include #include #include "function.h" using namespace std; int main() { struct Station st_ation; st_ation.station_name="Station name"; st_ation.rec_dew="1"; st_ation.year="2001"; writefirstline(); }
function.h
struct Station { std::string station_name; std::string rec_dew; std::string year; }; void writefirstline();
function1.cpp
#include "stdafx.h" #include #include #include #include #include "function.h" using namespace std; struct Station station; void writefirstline(){ ofstream file("fileConfiguration.cfg"); file<