Hey, does anyone know what a code for a makefile would look like? I want to compile main.cpp cash.cpp cash.h checks.cpp and checks.h.
Also what would a vector that hold a set of numbers between 1-9 and when the user inputs a number between 1-9 it takes it out of the vector so that they can't use it again look like.
Thank in advance
Hey, does anyone know what a code for a makefile would look like? I want to compile main.cpp cash.cpp cash.h checks.cpp and checks.h.
I would imagine a Google search for "makefile tutorial" would give you the basic understanding you need.
Also what would a vector that hold a set of numbers between 1-9 and when the user inputs a number between 1-9 it takes it out of the vector so that they can't use it again look like.
Can you be a bit more specific about which part of this problem you're having trouble with? Is it reading the user input? Is it manipulating the vector to remove the number that the user's chosen? Or is it some other aspect of the problem?
Thanx! @Mikey Its reading the user input and then when its inputted taking it out of the vector so that the input can't be used again
example if the user enters 9 it would take the number 9 out of the vector so that when the user enters it again it would prompt and error
There are several different "build systems" that let you decribe your "project" in their own format and then generate a proper Makefile for you. GNU build system, cmake, Qt's qmake, various IDE's, ...
cmake is... not easy to learn, but I have to say, I've been very impressed with it. If I'm ever in the position of having to write the build files for a cross-platform project, I'd be very tempted to use it.