How do I structure my C++ project with multiple applications? [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am working on implementing a BST in c++. The project needs two applications, one to read data from a file and build the tree and save it to a file. And another application to load then query the tree for information. I am trying to find a good structure for my entire project. I am thinking the source folder will contain three .cpp files: App1.cpp, App2.cpp and main.cpp. Is this how it's usually done?
Thanks!

Related

Function in CUDA that does the same thing as compiler.SourceModule in pyCUDA [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I have a question in CUDA programming.
Is there a way to obtain a module by accepting the contents of a *.cu file as a string rather than loading a *.cu file and compiling with cubin? I'd like to utilize nvrtc if possible.
I wrote most of the code using nvrtc, and I'm looking for a way to not create external files like cubin.

Which header files does bits/stdc++.h contain? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have read many places that bits/stdc++.h contains all the header files that are useful in competitive programming, for saving time.
Can anyone give me any source for it or give the list in the of its header files?
You can open the file in the path where your all the c++ header files are kept. (Locate the file stdc++.h).
Or you can get one of the versions of the file in the link described here:
stdc++.h

Hide resource files in game making [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I notice that in many game folders, I cannot find the resource files (sounds, game scripts, textures...). Is that because I don't see it or the programmers have hidden them somewhere?
I'm learning to make my first game in SDL2.
They will often be compressed into .cab or other kinds of archival formats to decrease required space and provide tamper protection.

Multiple files programming practices in C++? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am a newbie programmer in C++, I already know that I can use extern keyword to access functions and global variables on the other files in my project but the problem that I faced to, is that how can I use structs, enums placed (available in other files of my project) in my current .cpp file?
T.I.A
You should declare them in a header file, then #include them when you need them. You can still define them in a cpp file.

How to check multiple files for duplicates in C++ [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I need to compare 5 files by their file paths: a,b,c,d,e and find duplicates if exists.
How can I do this in c++ via md5sum comparison of files?
You'd need to compute a checksum for each file (write it yourself or call an external program), get hold of each file, ... This depends on the operating system. It is much easier to do something like this in a scripting language.