Hi, I have just started teaching myself the c++ language because I am going to be taking a class on the subject in college and wanted to get a head start. I have already written, compiled, and executed my first program, which is the famous "Hello World!" program without a problem.
The real problem begins when I try to write another program. After successfully running the hello world program, I tried writing other, completely different programs. However, when I compile and run them, the same Hello World! message pops up on my screen, even though that is not the program's function. Every time I build and run something, the hello world message is always the result!
I have even tried different programs using cout just like the Hello World program, but with different words, only to recieve the same message "Hello World" on my screen. I have even tried completely deleting the hello world project completely from my computer, but the message continues to show itself!
I am using (of course) code::blocks as my IDE, and my operating system is Xubuntu. My process in which I create a program is by clicking FIle - New -
-Project. then I choose console application, choose c++ as the language, and then name the project. After that, I create a new, empty file, name it, and then write the program ( there were many different programs).
please help, I am new to programming, and I am hoping that this issue is just from a simple mistake that I am making, and hopefully it can fixed soon because class is going to be starting soon! thanks for any advice!