This is an absolute beginner’s question, but per the latest podcast, I understand that no question is too newbie.
I have 0 programming experience and I want to learn C, so I’m starting the K&R book. I am using a Windows XP laptop, and I am planning on using Notepad++ to write, and Code::Blocks to compile.
Here’s my question: once I have written the “hello world” program in Notepad++, how should I save it, compile it, and run it?
Edit & new question: When I build & run from Code::Blocks, I get the prompt window with the “hello world” message. It stays open until I close it manually. However, when I double click the .exe file, the prompt just flashes and disappears, why is that?
Many thanks,
JD
Edit: I’m going to use Code::Blocks as an IDE, per the recommendations here.
You should be able to write C in Visual Studio. You certainly could in older versions of the IDE. Just create source files with the .c extension.
You should be able to build and run the code from within Visual Studio.