Hello. So to start off, I've made a simple program in C# to move a given file into a specified directory, deleting the file if it already exists and moving the given file into its place. I'm completely new at C++ and am trying to create the exact same console program with C++. I am using Dev-Cpp as recommended by a friend and I am now aware I should have kept visual studio's C++ instead. However I'm still up to using bloodshed's cpp compiler.
Right now I'm stuck on moving/copying my file. I've researched quite a bit and tried to gather different code to perform the task. Below is where my compiler says there are too many arguments in the function but I retrieved this code from a website that I can't remember right now and I am still confused.
omg dude, it freaking works hahah. I knew I made stupid mistake. Thanks for that mate, probably would have never figured it out on my own. On the error board my compiler keeps stopping at my line 23, so I kept thinking something was wrong with that line of code. Bah I feel dumb, thanks again mate, greatly appreciate it!
I haven't used my visual studios cpp in like 2-3 years and I wwanted to start again a week ago or so. My friend told me to use Dev-C++ because it is more user-friendly and will be better for a complete beginner such as myself. I already uninstalled msvs and installed dev-cpp so I'm too lazy to uninstall and reinstall all over again =[
Dev-C++ hasn't been updated in years, it has lots of unresolved bugs and I see tons of beginners pop in the forum with issues that is attributed to their compilers. Do the switch, it'll make things much better.
goto is a command that is left over from before the days of structured programming. When you start to write code of more than 200 lines, the goto will get VERY complicated, debugging will be more difficult since you don't know how you got to that point in the code and no one will help you because no one wants to read a spaghetti mess riddled with gotos.
I see. Well so do you recommend I switch over to visual studios C++ 2010? I've had 2008 on my computer ever since and for some diddly reason it wouldn't let me create a new project. God knows why but I guess 2010 will be best? I know some other cpp compilers but I've always used msvs.
Edit: Well I switched over to visual studios C++ 2010, so different to 2008 and the layout design looks exactly like C# 2010 hahah. But yeah, I copy and pasted my code and i got some errors to start out with, fixed and moved some things around and works like a charm, thx for info and help and suggestion everyone.