When i try to create and run any new simple test program in c++ a different one runs.
This program that runs is actually a java program, It is stored in my computer as a java.file.
I stopped working with c++ in my machine and went with java and now i want to go
write some stuff in c++ again.
Any of my old c++ programs that i wrote before installing the java development kit and writing java still work. But any new c++ programs that i try to
create do not run, the same java program runs instead
Try to move your c++ files to a different folder. Or sometimes it happens because your
c++ file isn't compiling correctly, so make sure they aren't any errors.
I used to only write c++ files and compile them with quincy, i have all the CPP files in 2 folders and also their Application files and their quincy files( is this bad?).
Then i installed a Java Development kit and wrote only JAVA files.
Now i want to write c++ programs again; when i try to run any new c++ program they don't even compile and the dos window pops up showing content of a JAVA file as if i had ran that one.
And I can't even find this JAVA file, i think i deleted it.
BUT any of my old C++ programs compile and run fine.
I don;t know what other info i should give.
it does not compile it just runs and ends and does everything it was meant to do.
Er... that's how it's meant to work. It's not meant to compile (itself?) every time you run it, it's supposed to compile every time you use a compiler to compile the necessary files. @.@
Allright, i am new to programming, so bare with me.
i used the word 'compile' wrong, i meant "build".
When you run a program in quincy a window pops up and says " (name of file).cpp has been modified. Build?"
[YES]
Then it builds, it takes like like a second and then it runs.