Combining Code together C++ -
ive written 2 solutions of code, first 1 reads data file vector calculations , stores new data in vector, second 1 gui allows me create new textfile. both work individually combining them 1 solution difficult, there 2x int main() plus class in 1 , struct in other. great?
wrap them in proper data structure.
a c++ program contain 1 main entry point. it's job programmer divide logic up, well, logically.
in case, may want create method/function reads data file. i'd stick gui in it's own separate class.
this question seems bit odd , it's obvious you're new programming. read bit more on data structures , c++ language.
Comments
Post a Comment