You can use a C++ compiler without VS. Borland is a good compiler just off the top of my head that will definately work for you without needing Linux.I hate the VS.. but i need it to compile to see if i did it right... I hate the program I wish I had linux on my PC also but I do not feel like doing a reinstall
int main(int argc, const char* argv[]) {
//to test function1 only:
[b]function1()[/b];
//function2();
//function3();
//function4();
}
int main(int, const char* argv[]) {
//to test function2 only:
//function1();
[b]function2()[/b];
//function3();
//function4();
return 0;
}
...
Thats true but for beginners its a little confusing. I use an IDE too but when I started I was using notepad.I actually like VS. When you've got a huge project where there's a lot of interdependence going on, notepad ain't gonna cut it. A good IDE can cut your time on a project down considerably.
Some IDEs allow you to create test scripts, but I've never used those features so I don't know.I guess that makes sense... Our teacher said in about 30 seconds there was an easy way to do it.. but that makes sense to me. I will do that now..
You just call that function like you would from the main program or any other time for that matter. Remember that your main is also basically a function in the end.Quick question, how do you call upon a funtion within another function?